PlayerAndroid/appthemehelper/src/main/res/layout/ate_preference_custom_suppo...

76 lines
3.2 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?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"
2019-02-19 10:38:51 +00:00
android:background="?android:attr/selectableItemBackground"
2018-07-27 13:07:33 +00:00
android:baselineAligned="false"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
android:paddingEnd="?android:attr/scrollbarSize"
android:paddingRight="?android:attr/scrollbarSize"
tools:ignore="RtlSymmetry,UnusedAttribute">
<ImageView
2018-12-05 15:35:22 +00:00
android:id="@android:id/icon"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="@dimen/ate_preference_inset"
2019-02-19 10:38:51 +00:00
android:layout_marginLeft="@dimen/ate_preference_inset"
tools:ignore="ContentDescription"
tools:src="@drawable/icon_back_black" />
2018-07-27 13:07:33 +00:00
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="start|center_vertical"
2019-06-02 10:10:33 +00:00
android:layout_marginStart="32dp"
2019-02-19 10:38:51 +00:00
android:layout_marginLeft="@dimen/ate_preference_inset"
2018-07-27 13:07:33 +00:00
android:layout_marginTop="12dip"
2019-02-19 10:38:51 +00:00
android:layout_marginEnd="6dip"
android:layout_marginRight="6dip"
android:layout_marginBottom="12dip"
2018-07-27 13:07:33 +00:00
android:layout_weight="1">
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
2019-02-19 10:38:51 +00:00
android:layout_alignParentLeft="true"
2018-07-27 13:07:33 +00:00
android:ellipsize="marquee"
android:fadingEdge="horizontal"
2018-07-27 13:07:33 +00:00
android:singleLine="true"
android:textAppearance="@style/TextAppearance.MaterialComponents.Subtitle1"
android:textColor="?android:attr/textColorPrimary"
tools:text="@tools:sample/lorem/random" />
2018-07-27 13:07:33 +00:00
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@android:id/title"
2019-02-19 10:38:51 +00:00
android:layout_alignStart="@android:id/title"
android:layout_alignLeft="@android:id/title"
2018-07-27 13:07:33 +00:00
android:layout_marginTop="2dp"
2018-07-27 13:07:33 +00:00
android:maxLines="4"
android:textColor="?android:attr/textColorSecondary"
2019-09-03 17:54:14 +00:00
tools:text="I have one solution for you.you can change font size for specific preference by managing layout file." />
2018-07-27 13:07:33 +00:00
</RelativeLayout>
<!-- Preference should place its actual preference widget here. -->
<LinearLayout
android:id="@android:id/widget_frame"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end|center_vertical"
android:gravity="center_vertical"
android:orientation="vertical" />
</LinearLayout><!-- From: file:/home/jitpack/build/commons/src/main/res/layout/md_preference_custom.xml -->