wow!! configurable first fraction

This commit is contained in:
sk
2023-10-18 21:01:31 +02:00
parent 2e4f04cd88
commit 5135653cd3
4 changed files with 27 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="16dp">
@@ -107,6 +108,7 @@
<org.joinmastodon.android.ui.views.HeaderSubtitleLinearLayout
android:id="@+id/name_wrap"
app:firstFraction="60%"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/avatar"

View File

@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<org.joinmastodon.android.ui.views.HeaderSubtitleLinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:firstFraction="30%"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -114,4 +114,8 @@
<declare-styleable name="NestedRecyclerScrollView">
<attr name="takePriorityOverChildViews" format="boolean"/>
</declare-styleable>
<declare-styleable name="HeaderSubtitleLinearLayout">
<attr name="firstFraction" format="fraction"/>
</declare-styleable>
</resources>