feat(android): add widget layouts and large widget config
This commit is contained in:
parent
09e78d0920
commit
74d084ba77
13
android/app/src/main/res/layout/widget_placeholder.xml
Normal file
13
android/app/src/main/res/layout/widget_placeholder.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FF14141F">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="ChronoMind"
|
||||
android:textColor="#FFEEEEEE"
|
||||
android:textSize="14sp" />
|
||||
</FrameLayout>
|
||||
11
android/app/src/main/res/xml/widget_large_info.xml
Normal file
11
android/app/src/main/res/xml/widget_large_info.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="250dp"
|
||||
android:minHeight="180dp"
|
||||
android:targetCellWidth="4"
|
||||
android:targetCellHeight="3"
|
||||
android:updatePeriodMillis="60000"
|
||||
android:initialLayout="@layout/widget_placeholder"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetCategory="home_screen"
|
||||
android:description="@string/widget_large_description" />
|
||||
Loading…
Reference in New Issue
Block a user