2018-01-06 19:01:37 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-03-16 13:36:16 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-01-06 19:01:37 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2019-03-16 13:36:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-03 13:24:12 +01:00
|
|
|
android:gravity="center_vertical"
|
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:orientation="horizontal"
|
|
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
tools:ignore="Overdraw">
|
2019-03-16 13:36:16 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/list_name_textview"
|
|
|
|
android:layout_width="0dp"
|
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:layout_height="wrap_content"
|
2019-03-16 13:36:16 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawablePadding="8dp"
|
|
|
|
android:gravity="center_vertical"
|
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"
|
2019-03-16 13:36:16 +01:00
|
|
|
tools:text="Example list" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/editListButton"
|
2020-01-30 21:37:28 +01:00
|
|
|
style="@style/TuskyImageButton"
|
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:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2019-03-16 13:36:16 +01:00
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/action_more"
|
|
|
|
android:src="@drawable/ic_more_horiz_24dp" />
|
|
|
|
</LinearLayout>
|