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
50 lines
1.9 KiB
XML
50 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.keylesspalace.tusky.components.followedtags.FollowedTagsActivity">
|
|
|
|
<include
|
|
android:id="@+id/includedToolbar"
|
|
layout="@layout/toolbar_basic" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/followedTagsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:itemCount="5"
|
|
tools:listitem="@layout/item_followed_hashtag"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
/>
|
|
|
|
<com.keylesspalace.tusky.view.BackgroundMessageView
|
|
android:id="@+id/followedTagsMessageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
tools:visibility="gone"
|
|
/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/followedTagsProgressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
tools:visibility="gone"
|
|
/>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="16dp"
|
|
android:contentDescription="@string/action_mention"
|
|
app:srcCompat="@drawable/ic_hashtag" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|