• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2025 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/nearby_sharing_suggestion_card"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
23    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
24    android:paddingVertical="@dimen/settingslib_expressive_space_medium3">
25
26    <LinearLayout
27        android:id="@+id/card_container"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:baselineAligned="false"
31        android:paddingHorizontal="@dimen/settingslib_expressive_space_small1"
32        android:orientation="horizontal"
33        android:gravity="center_vertical"
34        android:background="@drawable/settingslib_card_preference_background">
35
36        <FrameLayout
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content"
39            android:layout_gravity="top|center_horizontal"
40            android:paddingTop="@dimen/settingslib_expressive_space_small1">
41            <ImageView
42                android:layout_width="@dimen/settingslib_expressive_space_medium4"
43                android:layout_height="@dimen/settingslib_expressive_space_medium4"
44                android:layout_gravity="center"
45                android:padding="@dimen/settingslib_expressive_space_extrasmall2"
46                android:scaleType="fitCenter"
47                android:src="@drawable/circle"
48                android:tint="@color/settingslib_materialColorPrimary"
49                android:importantForAccessibility="no"/>
50            <ImageView
51                android:layout_width="@dimen/settingslib_expressive_space_small3"
52                android:layout_height="@dimen/settingslib_expressive_space_small3"
53                android:layout_gravity="center"
54                android:scaleType="fitCenter"
55                android:src="@drawable/ic_bluetooth_share_info"
56                android:tint="@color/settingslib_materialColorPrimaryContainer"
57                android:importantForAccessibility="no"/>
58        </FrameLayout>
59
60        <LinearLayout
61            android:id="@+id/text_container"
62            android:layout_width="0dp"
63            android:layout_height="wrap_content"
64            android:layout_weight="1"
65            android:paddingHorizontal="@dimen/settingslib_expressive_space_small1"
66            android:paddingTop="@dimen/settingslib_expressive_space_small1"
67            android:paddingBottom="@dimen/settingslib_expressive_space_small4"
68            android:orientation="vertical">
69            <TextView
70                android:id="@+id/nearby_sharing_suggestion_title"
71                android:layout_width="match_parent"
72                android:layout_height="wrap_content"
73                android:textAppearance="@style/TextAppearance.CardTitle.SettingsLib" />
74            <TextView
75                android:id="@+id/nearby_sharing_suggestion_summary"
76                android:layout_width="match_parent"
77                android:layout_height="wrap_content"
78                android:paddingTop="@dimen/settingslib_expressive_space_extrasmall2"
79                android:textAppearance="@style/TextAppearance.CardSummary.SettingsLib"
80                android:text="@string/bluetooth_try_nearby_share_summary"/>
81        </LinearLayout>
82
83        <ImageView
84            android:layout_width="@dimen/settingslib_expressive_space_small4"
85            android:layout_height="@dimen/settingslib_expressive_space_small4"
86            android:layout_gravity="center"
87            android:src="@drawable/ic_chevron_right_24dp"
88            android:tint="@color/settingslib_materialColorPrimary"
89            android:importantForAccessibility="no"
90            android:contentDescription="@null"/>
91
92    </LinearLayout>
93</LinearLayout>