mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 01:51:47 +00:00
We had a mix of specific colors and theme-based Material You colors. This aims to remove any hardcoded color so the app only uses the colors from the current theme.
81 lines
3.1 KiB
XML
81 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<!-- Layout for a Preference in a PreferenceActivity. The bound
|
|
Preference will place a specific widget representing that
|
|
Preference in the "widget_frame" ViewGroup in this file. -->
|
|
<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"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
>
|
|
<RelativeLayout
|
|
android:id="@+id/content"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center"
|
|
android:padding="16dp"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
>
|
|
<TextView
|
|
android:id="@android:id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
tools:text="Plugin title"
|
|
/>
|
|
<TextView
|
|
android:id="@android:id/summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignStart="@android:id/title"
|
|
android:layout_below="@android:id/title"
|
|
android:maxLines="3"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
tools:text="Plugin description"
|
|
/>
|
|
</RelativeLayout>
|
|
<!--
|
|
NB: This divider (below) should only become visible if the
|
|
preference links to additional settings. In practical terms,
|
|
that's when calling '::hasSettings' on the associated Plugin
|
|
returns true.
|
|
-->
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="1dp"
|
|
android:layout_height="32dp"
|
|
android:layout_gravity="center"
|
|
android:background="?colorPrimary"
|
|
/>
|
|
<!-- Preference will 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="center"
|
|
android:gravity="center"
|
|
android:padding="16dp"
|
|
android:orientation="vertical"
|
|
/>
|
|
</LinearLayout>
|