Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
f4f8f38f
Commit
f4f8f38f
authored
Jan 22, 2019
by
Nihar Thakkar
Browse files
Improve install button sizing
parent
4b44eec5
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/src/main/res/layout/activity_application.xml
View file @
f4f8f38f
...
...
@@ -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"
...
...
app/src/main/res/layout/install_button_layout.xml
View file @
f4f8f38f
<?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"
...
...
app/src/main/res/layout/simple_install_button_layout.xml
View file @
f4f8f38f
<?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
app/src/main/res/layout/small_application_list_item.xml
View file @
f4f8f38f
...
...
@@ -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"
...
...
app/src/main/res/values/dimens.xml
View file @
f4f8f38f
...
...
@@ -18,9 +18,8 @@
<dimen
name=
"default_radius"
>
4dp
</dimen>
<dimen
name=
"category_radius"
>
16dp
</dimen>
<dimen
name=
"install_button_width"
>
80
dp
</dimen>
<dimen
name=
"install_button_width"
>
76
dp
</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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment