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"
|
2020-02-05 04:40:47 +00:00
|
|
|
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">
|
|
|
|
|
2020-02-05 04:40:47 +00:00
|
|
|
<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"
|
2020-05-14 14:47:36 +00:00
|
|
|
|
2018-07-27 13:07:33 +00:00
|
|
|
android:singleLine="true"
|
2020-02-05 04:40:47 +00:00
|
|
|
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
|
|
|
|
2020-02-05 04:40:47 +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"
|
2020-05-14 14:47:36 +00:00
|
|
|
|
2018-07-27 13:07:33 +00:00
|
|
|
android:maxLines="4"
|
2020-02-05 04:40:47 +00:00
|
|
|
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 -->
|