2017-06-19 10:18:39 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
Adjust list UX for platform consistency (#3142)
Most lists in the app use (explicitly or implicitly) platform metrics for dimensions, text size, colour, and so on, possibly via styles.
A few don't, inadvertently using the user's setting for status text size
Fix these, and simplify code where possible.
- Use android attributes for padding and height, for consistent UX.
- Remove explicit usage of app:tabTextAppearance, rely on the style.
- Remove ListSelectionAdapter and item_picker_list.xml, and adjust TabPreferenceActivity to use an ArrayAdapter with simple_list_item_1.xml
- Simplify item_followed_hashtag.xml, consistent with item_list.xml.
Fixes https://github.com/tuskyapp/Tusky/issues/3131
2023-06-29 18:36:19 +02:00
|
|
|
|
|
|
|
<!-- Copied from android.R.layout.simple_list_item_1, because view binding does not work with
|
|
|
|
android.R.layout.* -->
|
|
|
|
|
2017-12-01 21:52:10 +01:00
|
|
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
Adjust list UX for platform consistency (#3142)
Most lists in the app use (explicitly or implicitly) platform metrics for dimensions, text size, colour, and so on, possibly via styles.
A few don't, inadvertently using the user's setting for status text size
Fix these, and simplify code where possible.
- Use android attributes for padding and height, for consistent UX.
- Remove explicit usage of app:tabTextAppearance, rely on the style.
- Remove ListSelectionAdapter and item_picker_list.xml, and adjust TabPreferenceActivity to use an ArrayAdapter with simple_list_item_1.xml
- Simplify item_followed_hashtag.xml, consistent with item_list.xml.
Fixes https://github.com/tuskyapp/Tusky/issues/3131
2023-06-29 18:36:19 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@android:id/text1"
|
2017-06-19 21:47:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-06-19 10:18:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
Adjust list UX for platform consistency (#3142)
Most lists in the app use (explicitly or implicitly) platform metrics for dimensions, text size, colour, and so on, possibly via styles.
A few don't, inadvertently using the user's setting for status text size
Fix these, and simplify code where possible.
- Use android attributes for padding and height, for consistent UX.
- Remove explicit usage of app:tabTextAppearance, rely on the style.
- Remove ListSelectionAdapter and item_picker_list.xml, and adjust TabPreferenceActivity to use an ArrayAdapter with simple_list_item_1.xml
- Simplify item_followed_hashtag.xml, consistent with item_list.xml.
Fixes https://github.com/tuskyapp/Tusky/issues/3131
2023-06-29 18:36:19 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
2019-07-19 20:10:20 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
Adjust list UX for platform consistency (#3142)
Most lists in the app use (explicitly or implicitly) platform metrics for dimensions, text size, colour, and so on, possibly via styles.
A few don't, inadvertently using the user's setting for status text size
Fix these, and simplify code where possible.
- Use android attributes for padding and height, for consistent UX.
- Remove explicit usage of app:tabTextAppearance, rely on the style.
- Remove ListSelectionAdapter and item_picker_list.xml, and adjust TabPreferenceActivity to use an ArrayAdapter with simple_list_item_1.xml
- Simplify item_followed_hashtag.xml, consistent with item_list.xml.
Fixes https://github.com/tuskyapp/Tusky/issues/3131
2023-06-29 18:36:19 +02:00
|
|
|
tools:ignore="SelectableText" />
|