7fe4c9f317
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
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
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">
|
|
|
|
<TextView
|
|
android:id="@+id/list_name_textview"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="8dp"
|
|
android:gravity="center_vertical"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
tools:text="Example list" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/editListButton"
|
|
style="@style/TuskyImageButton"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/action_more"
|
|
android:src="@drawable/ic_more_horiz_24dp" />
|
|
</LinearLayout>
|