Fix events order, fix horizontal resize, add widget preview toggle, fix next event function, fix weather icon click listner and relase v1.3-beta1

This commit is contained in:
Tommaso Berlose
2017-11-07 00:01:40 +01:00
parent 170add3073
commit 0a289d82b2
31 changed files with 297 additions and 139 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -36,6 +36,35 @@
android:paddingRight="16dp"
android:textColor="@android:color/black" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:padding="16dp"
android:textSize="14sp"
android:id="@+id/action_toggle_widget_preview"
android:orientation="horizontal">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginRight="8dp"
android:layout_marginLeft="8dp"
android:id="@+id/widget_preview_icon"
android:tint="@android:color/black"
android:src="@drawable/ic_action_rate"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/action_hide_widget_preview"
style="@style/AnotherWidget.Settings.Title"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:id="@+id/widget_preview_label"
android:textColor="@android:color/black"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@ -31,7 +31,6 @@
android:layout_height="wrap_content"
android:lines="1"
android:maxLines="1"
android:gravity="right"
android:ellipsize="end"
android:text="@string/loading_text"
android:includeFontPadding="false"

View File

@ -18,11 +18,23 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/intent_container" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="8dp"
android:visibility="gone"
android:id="@+id/bottom_divider_8"
android:orientation="vertical" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="16dp"
android:visibility="gone"
android:id="@+id/bottom_divider"
android:id="@+id/bottom_divider_16"
android:orientation="vertical" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="24dp"
android:visibility="gone"
android:id="@+id/bottom_divider_24"
android:orientation="vertical" />
</LinearLayout>
</RelativeLayout>

View File

@ -151,4 +151,6 @@
<string name="donation_lunch">Una Pranzo Veloce</string>
<string name="background_service_title">Another Widget è attivo</string>
<string name="background_service_subtitle">AW è attivo in background</string>
<string name="action_show_widget_preview">Mostra Anteprima Widget</string>
<string name="action_hide_widget_preview">Nascondi Anteprima Widget</string>
</resources>

View File

@ -156,4 +156,6 @@
<string name="donation_lunch">A Quick Lunch</string>
<string name="background_service_title">Another Widget is Running</string>
<string name="background_service_subtitle">AW is running in the background</string>
<string name="action_show_widget_preview">Show Widget Preview</string>
<string name="action_hide_widget_preview">Hide Widget Preview</string>
</resources>

View File

@ -8,6 +8,6 @@
android:minResizeHeight="60dp"
android:minResizeWidth="300dp"
android:previewImage="@drawable/widget_preview"
android:resizeMode="vertical"
android:resizeMode="vertical|horizontal"
android:updatePeriodMillis="60000"
android:widgetCategory="home_screen" />

View File

@ -7,6 +7,6 @@
android:minResizeHeight="60dp"
android:minResizeWidth="300dp"
android:previewImage="@drawable/widget_preview"
android:resizeMode="vertical"
android:resizeMode="vertical|horizontal"
android:updatePeriodMillis="60000"
android:widgetCategory="home_screen" />