styles: refactor styles
Refactor styles again, this time trying to seperate the more layout-specific attributes so that layouts become more re-usable. This also updates the naming conventions of styles.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter_semibold"
|
||||
android:padding="@dimen/spacing_medium"
|
||||
android:text="@string/label_no_dirs"
|
||||
android:text="@string/lbl_no_dirs"
|
||||
android:textAlignment="center"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="?android:attr/textColorSecondary" />
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/about_toolbar"
|
||||
style="@style/Toolbar.Style.Icon.Down"
|
||||
app:title="@string/label_about" />
|
||||
style="@style/Widget.Toolbar.Icon.Down"
|
||||
app:title="@string/lbl_about" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -40,7 +40,7 @@
|
||||
android:layout_height="@dimen/size_app_icon"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
android:layout_marginTop="@dimen/spacing_medium"
|
||||
android:contentDescription="@string/description_auxio_icon"
|
||||
android:contentDescription="@string/desc_auxio_icon"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
app:layout_constraintEnd_toStartOf="@+id/about_app_name"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
@@ -80,15 +80,14 @@
|
||||
android:layout_height="0dp"
|
||||
android:padding="@dimen/spacing_medium"
|
||||
app:layout_constraintTop_toBottomOf="@+id/about_desc"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
tools:layout_editor_absoluteX="-16dp">
|
||||
app:layout_constraintVertical_chainStyle="packed">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/about_version_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/label_version"
|
||||
android:src="@drawable/ic_version"
|
||||
android:contentDescription="@string/lbl_version"
|
||||
android:src="@drawable/ic_about"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -98,7 +97,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
android:text="@string/label_version"
|
||||
android:text="@string/lbl_version"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||
app:layout_constraintBottom_toTopOf="@+id/about_version"
|
||||
app:layout_constraintStart_toEndOf="@+id/about_version_icon"
|
||||
@@ -119,8 +118,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_code"
|
||||
style="@style/Widget.TextView.About.Clickable"
|
||||
android:text="@string/label_code"
|
||||
style="@style/Widget.TextView.Icon.Clickable"
|
||||
android:text="@string/lbl_code"
|
||||
app:drawableStartCompat="@drawable/ic_code"
|
||||
app:layout_constraintBottom_toTopOf="@+id/about_faq"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -129,8 +128,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_licenses"
|
||||
style="@style/Widget.TextView.About.Clickable"
|
||||
android:text="@string/label_licenses"
|
||||
style="@style/Widget.TextView.Icon.Clickable"
|
||||
android:text="@string/lbl_licenses"
|
||||
app:drawableStartCompat="@drawable/ic_license"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -138,9 +137,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_faq"
|
||||
style="@style/Widget.TextView.About.Clickable"
|
||||
android:text="@string/label_faq"
|
||||
app:drawableStartCompat="@drawable/ic_about"
|
||||
style="@style/Widget.TextView.Icon.Clickable"
|
||||
android:text="@string/lbl_faq"
|
||||
app:drawableStartCompat="@drawable/ic_faq"
|
||||
app:layout_constraintBottom_toTopOf="@+id/about_licenses"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -148,7 +147,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_song_count"
|
||||
style="@style/Widget.TextView.About"
|
||||
style="@style/Widget.TextView.Icon"
|
||||
android:theme="@style/Theme.Neutral"
|
||||
app:drawableStartCompat="@drawable/ic_song"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -158,8 +157,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_author"
|
||||
style="@style/Widget.TextView.About"
|
||||
android:text="@string/label_author"
|
||||
style="@style/Widget.TextView.Icon"
|
||||
android:text="@string/lbl_author"
|
||||
app:drawableStartCompat="@drawable/ic_author"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -34,8 +34,9 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playback_cover"
|
||||
style="@style/CompactImageView"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
style="@style/Widget.ImageView.Compact"
|
||||
android:layout_margin="@dimen/spacing_small"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -46,6 +47,8 @@
|
||||
android:id="@+id/playback_song"
|
||||
style="@style/Widget.TextView.Compact.Primary"
|
||||
android:text="@{song.name}"
|
||||
android:layout_marginStart="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
app:layout_constraintBottom_toTopOf="@+id/playback_info"
|
||||
app:layout_constraintEnd_toStartOf="@+id/playback_play_pause"
|
||||
app:layout_constraintStart_toEndOf="@+id/playback_cover"
|
||||
@@ -56,6 +59,8 @@
|
||||
<TextView
|
||||
android:id="@+id/playback_info"
|
||||
style="@style/Widget.TextView.Compact.Secondary"
|
||||
android:layout_marginStart="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
android:text="@{@string/format_info(song.album.artist.name, song.album.name)}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/playback_play_pause"
|
||||
@@ -65,13 +70,15 @@
|
||||
|
||||
<org.oxycblt.auxio.playback.PlayPauseButton
|
||||
android:id="@+id/playback_play_pause"
|
||||
style="@style/Widget.Button.Unbounded.PlayPause"
|
||||
android:contentDescription="@string/description_play_pause"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:padding="0dp"
|
||||
android:layout_margin="@dimen/spacing_small"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:onClick="@{() -> playbackModel.invertPlayingStatus()}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/ic_play_large" />
|
||||
tools:src="@drawable/ic_pause_large" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/detail_toolbar"
|
||||
style="@style/Toolbar.Style.Icon" />
|
||||
style="@style/Widget.Toolbar.Icon" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/library_toolbar"
|
||||
style="@style/Toolbar.Style"
|
||||
style="@style/Widget.Toolbar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:menu="@menu/menu_library"
|
||||
app:title="@string/label_library" />
|
||||
app:title="@string/lbl_library" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/library_recycler"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
android:layout_width="@dimen/size_error_icon"
|
||||
android:layout_height="@dimen/size_error_icon"
|
||||
android:layout_margin="@dimen/spacing_small"
|
||||
android:contentDescription="@string/description_error"
|
||||
android:contentDescription="@string/desc_error"
|
||||
android:src="@drawable/ic_error"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
@@ -46,17 +46,21 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/loading_retry_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.Button.Unbounded.Text"
|
||||
android:onClick="@{() -> loadingModel.load(context)}"
|
||||
android:text="@string/label_retry"
|
||||
android:text="@string/lbl_retry"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/loading_grant_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.Button.Unbounded.Text"
|
||||
android:onClick="@{() -> loadingModel.grant()}"
|
||||
android:text="@string/label_grant"
|
||||
android:text="@string/lbl_grant"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
@@ -28,18 +28,18 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/playback_toolbar"
|
||||
style="@style/Toolbar.Style.Icon.Down"
|
||||
style="@style/Widget.Toolbar.Icon.Down"
|
||||
android:elevation="0dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:menu="@menu/menu_playback"
|
||||
app:title="@string/label_playback" />
|
||||
app:title="@string/lbl_playback" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playback_cover"
|
||||
style="@style/ElevatedImageView"
|
||||
style="@style/Widget.ImageView.Full"
|
||||
android:layout_margin="@dimen/spacing_mid_large"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toTopOf="@+id/playback_song"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_song"
|
||||
style="@style/Widget.TextView.Playback.Primary"
|
||||
style="@style/Widget.TextView.Primary"
|
||||
android:layout_marginStart="@dimen/spacing_mid_large"
|
||||
android:layout_marginEnd="@dimen/spacing_mid_large"
|
||||
android:onClick="@{() -> detailModel.navToItem(playbackModel.song)}"
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_artist"
|
||||
style="@style/Widget.TextView.Playback.Secondary"
|
||||
style="@style/Widget.TextView.Secondary"
|
||||
android:layout_marginStart="@dimen/spacing_mid_large"
|
||||
android:layout_marginEnd="@dimen/spacing_mid_large"
|
||||
android:onClick="@{() -> detailModel.navToItem(playbackModel.song.album.artist)}"
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_album"
|
||||
style="@style/Widget.TextView.Playback.Secondary"
|
||||
style="@style/Widget.TextView.Secondary"
|
||||
android:layout_marginStart="@dimen/spacing_mid_large"
|
||||
android:layout_marginEnd="@dimen/spacing_mid_large"
|
||||
android:layout_marginBottom="@dimen/spacing_medium"
|
||||
@@ -122,7 +122,7 @@
|
||||
android:id="@+id/playback_loop"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:layout_marginStart="@dimen/spacing_small"
|
||||
android:contentDescription="@string/description_change_loop"
|
||||
android:contentDescription="@string/desc_change_loop"
|
||||
android:onClick="@{() -> playbackModel.incrementLoopStatus()}"
|
||||
android:src="@drawable/ic_loop"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playback_skip_prev"
|
||||
@@ -132,7 +132,7 @@
|
||||
<ImageButton
|
||||
android:id="@+id/playback_skip_prev"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:contentDescription="@string/description_skip_prev"
|
||||
android:contentDescription="@string/desc_skip_prev"
|
||||
android:onClick="@{() -> playbackModel.skipPrev()}"
|
||||
android:src="@drawable/ic_skip_prev"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playback_play_pause"
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
<org.oxycblt.auxio.playback.PlayPauseButton
|
||||
android:id="@+id/playback_play_pause"
|
||||
style="@style/PlayPause"
|
||||
style="@style/Widget.Component.Playback.PlayPause"
|
||||
android:layout_marginBottom="@dimen/spacing_medium"
|
||||
android:onClick="@{() -> playbackModel.invertPlayingStatus()}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@@ -153,7 +153,7 @@
|
||||
<ImageButton
|
||||
android:id="@+id/playback_skip_next"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:contentDescription="@string/description_skip_next"
|
||||
android:contentDescription="@string/desc_skip_next"
|
||||
android:onClick="@{() -> playbackModel.skipNext()}"
|
||||
android:src="@drawable/ic_skip_next"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playback_play_pause"
|
||||
@@ -165,7 +165,7 @@
|
||||
android:id="@+id/playback_shuffle"
|
||||
style="@style/Widget.Button.Unbounded"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
android:contentDescription="@string/description_shuffle"
|
||||
android:contentDescription="@string/desc_shuffle"
|
||||
android:onClick="@{() -> playbackModel.invertShuffleStatus()}"
|
||||
android:src="@drawable/ic_shuffle"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playback_skip_next"
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/queue_toolbar"
|
||||
style="@style/Toolbar.Style.Icon.Down"
|
||||
style="@style/Widget.Toolbar.Icon.Down"
|
||||
app:navigationIcon="@drawable/ic_down"
|
||||
app:title="@string/label_queue" />
|
||||
app:title="@string/lbl_queue" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/queue_recycler"
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/search_toolbar"
|
||||
style="@style/Toolbar.Style"
|
||||
style="@style/Widget.Toolbar"
|
||||
android:elevation="0dp"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:menu="@menu/menu_search"
|
||||
app:title="@string/label_search" />
|
||||
app:title="@string/lbl_search" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/search_text_layout"
|
||||
@@ -30,7 +30,7 @@
|
||||
app:boxStrokeColor="?attr/colorPrimary"
|
||||
app:boxStrokeWidth="0dp"
|
||||
app:boxStrokeWidthFocused="2dp"
|
||||
app:endIconContentDescription="@string/description_clear_search"
|
||||
app:endIconContentDescription="@string/desc_clear_search"
|
||||
app:endIconDrawable="@drawable/ic_close"
|
||||
app:endIconTint="?attr/colorControlNormal"
|
||||
app:endIconMode="clear_text"
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/settings_toolbar"
|
||||
style="@style/Toolbar.Style"
|
||||
style="@style/Widget.Toolbar"
|
||||
app:menu="@menu/menu_settings"
|
||||
app:title="@string/setting_title" />
|
||||
app:title="@string/set_title" />
|
||||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/settings_list_fragment"
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/song_toolbar"
|
||||
style="@style/Toolbar.Style"
|
||||
style="@style/Widget.Toolbar"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:menu="@menu/menu_songs"
|
||||
app:title="@string/label_all_songs" />
|
||||
app:title="@string/lbl_all_songs" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/song_recycler"
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/header_title"
|
||||
style="@style/HeaderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.TextView.Header"
|
||||
android:text="@{header.name}"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
@@ -26,7 +28,9 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/header_button"
|
||||
style="@style/HeaderAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.Button.Unbounded.Small"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/header_title"
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Album" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_normal"
|
||||
android:layout_height="@dimen/size_cover_normal"
|
||||
android:contentDescription="@{@string/description_album_cover(album.name)}"
|
||||
style="@style/Widget.ImageView.Normal"
|
||||
android:contentDescription="@{@string/desc_album_cover(album.name)}"
|
||||
app:albumArt="@{album}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
style="@style/ElevatedImageView"
|
||||
style="@style/Widget.ImageView.Full"
|
||||
android:layout_width="@dimen/size_cover_detail"
|
||||
android:layout_height="@dimen/size_cover_detail"
|
||||
android:layout_marginTop="@dimen/spacing_medium"
|
||||
android:contentDescription="@{@string/description_album_cover(album.name)}"
|
||||
android:contentDescription="@{@string/desc_album_cover(album.name)}"
|
||||
app:albumArt="@{album}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/album_name"
|
||||
style="@style/DetailTitleText"
|
||||
style="@style/Widget.TextView.Detail"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
@@ -78,19 +78,24 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/album_play_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Unimportant"
|
||||
style="@style/Widget.Button.Vibrant.Secondary"
|
||||
android:onClick="@{() -> playbackModel.playAlbum(album, false)}"
|
||||
android:text="@string/label_play"
|
||||
android:text="@string/lbl_play"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
app:layout_constraintEnd_toStartOf="@+id/album_shuffle_button"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_details" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/album_shuffle_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Highlighted"
|
||||
style="@style/Widget.Button.Vibrant.Primary"
|
||||
android:backgroundTint="?attr/colorPrimary"
|
||||
android:onClick="@{() -> playbackModel.playAlbum(album, true)}"
|
||||
android:text="@string/label_shuffle"
|
||||
android:text="@string/lbl_shuffle"
|
||||
android:layout_marginStart="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_medium"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/album_play_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_play_button"
|
||||
@@ -98,17 +103,21 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/album_song_header"
|
||||
style="@style/HeaderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.TextView.Header"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:background="@drawable/ui_header_dividers"
|
||||
android:text="@string/label_songs"
|
||||
android:text="@string/lbl_songs"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_play_button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/album_sort_button"
|
||||
style="@style/HeaderAction"
|
||||
android:contentDescription="@string/description_sort_button"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
style="@style/Widget.Button.Unbounded.Small"
|
||||
android:contentDescription="@string/desc_sort_button"
|
||||
android:onClick="@{() -> detailModel.incrementAlbumSortMode()}"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/album_song_header"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
type="org.oxycblt.auxio.music.Song" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/song_track"
|
||||
android:layout_width="@dimen/width_track_number"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@{@string/description_track_number(song.track)}"
|
||||
android:contentDescription="@{@string/desc_track_number(song.track)}"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:text="@{String.valueOf(song.track)}"
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Artist" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/artist_image"
|
||||
android:layout_width="@dimen/size_cover_normal"
|
||||
android:layout_height="@dimen/size_cover_normal"
|
||||
android:contentDescription="@{@string/description_artist_image(artist.name)}"
|
||||
style="@style/Widget.ImageView.Normal"
|
||||
android:contentDescription="@{@string/desc_artist_image(artist.name)}"
|
||||
app:artistImage="@{artist}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Album" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_large"
|
||||
android:layout_height="@dimen/size_cover_large"
|
||||
android:contentDescription="@{@string/description_album_cover(album.name)}"
|
||||
style="@style/Widget.ImageView.Large"
|
||||
android:contentDescription="@{@string/desc_album_cover(album.name)}"
|
||||
app:albumArt="@{album}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
android:layout_width="@dimen/size_cover_detail"
|
||||
android:layout_height="@dimen/size_cover_detail"
|
||||
android:layout_marginTop="@dimen/spacing_medium"
|
||||
android:contentDescription="@{@string/description_artist_image(artist.name)}"
|
||||
style="@style/ElevatedImageView"
|
||||
android:contentDescription="@{@string/desc_artist_image(artist.name)}"
|
||||
style="@style/Widget.ImageView.Full"
|
||||
app:artistImage="@{artist}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/artist_name"
|
||||
style="@style/DetailTitleText"
|
||||
style="@style/Widget.TextView.Detail"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
@@ -73,32 +73,42 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/artist_play_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Unimportant"
|
||||
style="@style/Widget.Button.Vibrant.Secondary"
|
||||
android:onClick="@{() -> playbackModel.playArtist(artist, false)}"
|
||||
android:text="@string/label_play"
|
||||
android:text="@string/lbl_play"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
app:layout_constraintEnd_toStartOf="@+id/artist_shuffle_button"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/artist_counts" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/artist_shuffle_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Highlighted"
|
||||
style="@style/Widget.Button.Vibrant.Primary"
|
||||
android:backgroundTint="?attr/colorPrimary"
|
||||
android:onClick="@{() -> playbackModel.playArtist(artist, true)}"
|
||||
android:text="@string/label_shuffle"
|
||||
android:text="@string/lbl_shuffle"
|
||||
android:layout_marginStart="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_medium"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/artist_play_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/artist_play_button"
|
||||
app:layout_constraintTop_toTopOf="@+id/artist_play_button" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/artist_album_header"
|
||||
style="@style/HeaderText"
|
||||
android:id="@+id/artist_song_header"
|
||||
style="@style/Widget.TextView.Header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:text="@string/label_albums"
|
||||
android:background="@drawable/ui_header_dividers"
|
||||
android:text="@string/lbl_songs"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/artist_play_button" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</layout>
|
||||
@@ -11,18 +11,16 @@
|
||||
type="org.oxycblt.auxio.music.Song" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_compact"
|
||||
android:layout_height="@dimen/size_cover_compact"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
style="@style/Widget.ImageView.Compact"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_song" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
style="@style/ItemSurroundings"
|
||||
style="@style/ItemLayout"
|
||||
android:clickable="false"
|
||||
android:focusable="false">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:layout_width="@dimen/size_clear"
|
||||
android:layout_height="@dimen/size_clear"
|
||||
android:contentDescription="@string/description_blacklist_delete"
|
||||
android:contentDescription="@string/desc_blacklist_delete"
|
||||
android:src="@drawable/ic_clear"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Genre" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/genre_image"
|
||||
android:layout_width="@dimen/size_cover_normal"
|
||||
android:layout_height="@dimen/size_cover_normal"
|
||||
android:contentDescription="@{@string/description_genre_image(genre.name)}"
|
||||
style="@style/Widget.ImageView.Normal"
|
||||
android:contentDescription="@{@string/desc_genre_image(genre.name)}"
|
||||
app:genreImage="@{genre}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -38,7 +37,7 @@
|
||||
<TextView
|
||||
android:id="@+id/genre_count"
|
||||
style="@style/ItemText.Secondary"
|
||||
android:text="@{@plurals/format_song_count(genre.songs.size(), genre.songs.size())}"
|
||||
android:text="@{@plurals/fmt_song_count(genre.songs.size(), genre.songs.size())}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/genre_image"
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
android:layout_width="@dimen/size_cover_detail"
|
||||
android:layout_height="@dimen/size_cover_detail"
|
||||
android:layout_marginTop="@dimen/spacing_medium"
|
||||
android:contentDescription="@{@string/description_genre_image(genre.name)}"
|
||||
style="@style/ElevatedImageView"
|
||||
android:contentDescription="@{@string/desc_genre_image(genre.name)}"
|
||||
style="@style/Widget.ImageView.Full"
|
||||
app:genreImage="@{genre}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/genre_name"
|
||||
style="@style/DetailTitleText"
|
||||
style="@style/Widget.TextView.Detail"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
@@ -57,7 +57,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
android:text="@{@plurals/format_song_count(genre.songs.size(), genre.songs.size())}"
|
||||
android:text="@{@plurals/fmt_song_count(genre.songs.size(), genre.songs.size())}"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -78,19 +78,22 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/genre_play_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Unimportant"
|
||||
style="@style/Widget.Button.Vibrant.Secondary"
|
||||
android:onClick="@{() -> playbackModel.playGenre(genre, false)}"
|
||||
android:text="@string/label_play"
|
||||
android:text="@string/lbl_play"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:layout_marginEnd="@dimen/spacing_small"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/genre_duration" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/genre_shuffle_button"
|
||||
style="@style/Widget.MaterialComponents.Button.Highlighted"
|
||||
style="@style/Widget.Button.Vibrant.Primary"
|
||||
android:backgroundTint="?attr/colorPrimary"
|
||||
android:onClick="@{() -> playbackModel.playGenre(genre, true)}"
|
||||
android:text="@string/label_shuffle"
|
||||
android:text="@string/lbl_shuffle"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/genre_play_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/genre_play_button"
|
||||
@@ -98,16 +101,20 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/genre_song_header"
|
||||
style="@style/HeaderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.TextView.Header"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:text="@string/label_songs"
|
||||
android:text="@string/lbl_songs"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/genre_play_button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/genre_sort_button"
|
||||
style="@style/HeaderAction"
|
||||
android:contentDescription="@string/description_sort_button"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.Button.Unbounded.Small"
|
||||
android:contentDescription="@string/desc_sort_button"
|
||||
android:onClick="@{() -> detailModel.incrementGenreSortMode()}"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/genre_song_header"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Song" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_compact"
|
||||
android:layout_height="@dimen/size_cover_compact"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
style="@style/Widget.ImageView.Compact"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
style="@style/HeaderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.TextView.Header"
|
||||
android:text="@{header.name}"
|
||||
tools:text="Songs" />
|
||||
</layout>
|
||||
@@ -18,14 +18,12 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_compact"
|
||||
android:layout_height="@dimen/size_cover_compact"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
style="@style/Widget.ImageView.Compact"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_song" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
type="org.oxycblt.auxio.music.Song" />
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemSurroundings">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/album_cover"
|
||||
android:layout_width="@dimen/size_cover_compact"
|
||||
android:layout_height="@dimen/size_cover_compact"
|
||||
android:contentDescription="@{@string/description_album_cover(song.name)}"
|
||||
style="@style/Widget.ImageView.Compact"
|
||||
android:contentDescription="@{@string/desc_album_cover(song.name)}"
|
||||
app:albumArt="@{song}"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:alpha="0.3"
|
||||
android:contentDescription="@string/description_no_cover"
|
||||
android:contentDescription="@string/desc_no_cover"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/ic_song" />
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
android:fontFamily="@font/inter"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/spacing_medium"
|
||||
android:text="@string/placeholder_playback"
|
||||
android:text="@string/def_playback"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -9,22 +9,22 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/widget_cover"
|
||||
style="@style/FluidImageView"
|
||||
android:contentDescription="@string/description_no_cover"
|
||||
style="@style/Widget.Component.AppWidget.ImageView"
|
||||
android:contentDescription="@string/desc_no_cover"
|
||||
android:src="@drawable/ic_song" />
|
||||
|
||||
<LinearLayout
|
||||
style="@style/WidgetPanel">
|
||||
style="@style/Widget.Component.AppWidget.Panel.Base">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/widget_song"
|
||||
style="@style/Widget.TextView.Widget.Primary"
|
||||
android:text="@string/placeholder_widget_song" />
|
||||
style="@style/Widget.Component.AppWidget.TextView.Primary"
|
||||
android:text="@string/def_widget_song" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/widget_artist"
|
||||
style="@style/Widget.TextView.Widget.Secondary"
|
||||
android:text="@string/placeholder_widget_artist" />
|
||||
style="@style/Widget.Component.AppWidget.TextView.Secondary"
|
||||
android:text="@string/def_widget_artist" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -34,32 +34,32 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_loop"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_change_loop"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_change_loop"
|
||||
android:src="@drawable/ic_loop" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_skip_prev"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_skip_prev"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_skip_prev"
|
||||
android:src="@drawable/ic_skip_prev" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_play_pause"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/ic_play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_skip_next"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_skip_next"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_skip_next"
|
||||
android:src="@drawable/ic_skip_next" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_shuffle"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_shuffle"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_shuffle"
|
||||
android:src="@drawable/ic_shuffle" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -9,22 +9,22 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/widget_cover"
|
||||
style="@style/FluidImageView"
|
||||
android:contentDescription="@string/description_no_cover"
|
||||
style="@style/Widget.Component.AppWidget.ImageView"
|
||||
android:contentDescription="@string/desc_no_cover"
|
||||
android:src="@drawable/ic_song" />
|
||||
|
||||
<LinearLayout
|
||||
style="@style/WidgetPanel">
|
||||
style="@style/Widget.Component.AppWidget.Panel.Base">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/widget_song"
|
||||
style="@style/Widget.TextView.Widget.Primary"
|
||||
android:text="@string/placeholder_widget_song" />
|
||||
style="@style/Widget.Component.AppWidget.TextView.Primary"
|
||||
android:text="@string/def_widget_song" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/widget_artist"
|
||||
style="@style/Widget.TextView.Widget.Secondary"
|
||||
android:text="@string/placeholder_widget_artist" />
|
||||
style="@style/Widget.Component.AppWidget.TextView.Secondary"
|
||||
android:text="@string/def_widget_artist" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -33,20 +33,20 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_skip_prev"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_skip_prev"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_skip_prev"
|
||||
android:src="@drawable/ic_skip_prev" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_play_pause"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/ic_play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/widget_skip_next"
|
||||
style="@style/Widget.Button.Unbounded.Widget"
|
||||
android:contentDescription="@string/description_skip_next"
|
||||
style="@style/Widget.Component.AppWidget.Button"
|
||||
android:contentDescription="@string/desc_skip_next"
|
||||
android:src="@drawable/ic_skip_next" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user