Commit f4f8f38f authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Improve install button sizing

parent 4b44eec5
......@@ -164,7 +164,7 @@
<include
layout="@layout/install_button_layout"
android:layout_width="@dimen/install_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
......
<?xml version="1.0" encoding="utf-8"?>
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/app_install"
android:layout_width="@dimen/install_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/app_install_border"
android:ellipsize="end"
android:foreground="?android:selectableItemBackground"
android:maxWidth="@dimen/install_button_width"
android:maxLines="1"
android:minWidth="0dp"
android:minWidth="@dimen/install_button_width"
android:minHeight="0dp"
android:padding="@dimen/layout_padding_medium"
android:text="@string/action_install"
......
<?xml version="1.0" encoding="utf-8"?>
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/app_install"
android:layout_width="@dimen/simple_install_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/app_install_border_simple"
android:ellipsize="end"
android:foreground="?android:selectableItemBackground"
android:maxWidth="@dimen/simple_install_button_width"
android:maxLines="1"
android:minWidth="0dp"
android:minWidth="@dimen/install_button_width"
android:minHeight="0dp"
android:paddingStart="@dimen/layout_padding_small"
android:paddingTop="@dimen/layout_padding_medium"
android:paddingEnd="@dimen/layout_padding_small"
android:paddingBottom="@dimen/layout_padding_medium"
android:padding="@dimen/layout_padding_medium"
android:text="@string/action_install"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/text_size_small" />
\ No newline at end of file
......@@ -35,7 +35,7 @@
<include
layout="@layout/simple_install_button_layout"
android:layout_width="@dimen/simple_install_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/app_title"
android:layout_centerHorizontal="true"
......
......@@ -18,9 +18,8 @@
<dimen name="default_radius">4dp</dimen>
<dimen name="category_radius">16dp</dimen>
<dimen name="install_button_width">80dp</dimen>
<dimen name="install_button_width">76dp</dimen>
<dimen name="update_all_button_width">116dp</dimen>
<dimen name="simple_install_button_width">72dp</dimen>
<dimen name="app_icon_size">64dp</dimen>
<dimen name="app_icon_size_large">80dp</dimen>
<dimen name="small_application_list_item_width">116dp</dimen>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment