forked from sk22/megalodon
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(custom-tabs-setting): use upstream implementation
Seriously, why do we do this?
- Loading branch information
1 parent
9cb48e2
commit 70d0ba8
Showing
3 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
mastodon/src/main/res/layout/item_alert_single_choice_2lines_but_different.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<org.joinmastodon.android.ui.views.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="56dp" | ||
android:paddingHorizontal="16dp" | ||
android:paddingVertical="12dp" | ||
android:gravity="center_vertical"> | ||
|
||
<View | ||
android:id="@+id/radiobutton" | ||
android:layout_width="32dp" | ||
android:layout_height="32dp" | ||
android:layout_gravity="center_vertical" | ||
android:background="?android:attr/listChoiceIndicatorSingle" | ||
android:duplicateParentState="true"/> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="12dp" | ||
android:orientation="vertical" | ||
android:gravity="center_vertical"> | ||
<TextView | ||
android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="24dp" | ||
android:gravity="center_vertical|start" | ||
android:textAppearance="@style/m3_body_large" | ||
android:textSize="16sp" | ||
android:textColor="?colorM3OnSurface" | ||
android:textAlignment="viewStart" | ||
tools:text="Title"/> | ||
|
||
<TextView | ||
android:id="@+id/subtitle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="20dp" | ||
android:gravity="center_vertical|start" | ||
android:textAppearance="@style/m3_body_medium" | ||
android:textSize="14sp" | ||
android:textColor="?colorM3OnSurfaceVariant" | ||
android:textAlignment="viewStart" | ||
tools:text="Subtitle"/> | ||
</LinearLayout> | ||
|
||
</org.joinmastodon.android.ui.views.CheckableLinearLayout> |