diff options
Diffstat (limited to 'app/src/main/res/layout')
31 files changed, 2036 insertions, 0 deletions
diff --git a/app/src/main/res/layout/audiopicker.xml b/app/src/main/res/layout/audiopicker.xml new file mode 100644 index 0000000..3f0b1b7 --- /dev/null +++ b/app/src/main/res/layout/audiopicker.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="middle" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView android:id="@+id/icon" + android:layout_width="48dip" + android:layout_height="48dip" + android:layout_gravity="top" + android:layout_marginLeft="8dip" + android:layout_marginTop="2dip" + android:layout_marginBottom="2dip" + android:src="@mipmap/icon" /> + <TextView + android:id="@+id/filepath" + android:visibility="gone" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="16dip" + android:layout_marginTop="16dip" + android:layout_marginLeft="16dip" + android:layout_marginRight="8dip" /> + <ProgressBar + android:id="@+id/progress" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center_horizontal" /> + </LinearLayout> + + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button + style="?android:attr/buttonBarButtonStyle" + android:id="@+id/cancel" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/cancel" + android:enabled="false" + android:singleLine="true" /> + <Button + style="?android:attr/buttonBarButtonStyle" + android:id="@+id/enqueue" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/enqueue" + android:enabled="false" + android:singleLine="true" /> + <Button + style="?android:attr/buttonBarButtonStyle" + android:id="@+id/play" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/play" + android:enabled="false" + android:singleLine="true" /> + </LinearLayout> +</LinearLayout> diff --git a/app/src/main/res/layout/bottombar_controls.xml b/app/src/main/res/layout/bottombar_controls.xml new file mode 100644 index 0000000..ebf31cb --- /dev/null +++ b/app/src/main/res/layout/bottombar_controls.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 Adrian Ulrich <adrian@blinkenlights.ch> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +--> + +<ch.blinkenlights.android.vanilla.BottomBarControls + xmlns:android="http://schemas.android.com/apk/res/android" + android:background="?tabs_background" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + + <LinearLayout + android:layout_height="@dimen/row_normal_height" + android:layout_width="fill_parent" + android:background="@drawable/unbound_ripple_light" + android:gravity="center_vertical" + android:id="@+id/content_controls"> + + <ImageView + android:id="@+id/cover" + android:scaleType="centerCrop" + android:layout_width="@dimen/cover_size" + android:layout_height="@dimen/cover_size" + android:layout_marginLeft="@dimen/cover_padding" + android:layout_gravity="center_vertical" + android:contentDescription="@string/cover_art" /> + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="0px" + android:layout_weight="1" + android:layout_marginLeft="@dimen/text_padding" + android:layout_gravity="center" + android:orientation="vertical"> + <TextView + android:id="@+id/title" + android:textSize="14sp" + android:singleLine="true" + android:gravity="center_vertical" + android:ellipsize="marquee" + android:layout_width="fill_parent" + android:textColor="@android:color/background_light" + android:layout_height="wrap_content" /> + <TextView + android:id="@+id/artist" + android:textSize="12sp" + android:singleLine="true" + android:gravity="center_vertical" + android:ellipsize="marquee" + android:layout_width="fill_parent" + android:textColor="@android:color/secondary_text_dark" + android:layout_height="wrap_content" /> + </LinearLayout> + </LinearLayout> + + <SearchView + android:visibility="gone" + android:layout_height="@dimen/row_normal_height" + android:layout_width="fill_parent" + android:iconifiedByDefault="false" + android:imeOptions="actionSearch|flagNoFullscreen" + android:id="@+id/search_view" /> + + +</ch.blinkenlights.android.vanilla.BottomBarControls> diff --git a/app/src/main/res/layout/controls.xml b/app/src/main/res/layout/controls.xml new file mode 100644 index 0000000..93d7736 --- /dev/null +++ b/app/src/main/res/layout/controls.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:vib="http://schemas.android.com/apk/res-auto" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:background="?overlay_background_color" + android:orientation="horizontal" + android:elevation="2dp"> + <ch.blinkenlights.android.vanilla.VanillaImageButton + android:id="@+id/shuffle" + android:paddingTop="@dimen/controls_padding" + android:paddingBottom="@dimen/controls_padding" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/shuffle_inactive" + android:contentDescription="@string/cycle_shuffle_mode" /> + <ch.blinkenlights.android.vanilla.VanillaImageButton + android:id="@+id/previous" + android:paddingTop="@dimen/controls_padding" + android:paddingBottom="@dimen/controls_padding" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/previous" + android:contentDescription="@string/previous_song" /> + <ch.blinkenlights.android.vanilla.VanillaImageButton + android:id="@+id/play_pause" + android:paddingTop="@dimen/controls_padding" + android:paddingBottom="@dimen/controls_padding" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/play" + android:contentDescription="@string/play_pause" /> + <ch.blinkenlights.android.vanilla.VanillaImageButton + android:id="@+id/next" + android:paddingTop="@dimen/controls_padding" + android:paddingBottom="@dimen/controls_padding" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/next" + android:contentDescription="@string/next_song" /> + <ch.blinkenlights.android.vanilla.VanillaImageButton + android:id="@+id/end_action" + android:paddingTop="@dimen/controls_padding" + android:paddingBottom="@dimen/controls_padding" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/repeat_inactive" + android:contentDescription="@string/cycle_repeat_mode" /> +</LinearLayout> diff --git a/app/src/main/res/layout/controls_widget.xml b/app/src/main/res/layout/controls_widget.xml new file mode 100644 index 0000000..a4b3170 --- /dev/null +++ b/app/src/main/res/layout/controls_widget.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> + +<!-- this is almost the same file as controls.xml but uses a plain + image button as the drawable in widgets are not styled and + using a custom view would not be possible anyway //--> + +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <ImageButton + android:id="@+id/shuffle" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/shuffle_inactive" + android:contentDescription="@string/cycle_shuffle_mode" /> + <ImageButton + android:id="@+id/previous" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/previous" + android:contentDescription="@string/previous_song" /> + <ImageButton + android:id="@+id/play_pause" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/play" + android:contentDescription="@string/play_pause" /> + <ImageButton + android:id="@+id/next" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/next" + android:contentDescription="@string/next_song" /> + <ImageButton + android:id="@+id/end_action" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:scaleType="fitCenter" + android:src="@drawable/repeat_inactive" + android:contentDescription="@string/cycle_repeat_mode" /> +</merge> diff --git a/app/src/main/res/layout/draggable_row.xml b/app/src/main/res/layout/draggable_row.xml new file mode 100644 index 0000000..ad2a5b1 --- /dev/null +++ b/app/src/main/res/layout/draggable_row.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2014 Adrian Ulrich <adrian@blinkenlights.ch> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +--> +<ch.blinkenlights.android.vanilla.DraggableRow + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <View + android:id="@+id/pmark" + android:visibility="gone" + android:layout_width="@dimen/pmark_size" + android:layout_height="@dimen/row_normal_height" + android:background="?now_playing_marker" /> + + <ch.blinkenlights.android.vanilla.LazyCoverView + android:id="@+id/cover" + android:scaleType="centerCrop" + android:layout_width="@dimen/cover_size" + android:layout_height="@dimen/cover_size" + android:layout_marginLeft="@dimen/cover_padding_with_pmark" + android:layout_gravity="center_vertical" + android:visibility="gone" /> + <TextView + android:id="@+id/text" + android:maxLines="2" + android:textColor="?android:textColorPrimary" + android:gravity="left|center_vertical" + android:layout_width="0px" + android:layout_height="@dimen/row_normal_height" + android:layout_marginLeft="@dimen/text_padding" + android:layout_weight="1" /> + <TextView + android:id="@+id/duration" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="@dimen/text_padding" + android:visibility="gone" + android:textColor="?android:textColorPrimary" + android:gravity="center_vertical" /> + <CheckedTextView + android:id="@+id/checkbox" + android:visibility="gone" + android:checkMark="?android:attr/listChoiceIndicatorMultiple" + android:gravity="center_vertical" + android:layout_height="match_parent" + android:layout_width="@dimen/row_normal_height"/> + <!-- having 'dragger' visible adds significant left-padding + some views may want to use this padding while dragger is not visible, so + in this case, this empty view can be used as a replacement --> + <View + android:id="@+id/dragger_padder" + android:layout_width="@dimen/text_padding" + android:layout_height="match_parent" + android:visibility="gone" + /> + <ImageView + android:id="@+id/dragger" + android:visibility="gone" + android:src="@drawable/grabber" + android:scaleType="center" + android:layout_width="@dimen/row_normal_height" + android:layout_height="@dimen/row_normal_height" /> +</ch.blinkenlights.android.vanilla.DraggableRow> diff --git a/app/src/main/res/layout/duration_input.xml b/app/src/main/res/layout/duration_input.xml new file mode 100644 index 0000000..d807a82 --- /dev/null +++ b/app/src/main/res/layout/duration_input.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2018 Toby Hsieh + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <EditText + android:id="@+id/hours" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="number" + android:maxLength="2" + android:hint="@string/hour_hint" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_separator"/> + + <EditText + android:id="@+id/minutes" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="number" + android:maxLength="2" + android:hint="@string/minute_hint" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_separator"/> + + <EditText + android:id="@+id/seconds" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="number" + android:maxLength="2" + android:hint="@string/second_hint" /> + +</LinearLayout> diff --git a/app/src/main/res/layout/fancymenu_row.xml b/app/src/main/res/layout/fancymenu_row.xml new file mode 100644 index 0000000..58f3c85 --- /dev/null +++ b/app/src/main/res/layout/fancymenu_row.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="@dimen/row_normal_height" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/icon" + android:layout_marginLeft="@dimen/cover_padding" + android:layout_gravity="left|center_vertical" + android:layout_height="32sp" + android:layout_width="32sp" /> + + + <TextView + android:id="@+id/text" + android:textColor="?android:textColorPrimary" + android:textSize="@dimen/material_text_subhead" + android:layout_marginLeft="@dimen/text_padding" + android:layout_marginRight="@dimen/text_padding" + android:layout_gravity="left|center_vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_weight="1" /> + +</LinearLayout> diff --git a/app/src/main/res/layout/fancymenu_spacer.xml b/app/src/main/res/layout/fancymenu_spacer.xml new file mode 100644 index 0000000..a28024e --- /dev/null +++ b/app/src/main/res/layout/fancymenu_spacer.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="6dip" + android:orientation="horizontal"> + + <TextView + android:id="@+id/text" + android:background="#0A000000" + android:layout_gravity="center_vertical" + android:layout_width="match_parent" + android:layout_height="2dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" /> + +</LinearLayout> diff --git a/app/src/main/res/layout/folderpicker_content.xml b/app/src/main/res/layout/folderpicker_content.xml new file mode 100644 index 0000000..a60e27f --- /dev/null +++ b/app/src/main/res/layout/folderpicker_content.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2013 Adrian Ulrich <adrian@blinkenlights.ch> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:focusable="true" + android:focusableInTouchMode="true" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <EditText + android:id="@+id/path_display" + android:layout_height="wrap_content" + android:layout_width="0dp" + android:layout_weight="2" + android:layout_marginLeft="@dimen/text_padding" + android:text="@string/empty" /> + <Button + android:id="@+id/save_button" + android:layout_height="wrap_content" + android:layout_width="0dp" + android:layout_weight="1" + android:text="@string/empty" /> + + </LinearLayout> + + <TextView + android:layout_width="fill_parent" + android:layout_height="2dp" + android:background="?android:attr/dividerHorizontal" + /> + + <com.mobeta.android.dslv.DragSortListView + android:id="@+id/list" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" + android:layout_height="0px" + android:layout_width="fill_parent" + android:layout_weight="1" + android:choiceMode="none" + dslv:drag_enabled="false" /> + + <LinearLayout + android:id="@+id/folder_picker_spinner_container" + android:visibility="gone" + android:layout_width="fill_parent" + android:layout_height="@dimen/cover_size" + android:gravity="center_vertical" + android:orientation="horizontal" > + <TextView + android:text="@string/folder_picker_spinner_desc" + android:textColor="?overlay_foreground_color" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginLeft="@dimen/text_padding" + /> + <Spinner + android:id="@+id/folder_picker_spinner" + android:entries="@array/folder_picker_spinner_entries" + android:layout_weight="2" + android:layout_width="0dp" + android:layout_height="wrap_content" /> + </LinearLayout> + +</LinearLayout> diff --git a/app/src/main/res/layout/four_long_widget.xml b/app/src/main/res/layout/four_long_widget.xml new file mode 100644 index 0000000..ea4826c --- /dev/null +++ b/app/src/main/res/layout/four_long_widget.xml @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + android:background="#B2191919"> + <ImageView + android:id="@+id/cover" + android:src="@drawable/fallback_cover_large" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:adjustViewBounds="true" + android:padding="5dip" + android:scaleType="fitCenter" + android:contentDescription="@string/cover_art" /> + <LinearLayout + android:id="@+id/text_layout" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_gravity="center" + android:orientation="vertical" + android:paddingLeft="8dip" + android:paddingRight="8dip"> + <TextView + android:id="@+id/title" + android:visibility="gone" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textColor="#fff" + android:textSize="16sp" + android:textStyle="bold" + android:singleLine="true" + android:fadingEdge="horizontal" + android:fadingEdgeLength="10dip" + android:ellipsize="none" /> + <TextView + android:id="@+id/artist" + android:text="@string/app_name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textColor="#fff" + android:textSize="14sp" + android:singleLine="true" + android:fadingEdge="horizontal" + android:fadingEdgeLength="10dip" + android:ellipsize="none" /> + <TextView + android:id="@+id/album" + android:text="@string/app_name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textColor="#ccc" + android:textSize="14sp" + android:singleLine="true" + android:fadingEdge="horizontal" + android:fadingEdgeLength="10dip" + android:ellipsize="none" /> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="fill_parent"> + <ImageButton + android:id="@+id/play_pause" + android:adjustViewBounds="true" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="1" + android:src="@drawable/play" + android:padding="5dip" + android:background="?android:attr/selectableItemBackground" + android:scaleType="centerInside" + android:contentDescription="@string/play_pause" /> + <ImageButton + android:id="@+id/next" + android:adjustViewBounds="true" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="1" + android:padding="5dip" + android:src="@drawable/next" + android:background="?android:attr/selectableItemBackground" + android:scaleType="centerInside" + android:contentDescription="@string/next_song" /> + </LinearLayout> +</LinearLayout> diff --git a/app/src/main/res/layout/four_square_widget.xml b/app/src/main/res/layout/four_square_widget.xml new file mode 100644 index 0000000..efb0d5f --- /dev/null +++ b/app/src/main/res/layout/four_square_widget.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <ImageView + android:id="@+id/cover" + android:src="@drawable/fallback_cover_large" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:scaleType="fitCenter" + android:contentDescription="@string/cover_art" /> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_margin="5dip" + android:baselineAligned="false" + android:orientation="vertical"> + <TextView + android:id="@+id/title" + android:visibility="invisible" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="1" + android:gravity="center_horizontal|bottom" + android:textColor="#fff" + android:textSize="18dip" + android:shadowColor="#f000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="5" + android:textStyle="bold" + android:ellipsize="marquee" + android:singleLine="true" /> + <TextView + android:id="@+id/artist" + android:text="@string/app_name" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="1" + android:gravity="center_horizontal|top" + android:textColor="#fff" + android:shadowColor="#f000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="5" + android:textSize="15dip" + android:ellipsize="marquee" + android:singleLine="true" /> + <LinearLayout + android:id="@+id/buttons" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="2"> + <ImageButton + android:id="@+id/play_pause" + android:adjustViewBounds="true" + android:src="@drawable/play" + android:scaleType="centerInside" + android:background="@null" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:contentDescription="@string/play_pause" /> + <ImageButton + android:id="@+id/next" + android:adjustViewBounds="true" + android:src="@drawable/next" + android:scaleType="centerInside" + android:background="@null" + android:layout_height="fill_parent" + android:layout_width="0px" + android:layout_weight="1" + android:contentDescription="@string/next_song" /> + </LinearLayout> + </LinearLayout> +</FrameLayout> diff --git a/app/src/main/res/layout/four_white_widget.xml b/app/src/main/res/layout/four_white_widget.xml new file mode 100644 index 0000000..67216f7 --- /dev/null +++ b/app/src/main/res/layout/four_white_widget.xml @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Ferenc Nagy <nferenc@nferenc.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="match_parent" + android:background="@drawable/widget_bg" + android:baselineAligned="false" + android:orientation="horizontal" > + <LinearLayout + android:id="@+id/coverFrame" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="horizontal" + android:padding="5dp" > + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="match_parent"> + <ImageView + android:id="@+id/fallbackCover" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="left" + android:adjustViewBounds="true" + android:src="@drawable/vinyl_left" + android:contentDescription="@string/cover_art" + android:scaleType="fitCenter" /> + <ImageView + android:id="@+id/cover" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:contentDescription="@string/cover_art" + android:background="#424242" + android:scaleType="fitCenter" /> + </FrameLayout> + <ImageView + android:id="@+id/vinyl" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="left" + android:adjustViewBounds="true" + android:src="@drawable/vinyl_right" + android:contentDescription="@string/cover_art" + android:scaleType="fitCenter" /> + </LinearLayout> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:baselineAligned="false" > + <LinearLayout + android:id="@+id/text_layout" + android:layout_width="match_parent" + android:layout_height="54sp" + android:layout_weight="1" + android:orientation="vertical" + android:paddingLeft="8dp" + android:paddingRight="8dp" > + <TextView + android:id="@+id/title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:ellipsize="none" + android:fadingEdge="horizontal" + android:fadingEdgeLength="10dp" + android:singleLine="true" + android:textColor="#111" + android:textSize="16sp" + android:textStyle="bold" + android:includeFontPadding="false" + android:visibility="invisible" /> + <TextView + android:id="@+id/artist" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:ellipsize="none" + android:fadingEdge="horizontal" + android:fadingEdgeLength="10dp" + android:singleLine="true" + android:text="@string/app_name" + android:textColor="#111" + android:includeFontPadding="false" + android:textSize="10sp" /> + </LinearLayout> + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="bottom" > + <ImageButton + android:id="@+id/previous" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:contentDescription="@string/previous_song" + android:scaleType="fitCenter" + android:src="@drawable/widget_previous" + android:padding="5dp" /> + <ImageButton + android:id="@+id/play_pause" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:contentDescription="@string/play_pause" + android:scaleType="fitCenter" + android:src="@drawable/widget_play" + android:padding="5dp" /> + <ImageButton + android:id="@+id/next" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:contentDescription="@string/next_song" + android:scaleType="fitCenter" + android:src="@drawable/widget_next" + android:padding="5dp" /> + </LinearLayout> + </LinearLayout> +</LinearLayout> diff --git a/app/src/main/res/layout/fragment_track_details.xml b/app/src/main/res/layout/fragment_track_details.xml new file mode 100644 index 0000000..713d71c --- /dev/null +++ b/app/src/main/res/layout/fragment_track_details.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2018 Toby Hsieh + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. +--> +<TableLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="@dimen/track_details_dialog_padding" + android:stretchColumns="1" + android:shrinkColumns="1"> + + <include layout="@layout/track_details" /> +</TableLayout> diff --git a/app/src/main/res/layout/full_playback.xml b/app/src/main/res/layout/full_playback.xml new file mode 100644 index 0000000..d92c21e --- /dev/null +++ b/app/src/main/res/layout/full_playback.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:vanilla="http://schemas.android.com/apk/res-auto" > + + <ch.blinkenlights.android.vanilla.CoverView + android:id="@+id/cover_view" + android:layout_marginBottom="@dimen/full_playback_controls_height" + android:layout_height="fill_parent" + android:layout_width="fill_parent" /> + + <ch.blinkenlights.android.vanilla.SlidingView + android:id="@+id/sliding_view" + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:layout_gravity="bottom|left" + android:layout_marginTop="0dip" + android:orientation="horizontal" + vanilla:slider_handle_id="@+id/queue_slider"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?overlay_background_color" + android:elevation="2dp" + android:layout_marginBottom="20dip" + android:paddingBottom="20dip" + android:orientation="vertical"> + <include layout="@layout/seek_bar" /> + <include layout="@layout/controls" android:id="@+id/queue_slider" /> + </LinearLayout> + + + <fragment class="ch.blinkenlights.android.vanilla.ShowQueueFragment" + android:id="@+id/queue" + android:layout_width="fill_parent" + android:layout_height="fill_parent" /> + </ch.blinkenlights.android.vanilla.SlidingView> + + +</merge> diff --git a/app/src/main/res/layout/full_playback_alt.xml b/app/src/main/res/layout/full_playback_alt.xml new file mode 100644 index 0000000..4fff013 --- /dev/null +++ b/app/src/main/res/layout/full_playback_alt.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:vanilla="http://schemas.android.com/apk/res-auto" > + <ch.blinkenlights.android.vanilla.CoverView + android:id="@+id/cover_view" + android:layout_marginTop="@dimen/full_playback_alt_text" + android:layout_marginBottom="@dimen/full_playback_controls_height" + android:layout_height="fill_parent" + android:layout_width="fill_parent" /> + <TableLayout + android:id="@+id/info_table" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="top" + android:collapseColumns="0" + android:stretchColumns="1" + android:shrinkColumns="1" + android:background="?overlay_background_color" + android:paddingLeft="5dip" + android:paddingRight="5dip"> + + <include layout="@layout/track_details" /> + + <TableRow> + <TextView + android:text="@string/_replaygain" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/replaygain" android:textColor="?overlay_foreground_color"/> + </TableRow> + </TableLayout> + + + <ch.blinkenlights.android.vanilla.SlidingView + android:id="@+id/sliding_view" + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:layout_gravity="bottom|left" + android:layout_marginTop="@dimen/full_playback_alt_text" + android:orientation="horizontal" + vanilla:slider_handle_id="@+id/queue_slider"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?overlay_background_color" + android:elevation="2dp" + android:orientation="vertical"> + <include layout="@layout/seek_bar" /> + <include layout="@layout/controls" android:id="@+id/queue_slider" /> + </LinearLayout> + + <fragment class="ch.blinkenlights.android.vanilla.ShowQueueFragment" + android:id="@+id/queue" + android:layout_width="fill_parent" + android:layout_height="fill_parent" /> + </ch.blinkenlights.android.vanilla.SlidingView> + + +</merge> diff --git a/app/src/main/res/layout/library_content.xml b/app/src/main/res/layout/library_content.xml new file mode 100644 index 0000000..9c819a9 --- /dev/null +++ b/app/src/main/res/layout/library_content.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> + +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:vanilla="http://schemas.android.com/apk/res-auto" > + <LinearLayout + android:id="@+id/content" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <android.support.iosched.tabs.VanillaTabLayout + android:id="@+id/sliding_tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:elevation="4dp" + android:background="?tabs_background" /> + <androidx.viewpager.widget.ViewPager + android:id="@+id/pager" + android:layout_width="fill_parent" + android:layout_height="0px" + android:layout_weight="1" /> + <HorizontalScrollView + android:id="@+id/limiter_scroller" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom|left"> + <LinearLayout + android:id="@+id/limiter_layout" + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="fill_parent" /> + </HorizontalScrollView> + </LinearLayout> + <ch.blinkenlights.android.vanilla.SlidingView + android:id="@+id/sliding_view" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_gravity="bottom|left" + android:orientation="horizontal" + vanilla:slider_handle_id="@+id/bottombar_controls" + vanilla:slider_slave_id="@+id/content"> + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:background="?overlay_background_color" + android:orientation="horizontal"> + <include layout="@layout/bottombar_controls" android:id="@+id/bottombar_controls" /> + </LinearLayout> + + <include layout="@layout/seek_bar" /> + + <include layout="@layout/controls" /> + + <fragment class="ch.blinkenlights.android.vanilla.ShowQueueFragment" + android:id="@+id/queue" + android:layout_width="fill_parent" android:layout_height="fill_parent" /> + </ch.blinkenlights.android.vanilla.SlidingView> +</merge> diff --git a/app/src/main/res/layout/listview.xml b/app/src/main/res/layout/listview.xml new file mode 100644 index 0000000..77aa3f5 --- /dev/null +++ b/app/src/main/res/layout/listview.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<ch.blinkenlights.android.vanilla.FastScrollGuardedListView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" + android:fastScrollEnabled="true"/> diff --git a/app/src/main/res/layout/medialibrary_preferences.xml b/app/src/main/res/layout/medialibrary_preferences.xml new file mode 100644 index 0000000..c3b458f --- /dev/null +++ b/app/src/main/res/layout/medialibrary_preferences.xml @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2016 Adrian Ulrich <adrian@blinkenlights.ch> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +--> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="5dp" + android:paddingLeft="14dp" + android:paddingRight="14dp" + android:orientation="vertical" > + + <TextView + style="?android:attr/listSeparatorTextViewStyle" + android:textColor="?overlay_foreground_color" + android:text="@string/media_scan_preferences" /> + <CheckBox android:id="@+id/media_scan_group_albums" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/media_scan_group_albums" /> + <CheckBox android:id="@+id/media_scan_force_bastp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/media_scan_force_bastp" /> + + <TextView + style="?android:attr/listSeparatorTextViewStyle" + android:textColor="?overlay_foreground_color" + android:text="@string/media_folders_header" /> + + <TextView + android:id="@+id/media_directories" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/empty" /> + + <Button + android:id="@+id/edit_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end" + android:text="@string/edit"> + </Button> + + <TextView + style="?android:attr/listSeparatorTextViewStyle" + android:textColor="?overlay_foreground_color" + android:text="@string/media_scan_header" /> + + <CheckBox android:id="@+id/media_scan_full" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/media_scan_full" /> + <CheckBox android:id="@+id/media_scan_drop_db" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/media_scan_drop_db" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end"> + <Button + android:id="@+id/cancel_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/cancel"> + </Button> + <Button + android:id="@+id/start_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/media_scan_start"> + </Button> + </LinearLayout> + + <TextView + style="?android:attr/listSeparatorTextViewStyle" + android:textColor="?overlay_foreground_color" + android:text="@string/media_statistics" /> + + <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:stretchColumns="1"> + <TableRow> + <TextView + android:text="@string/media_stats_tracks" + android:padding="3dip" /> + <TextView + android:id="@+id/media_stats_tracks" + android:text="@string/empty" + android:gravity="right" + android:padding="3dip" /> + </TableRow> + <TableRow> + <TextView + android:text="@string/media_stats_library_playtime" + android:padding="3dip" /> + <TextView + android:text="@string/empty" + android:id="@+id/media_stats_library_playtime" + android:gravity="right" + android:padding="3dip" /> + </TableRow> + <TableRow> + <TextView + android:text="@string/media_stats_listen_playtime" + android:padding="3dip" /> + <TextView + android:text="@string/empty" + android:id="@+id/media_stats_listen_playtime" + android:gravity="right" + android:padding="3dip" /> + </TableRow> + </TableLayout> + + <ProgressBar + android:id="@+id/media_stats_progress_bar" + android:paddingTop="14dp" + android:layout_width="match_parent" + android:layout_height="match_parent" + style="?android:attr/progressBarStyleHorizontal" /> + + <TextView + android:id="@+id/media_stats_progress_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minLines="4" + android:text="@string/empty" /> + + </LinearLayout> + + +</ScrollView> diff --git a/app/src/main/res/layout/mini_playback.xml b/app/src/main/res/layout/mini_playback.xml new file mode 100644 index 0000000..e491064 --- /dev/null +++ b/app/src/main/res/layout/mini_playback.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_height="match_parent" + android:layout_width="match_parent"> + <ch.blinkenlights.android.vanilla.CoverView + android:id="@+id/cover_view" + android:layout_gravity="center" + android:layout_weight="1" + android:layout_height="0px" + android:layout_width="match_parent" /> + + <include layout="@layout/controls" android:id="@+id/queue_slider"/> + +</LinearLayout> diff --git a/app/src/main/res/layout/one_cell_widget.xml b/app/src/main/res/layout/one_cell_widget.xml new file mode 100644 index 0000000..ea8791f --- /dev/null +++ b/app/src/main/res/layout/one_cell_widget.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="fill_parent" + android:layout_width="fill_parent"> + <ImageView + android:id="@+id/cover" + android:src="@drawable/fallback_cover" + android:layout_centerInParent="true" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:contentDescription="@string/cover_art" /> + <TextView + android:id="@+id/title" + android:text="@string/app_name" + android:layout_alignBottom="@id/cover" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textColor="#fff" + android:background="#a000" + android:textSize="12dip" + android:textStyle="bold" + android:ellipsize="marquee" + android:singleLine="true" /> + <LinearLayout + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:orientation="vertical" > + <ImageButton + android:id="@+id/play_pause" + android:adjustViewBounds="true" + android:src="@drawable/hidden_play" + android:background="@null" + android:layout_height="0px" + android:layout_width="fill_parent" + android:layout_weight="1" + android:contentDescription="@string/play_pause" /> + <ImageButton + android:id="@+id/next" + android:adjustViewBounds="true" + android:src="@drawable/hidden_next" + android:background="@null" + android:layout_height="0px" + android:layout_width="fill_parent" + android:layout_weight="1" + android:contentDescription="@string/next_song" /> + </LinearLayout> +</RelativeLayout> diff --git a/app/src/main/res/layout/permission_request.xml b/app/src/main/res/layout/permission_request.xml new file mode 100644 index 0000000..9126d91 --- /dev/null +++ b/app/src/main/res/layout/permission_request.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2015 Adrian Ulrich <adrian@blinkenlights.ch> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +--> +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:clickable="true" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:stretchColumns="0" + android:shrinkColumns="0" + android:paddingTop="8dip" + android:paddingBottom="8dip" + android:background="#FF212121"> + <TableRow> + <TextView + android:id="@+id/permission_request_title" + android:layout_marginLeft="8dip" + android:layout_marginBottom="8dip" + android:layout_marginTop="8dip" + android:text="@string/permission_request_summary" + android:textColor="#FFFFFFFF" /> + <Button + android:id="@+id/permission_request_button" + android:clickable="false" + android:layout_marginRight="8dip" + android:layout_gravity="center" + android:text="@string/ok" /> + </TableRow> +</TableLayout> diff --git a/app/src/main/res/layout/playlist_activity.xml b/app/src/main/res/layout/playlist_activity.xml new file mode 100644 index 0000000..9bb2179 --- /dev/null +++ b/app/src/main/res/layout/playlist_activity.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2014 Adrian Ulrich <adrian@blinkenlights.ch> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +--> +<com.mobeta.android.dslv.DragSortListView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:id="@+id/list" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + dslv:drag_enabled="false" + dslv:drag_start_mode="onMove" + dslv:float_background_color="?float_color" + dslv:remove_enabled="true" + dslv:remove_mode="flingRemove" + dslv:fling_handle_id="@+id/dragger" + dslv:drag_handle_id="@+id/dragger"/> diff --git a/app/src/main/res/layout/playlist_buttons.xml b/app/src/main/res/layout/playlist_buttons.xml new file mode 100644 index 0000000..43a8d8d --- /dev/null +++ b/app/src/main/res/layout/playlist_buttons.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="3dip" + android:orientation="horizontal"> + <Button + android:id="@+id/edit" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/edit" /> + <Button + android:id="@+id/delete" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/delete" /> +</LinearLayout> diff --git a/app/src/main/res/layout/seek_bar.xml b/app/src/main/res/layout/seek_bar.xml new file mode 100644 index 0000000..69ad454 --- /dev/null +++ b/app/src/main/res/layout/seek_bar.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2018 Adrian Ulrich <adrian@blinkenlights.ch> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_gravity="top" + android:background="?overlay_background_color" + android:elevation="2dp" + android:orientation="horizontal"> + <TextView + android:id="@+id/elapsed" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center" + android:paddingLeft="5dip" /> + <SeekBar + android:id="@+id/seek_bar" + android:layout_height="wrap_content" + android:layout_width="0px" + android:layout_gravity="center" + android:paddingTop="7dip" + android:paddingBottom="7dip" + android:paddingLeft="18dip" + android:paddingRight="18dip" + android:layout_weight="1" /> + <TextView + android:id="@+id/duration" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center" + android:paddingRight="5dip" /> +</LinearLayout> diff --git a/app/src/main/res/layout/seekbar_pref.xml b/app/src/main/res/layout/seekbar_pref.xml new file mode 100644 index 0000000..c846263 --- /dev/null +++ b/app/src/main/res/layout/seekbar_pref.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <TextView + android:id="@+id/value" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:paddingRight="20dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="right" /> + <SeekBar + android:id="@+id/seek_bar" + android:paddingTop="10dip" + android:paddingBottom="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <CheckBox android:id="@+id/check_box" + android:visibility="gone" + android:paddingTop="10dip" + android:paddingBottom="10dip" + android:layout_marginLeft="12dip" + android:paddingRight="20dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/empty" + /> + +</LinearLayout> diff --git a/app/src/main/res/layout/showqueue_listview.xml b/app/src/main/res/layout/showqueue_listview.xml new file mode 100644 index 0000000..14c4bb1 --- /dev/null +++ b/app/src/main/res/layout/showqueue_listview.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.mobeta.android.dslv.DragSortListView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:listSelector="?android:attr/selectableItemBackground" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" + dslv:drag_enabled="true" + dslv:drag_start_mode="onMove" + dslv:float_background_color="?float_color" + dslv:drag_handle_id="@+id/dragger" + dslv:remove_enabled="true" + dslv:remove_mode="flingRemove" + dslv:fling_handle_id="@+id/dragger" + /> diff --git a/app/src/main/res/layout/sort_dialog.xml b/app/src/main/res/layout/sort_dialog.xml new file mode 100644 index 0000000..e66c8c9 --- /dev/null +++ b/app/src/main/res/layout/sort_dialog.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <CheckBox + android:id="@+id/reverse_sort" + android:layout_marginLeft="?android:attr/listPreferredItemPaddingLeft" + android:text="@string/reverse_sort" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> +</LinearLayout> diff --git a/app/src/main/res/layout/tab_order.xml b/app/src/main/res/layout/tab_order.xml new file mode 100644 index 0000000..2d52e0f --- /dev/null +++ b/app/src/main/res/layout/tab_order.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="middle" + android:layout_height="fill_parent" + android:layout_width="fill_parent"> + <com.mobeta.android.dslv.DragSortListView + android:id="@+id/list" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" + android:layout_height="0px" + android:layout_width="fill_parent" + android:layout_weight="1" + android:choiceMode="multipleChoice" + dslv:drag_enabled="true" + dslv:drag_start_mode="onMove" + dslv:float_background_color="?float_color" + dslv:drag_handle_id="@+id/dragger" /> + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button + style="?android:attr/buttonBarButtonStyle" + android:id="@+id/restore_default" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/restore_default" /> + <Button + style="?android:attr/buttonBarButtonStyle" + android:id="@+id/done" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/done" /> + </LinearLayout> +</LinearLayout> diff --git a/app/src/main/res/layout/track_details.xml b/app/src/main/res/layout/track_details.xml new file mode 100644 index 0000000..4223445 --- /dev/null +++ b/app/src/main/res/layout/track_details.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2018 Toby Hsieh + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <TableRow> + <TextView + android:text="@string/_title" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView + android:id="@+id/title" + android:textColor="?overlay_foreground_color" + android:textStyle="bold" /> + <TextView + android:id="@+id/queue_pos" + android:singleLine="true" + android:gravity="right" + android:layout_gravity="top" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_artist" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/artist" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_album" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/album" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_genre" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/genre" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_track" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/track" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_year" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/year" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_composer" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/composer" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_path" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/path" android:textColor="?overlay_foreground_color" /> + </TableRow> + + <TableRow> + <TextView + android:text="@string/_format" + android:textColor="?overlay_foreground_color" + android:paddingRight="5dip" + android:gravity="right" /> + <TextView android:id="@+id/format" android:textColor="?overlay_foreground_color" /> + </TableRow> +</merge> diff --git a/app/src/main/res/layout/widget_d.xml b/app/src/main/res/layout/widget_d.xml new file mode 100644 index 0000000..0e5ac1b --- /dev/null +++ b/app/src/main/res/layout/widget_d.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <ImageView + android:id="@+id/cover" + android:src="@drawable/fallback_cover_large" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:adjustViewBounds="true" + android:scaleType="fitCenter" + android:contentDescription="@string/cover_art" /> + <include layout="@layout/widget_e" /> +</FrameLayout> diff --git a/app/src/main/res/layout/widget_e.xml b/app/src/main/res/layout/widget_e.xml new file mode 100644 index 0000000..af6d21b --- /dev/null +++ b/app/src/main/res/layout/widget_e.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2012 Christopher Eby <kreed@kreed.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:background="#a000" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:orientation="vertical"> + <TextView + android:id="@+id/title" + android:textSize="16sp" + android:textColor="#ffff" + android:textStyle="bold" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center" + android:layout_width="fill_parent" + android:visibility="gone" + android:layout_height="wrap_content" /> + <TextView + android:id="@+id/artist" + android:text="@string/app_name" + android:textSize="14sp" + android:textColor="#ffff" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <LinearLayout + android:id="@+id/buttons" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <include layout="@layout/controls_widget" /> + </LinearLayout> +</LinearLayout> |
