Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Zabka
Companion App Android
Commits
05b20535
Commit
05b20535
authored
Aug 21, 2019
by
Anon
Browse files
AppListFragment: Style list items.
parent
d80ea333
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/res/layout/app_list_item.xml
View file @
05b20535
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical"
android:gravity=
"center_vertical"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/default_list_item_height"
>
android:layout_height=
"@dimen/default_list_item_height"
android:background=
"?selectableItemBackground"
>
<TextView
android:id=
"@+id/label_name"
...
...
@@ -10,6 +12,6 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"start"
android:paddingLeft=
"@dimen/default_list_item_margin_side"
android:text
Style=
"bold
"
/>
android:text
Appearance=
"@style/TextAppearance.AppCompat.Body2
"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/values/dimensions.xml
View file @
05b20535
...
...
@@ -18,5 +18,5 @@
<dimen
name=
"loading_dialog_text_margin"
>
16dp
</dimen>
<dimen
name=
"default_list_item_margin_side"
>
16dp
</dimen>
<dimen
name=
"default_list_item_height"
>
48
dp
</dimen>
<dimen
name=
"default_list_item_height"
>
56
dp
</dimen>
</resources>
Write
Preview
Markdown
is supported
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