Warning, /network/kdeconnect-android/res/layout/preference_with_button.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project
0002 
0003      Licensed under the Apache License, Version 2.0 (the "License");
0004      you may not use this file except in compliance with the License.
0005      You may obtain a copy of the License at
0006 
0007           http://www.apache.org/licenses/LICENSE-2.0
0008 
0009      Unless required by applicable law or agreed to in writing, software
0010      distributed under the License is distributed on an "AS IS" BASIS,
0011      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0012      See the License for the specific language governing permissions and
0013      limitations under the License.
0014 -->
0015 
0016 <!-- Layout for a Preference in a PreferenceActivity. The bound
0017      Preference will place a specific widget representing that
0018      Preference in the "widget_frame" ViewGroup in this file. -->
0019 <LinearLayout
0020     xmlns:android="http://schemas.android.com/apk/res/android"
0021     xmlns:tools="http://schemas.android.com/tools"
0022     android:layout_width="match_parent"
0023     android:layout_height="wrap_content"
0024     android:background="?android:attr/selectableItemBackground"
0025     >
0026     <RelativeLayout
0027         android:id="@+id/content"
0028         android:layout_width="0dp"
0029         android:layout_height="wrap_content"
0030         android:layout_weight="1"
0031         android:layout_gravity="center"
0032         android:padding="16dp"
0033         android:minHeight="?android:attr/listPreferredItemHeight"
0034         >
0035         <TextView
0036             android:id="@android:id/title"
0037             android:layout_width="wrap_content"
0038             android:layout_height="wrap_content"
0039             android:ellipsize="marquee"
0040             android:fadingEdge="horizontal"
0041             android:singleLine="true"
0042             android:textAppearance="?android:attr/textAppearanceMedium"
0043             tools:text="Plugin title"
0044             />
0045         <TextView
0046             android:id="@android:id/summary"
0047             android:layout_width="wrap_content"
0048             android:layout_height="wrap_content"
0049             android:layout_alignStart="@android:id/title"
0050             android:layout_below="@android:id/title"
0051             android:maxLines="3"
0052             android:textAppearance="?android:attr/textAppearanceSmall"
0053             android:textColor="?android:attr/textColorSecondary"
0054             tools:text="Plugin description"
0055             />
0056     </RelativeLayout>
0057     <!--
0058     NB: This divider (below) should only become visible if the
0059     preference links to additional settings. In practical terms,
0060     that's when calling '::hasSettings' on the associated Plugin
0061     returns true.
0062     -->
0063     <View
0064         android:id="@+id/divider"
0065         android:layout_width="1dp"
0066         android:layout_height="32dp"
0067         android:layout_gravity="center"
0068         android:background="?divider"
0069         />
0070     <!-- Preference will place its actual preference widget here. -->
0071     <LinearLayout
0072         android:id="@android:id/widget_frame"
0073         android:layout_width="wrap_content"
0074         android:layout_height="match_parent"
0075         android:layout_gravity="center"
0076         android:gravity="center"
0077         android:padding="16dp"
0078         android:orientation="vertical"
0079         tools:background="@color/primary"
0080         />
0081 </LinearLayout>