update widgets
This commit is contained in:
parent
a9b63530f9
commit
cfcea37dd7
6 changed files with 40 additions and 48 deletions
|
@ -268,7 +268,6 @@
|
||||||
android:name="code.name.monkey.retromusic.glide.RetroMusicGlideModule"
|
android:name="code.name.monkey.retromusic.glide.RetroMusicGlideModule"
|
||||||
android:value="GlideModule" />
|
android:value="GlideModule" />
|
||||||
|
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.bumptech.glide.integration.okhttp3.OkHttpGlideModule"
|
android:name="com.bumptech.glide.integration.okhttp3.OkHttpGlideModule"
|
||||||
android:value="GlideModule" />
|
android:value="GlideModule" />
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
android:layout_width="@dimen/app_widget_card_image_size"
|
android:layout_width="@dimen/app_widget_card_image_size"
|
||||||
android:layout_height="@dimen/app_widget_card_image_size"
|
android:layout_height="@dimen/app_widget_card_image_size"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription"
|
||||||
|
tools:src="@drawable/default_album_art" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/media_titles"
|
android:id="@+id/media_titles"
|
||||||
|
@ -38,23 +39,16 @@
|
||||||
android:textColor="@color/ate_primary_text_light"
|
android:textColor="@color/ate_primary_text_light"
|
||||||
tools:text="Title" />
|
tools:text="Title" />
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
|
android:id="@+id/text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:orientation="horizontal">
|
android:gravity="center_vertical"
|
||||||
|
android:singleLine="true"
|
||||||
<TextView
|
android:textAppearance="@style/TextViewCaption"
|
||||||
android:id="@+id/text"
|
android:textColor="@color/ate_secondary_text_light"
|
||||||
android:layout_width="wrap_content"
|
tools:text="Text" />
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textAppearance="@style/TextViewBody2"
|
|
||||||
android:textColor="@color/ate_secondary_text_light"
|
|
||||||
tools:text="Album" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -86,7 +80,7 @@
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/widget_selector_light"
|
android:background="@drawable/widget_selector_light"
|
||||||
tools:ignore="ContentDescription"
|
tools:ignore="ContentDescription"
|
||||||
tools:src="@drawable/ic_play_arrow_white_32dp"
|
tools:src="@drawable/ic_play_arrow_white_24dp"
|
||||||
tools:tint="@color/ate_secondary_text_light" />
|
tools:tint="@color/ate_secondary_text_light" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
|
@ -100,7 +94,5 @@
|
||||||
tools:tint="@color/ate_secondary_text_light" />
|
tools:tint="@color/ate_secondary_text_light" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="#AA000000"
|
android:background="@drawable/card"
|
||||||
android:columnCount="2"
|
android:columnCount="2"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:rowCount="3">
|
android:rowCount="3">
|
||||||
|
@ -13,7 +13,8 @@
|
||||||
android:layout_width="@dimen/app_widget_small_image_size"
|
android:layout_width="@dimen/app_widget_small_image_size"
|
||||||
android:layout_height="@dimen/app_widget_small_image_size"
|
android:layout_height="@dimen/app_widget_small_image_size"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription"
|
||||||
|
tools:src="@drawable/default_album_art" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/media_actions"
|
android:id="@+id/media_actions"
|
||||||
|
@ -28,30 +29,30 @@
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/app_widget_small_button_height"
|
android:layout_height="@dimen/app_widget_small_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/widget_selector"
|
android:background="@drawable/widget_selector_light"
|
||||||
tools:ignore="ContentDescription"
|
tools:ignore="ContentDescription"
|
||||||
tools:src="@drawable/ic_skip_previous_white_24dp"
|
tools:src="@drawable/ic_skip_previous_white_24dp"
|
||||||
tools:tint="@color/ate_secondary_text_dark" />
|
tools:tint="@color/ate_secondary_text_light" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/button_toggle_play_pause"
|
android:id="@+id/button_toggle_play_pause"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/app_widget_small_button_height"
|
android:layout_height="@dimen/app_widget_small_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/widget_selector"
|
android:background="@drawable/widget_selector_light"
|
||||||
tools:ignore="ContentDescription"
|
tools:ignore="ContentDescription"
|
||||||
tools:src="@drawable/ic_play_arrow_white_32dp"
|
tools:src="@drawable/ic_play_arrow_white_24dp"
|
||||||
tools:tint="@color/ate_secondary_text_dark" />
|
tools:tint="@color/ate_secondary_text_light" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/button_next"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/app_widget_small_button_height"
|
android:layout_height="@dimen/app_widget_small_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/widget_selector"
|
android:background="@drawable/widget_selector_light"
|
||||||
tools:ignore="ContentDescription"
|
tools:ignore="ContentDescription"
|
||||||
tools:src="@drawable/ic_skip_next_white_24dp"
|
tools:src="@drawable/ic_skip_next_white_24dp"
|
||||||
tools:tint="@color/ate_secondary_text_dark" />
|
tools:tint="@color/ate_secondary_text_light" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@style/TextViewBody2"
|
android:textAppearance="@style/TextViewBody2"
|
||||||
android:textColor="@color/ate_primary_text_dark"
|
android:textColor="@color/ate_primary_text_light"
|
||||||
tools:text="Title" />
|
tools:text="Title" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -93,7 +94,7 @@
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@style/TextViewBody1"
|
android:textAppearance="@style/TextViewBody1"
|
||||||
android:textColor="@color/ate_secondary_text_dark"
|
android:textColor="@color/ate_secondary_text_light"
|
||||||
tools:ignore="HardcodedText"
|
tools:ignore="HardcodedText"
|
||||||
tools:text="•" />
|
tools:text="•" />
|
||||||
|
|
||||||
|
@ -104,7 +105,7 @@
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@style/TextViewBody1"
|
android:textAppearance="@style/TextViewBody1"
|
||||||
android:textColor="@color/ate_secondary_text_dark"
|
android:textColor="@color/ate_secondary_text_light"
|
||||||
tools:text="Text" />
|
tools:text="Text" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:initialLayout="@layout/app_widget_big"
|
android:initialLayout="@layout/app_widget_big"
|
||||||
android:minHeight="@dimen/app_widget_big_min_height"
|
|
||||||
android:minWidth="@dimen/app_widget_big_min_width"
|
android:minWidth="@dimen/app_widget_big_min_width"
|
||||||
|
android:minHeight="@dimen/app_widget_big_min_height"
|
||||||
android:resizeMode="horizontal|vertical"
|
android:resizeMode="horizontal|vertical"
|
||||||
android:updatePeriodMillis="0"
|
android:updatePeriodMillis="0"
|
||||||
android:widgetCategory="keyguard|home_screen"
|
android:widgetCategory="keyguard|home_screen"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:initialLayout="@layout/app_widget_card"
|
android:initialLayout="@layout/app_widget_card"
|
||||||
android:minHeight="@dimen/app_widget_card_min_height"
|
android:minWidth="@dimen/app_widget_card_min_width"
|
||||||
android:minWidth="@dimen/app_widget_card_min_width"
|
android:minHeight="@dimen/app_widget_small_min_height"
|
||||||
android:resizeMode="horizontal|vertical"
|
android:resizeMode="horizontal|vertical"
|
||||||
android:updatePeriodMillis="0"
|
android:updatePeriodMillis="0"
|
||||||
android:widgetCategory="keyguard|home_screen"
|
android:widgetCategory="keyguard|home_screen"
|
||||||
tools:ignore="UnusedAttribute"/>
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
<!--android:previewImage="@drawable/app_widget_classic"-->
|
<!--android:previewImage="@drawable/app_widget_classic"-->
|
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:initialLayout="@layout/app_widget_classic"
|
android:initialLayout="@layout/app_widget_classic"
|
||||||
android:minHeight="@dimen/app_widget_classic_min_height"
|
android:minWidth="@dimen/app_widget_classic_min_width"
|
||||||
android:minWidth="@dimen/app_widget_classic_min_width"
|
android:minHeight="@dimen/app_widget_classic_min_height"
|
||||||
android:resizeMode="horizontal|vertical"
|
android:resizeMode="horizontal|vertical"
|
||||||
android:updatePeriodMillis="0"
|
android:updatePeriodMillis="0"
|
||||||
android:widgetCategory="keyguard|home_screen"
|
android:widgetCategory="keyguard|home_screen"
|
||||||
tools:ignore="UnusedAttribute"/>
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
<!--android:previewImage="@drawable/app_widget_classic"-->
|
<!--android:previewImage="@drawable/app_widget_classic"-->
|
Loading…
Add table
Add a link
Reference in a new issue