Skip to content

Commit

Permalink
recent widget layout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Aug 13, 2023
1 parent f64f481 commit fe29967
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/src/main/res/layout/app_widget_recents.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@

<ImageView
android:id="@+id/app_widget_recents_icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/app_widget_recents_action_bar_icon_size"
android:layout_height="@dimen/app_widget_recents_action_bar_icon_size"
android:background="@android:color/transparent"
android:padding="@dimen/app_widget_recents_action_bar_item_padding"
android:layout_marginStart="@dimen/app_widget_recents_action_bar_icon_margin"
android:layout_marginLeft="@dimen/app_widget_recents_action_bar_icon_margin"
android:layout_marginEnd="@dimen/app_widget_recents_action_bar_icon_margin"
android:layout_marginRight="@dimen/app_widget_recents_action_bar_icon_margin"
android:contentDescription="@string/app_name"
android:layout_centerVertical="true"
android:scaleType="centerInside"
Expand All @@ -43,6 +46,8 @@
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/app_widget_recents_icon"
android:layout_toRightOf="@+id/app_widget_recents_icon"
android:layout_toLeftOf="@id/app_widget_recents_previous"
android:layout_toStartOf="@id/app_widget_recents_previous"
android:singleLine="true"
android:text="@string/page_recent"
android:textColor="@color/white"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
<dimen name="app_widget_small_button_padding">8.0dp</dimen>
<dimen name="app_widget_small_button_height">48.0dp</dimen>
<dimen name="app_widget_recents_action_bar_height">48.0dp</dimen>
<dimen name="app_widget_recents_action_bar_icon_size">32.0dp</dimen>
<dimen name="app_widget_recents_action_bar_icon_margin">8.0dp</dimen>
<dimen name="app_widget_recents_action_bar_item_padding">8.0dp</dimen>
<dimen name="app_widget_bottom_margin">4.0dp</dimen>

Expand Down

0 comments on commit fe29967

Please sign in to comment.