fix: layout tweaks for upcoming widget
This commit is contained in:
parent
3375496ef2
commit
be07fad8f1
14 changed files with 93 additions and 91 deletions
|
@ -16,7 +16,7 @@
|
|||
android:id="@+id/widgetContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp">
|
||||
android:padding="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/logoView"
|
||||
|
@ -41,7 +41,7 @@
|
|||
android:maxLines="2"
|
||||
android:ellipsize="none"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:text="@string/currently_airing"
|
||||
android:text="@string/upcoming"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
|
@ -6,11 +6,12 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:padding="8dp">
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_show_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:shapeAppearanceOverlay="@style/roundedImageView"
|
||||
android:contentDescription="@string/airing_image"/>
|
||||
|
@ -30,7 +31,7 @@
|
|||
android:fontFamily="@font/poppins_bold"
|
||||
android:text=""
|
||||
android:textColor="@color/bg_white"
|
||||
android:maxLines="3"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textSize="16sp" />
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
android:id="@+id/widgetContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp">
|
||||
android:padding="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/logoView"
|
||||
|
@ -40,7 +40,7 @@
|
|||
android:textAlignment="viewStart"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="none"
|
||||
android:text="@string/currently_airing"
|
||||
android:text="@string/upcoming"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
|
@ -678,6 +678,7 @@
|
|||
<string name="configure">Configure</string>
|
||||
<string name="add_widget">Add widget</string>
|
||||
<string name="app_widget_description">This is an app widget description</string>
|
||||
<string name="upcoming_anime">Upcoming Anime</string>
|
||||
<string name="airing_image">Airing Image</string>
|
||||
<string name="anime_downloads">animeDownloads</string>
|
||||
<string name="purge_anime_downloads">Delete all Anime downloads</string>
|
||||
|
@ -720,7 +721,7 @@
|
|||
<string name="mutual">Mutual</string>
|
||||
<string name="success">Success</string>
|
||||
|
||||
<string name="currently_airing">Currently Airing</string>
|
||||
<string name="upcoming">Upcoming</string>
|
||||
<string name="no_shows_to_display">No shows to display</string>
|
||||
<string name="extension_name">Extension Name</string>
|
||||
<string name="extension_version">version</string>
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:description="@string/app_widget_description"
|
||||
android:configure="ani.dantotsu.widgets.CurrentlyAiringWidgetConfigureActivity"
|
||||
android:initialKeyguardLayout="@layout/currently_airing_widget"
|
||||
android:initialLayout="@layout/currently_airing_widget"
|
||||
android:minWidth="160dp"
|
||||
android:minHeight="160dp"
|
||||
android:previewImage="@drawable/example_appwidget_preview"
|
||||
android:previewLayout="@layout/currently_airing_widget"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="3600000"
|
||||
android:widgetCategory="home_screen"/>
|
13
app/src/main/res/xml-v31/upcoming_widget_info.xml
Normal file
13
app/src/main/res/xml-v31/upcoming_widget_info.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:description="@string/upcoming_anime"
|
||||
android:configure="ani.dantotsu.widgets.UpcomingWidgetConfigureActivity"
|
||||
android:initialKeyguardLayout="@layout/upcoming_widget"
|
||||
android:initialLayout="@layout/upcoming_widget"
|
||||
android:minWidth="160dp"
|
||||
android:minHeight="80dp"
|
||||
android:previewImage="@drawable/example_appwidget_preview"
|
||||
android:previewLayout="@layout/upcoming_widget"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="3600000"
|
||||
android:widgetCategory="home_screen"/>
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:description="@string/app_widget_description"
|
||||
android:configure="ani.dantotsu.widgets.CurrentlyAiringWidgetConfigureActivity"
|
||||
android:initialKeyguardLayout="@layout/currently_airing_widget"
|
||||
android:initialLayout="@layout/currently_airing_widget"
|
||||
android:minWidth="160dp"
|
||||
android:minHeight="160dp"
|
||||
android:previewImage="@drawable/example_appwidget_preview"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="3600000"
|
||||
android:widgetCategory="home_screen"/>
|
12
app/src/main/res/xml/upcoming_widget_info.xml
Normal file
12
app/src/main/res/xml/upcoming_widget_info.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:description="@string/upcoming_anime"
|
||||
android:configure="ani.dantotsu.widgets.UpcomingWidgetConfigureActivity"
|
||||
android:initialKeyguardLayout="@layout/upcoming_widget"
|
||||
android:initialLayout="@layout/upcoming_widget"
|
||||
android:minWidth="160dp"
|
||||
android:minHeight="80dp"
|
||||
android:previewImage="@drawable/example_appwidget_preview"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="3600000"
|
||||
android:widgetCategory="home_screen"/>
|
Loading…
Add table
Add a link
Reference in a new issue