xref: /aosp_15_r20/development/samples/ApiDemos/res/layout/tooltips.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!-- Copyright (C) 2016 The Android Open Source Project
3*90c8c64dSAndroid Build Coastguard Worker
4*90c8c64dSAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*90c8c64dSAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*90c8c64dSAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*90c8c64dSAndroid Build Coastguard Worker
10*90c8c64dSAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*90c8c64dSAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*90c8c64dSAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*90c8c64dSAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*90c8c64dSAndroid Build Coastguard Worker     limitations under the License.
15*90c8c64dSAndroid Build Coastguard Worker-->
16*90c8c64dSAndroid Build Coastguard Worker
17*90c8c64dSAndroid Build Coastguard Worker<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18*90c8c64dSAndroid Build Coastguard Worker        android:layout_width="match_parent"
19*90c8c64dSAndroid Build Coastguard Worker        android:layout_height="match_parent"
20*90c8c64dSAndroid Build Coastguard Worker        android:orientation="horizontal">
21*90c8c64dSAndroid Build Coastguard Worker
22*90c8c64dSAndroid Build Coastguard Worker    <LinearLayout
23*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
24*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="match_parent"
25*90c8c64dSAndroid Build Coastguard Worker            android:layout_weight="0.5"
26*90c8c64dSAndroid Build Coastguard Worker            android:gravity="center_horizontal"
27*90c8c64dSAndroid Build Coastguard Worker            android:orientation="vertical"
28*90c8c64dSAndroid Build Coastguard Worker            android:tooltipText="@string/tooltips_container_tooltip">
29*90c8c64dSAndroid Build Coastguard Worker
30*90c8c64dSAndroid Build Coastguard Worker        <TextView
31*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
32*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
33*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="8dp"
34*90c8c64dSAndroid Build Coastguard Worker                android:textSize="20sp"
35*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_description" />
36*90c8c64dSAndroid Build Coastguard Worker
37*90c8c64dSAndroid Build Coastguard Worker        <TextView
38*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/tooltips_code"
39*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
40*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
41*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
42*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
43*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
44*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
45*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_code_label" />
46*90c8c64dSAndroid Build Coastguard Worker
47*90c8c64dSAndroid Build Coastguard Worker        <TextView
48*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
49*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
50*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
51*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
52*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
53*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
54*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_resource_label"
55*90c8c64dSAndroid Build Coastguard Worker                android:tooltipText="@string/tooltips_resource_tooltip" />
56*90c8c64dSAndroid Build Coastguard Worker
57*90c8c64dSAndroid Build Coastguard Worker        <TextView
58*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
59*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
60*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
61*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
62*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
63*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
64*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_long_label"
65*90c8c64dSAndroid Build Coastguard Worker                android:tooltipText="@string/tooltips_long_tooltip" />
66*90c8c64dSAndroid Build Coastguard Worker
67*90c8c64dSAndroid Build Coastguard Worker        <TextView
68*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
69*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
70*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
71*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
72*90c8c64dSAndroid Build Coastguard Worker                android:layout_gravity="start|center_vertical"
73*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
74*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
75*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_edge_label"
76*90c8c64dSAndroid Build Coastguard Worker                android:tooltipText="@string/tooltips_edge_tooltip" />
77*90c8c64dSAndroid Build Coastguard Worker
78*90c8c64dSAndroid Build Coastguard Worker        <View
79*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="1dp"
80*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="match_parent"
81*90c8c64dSAndroid Build Coastguard Worker                android:layout_weight="1"/>
82*90c8c64dSAndroid Build Coastguard Worker
83*90c8c64dSAndroid Build Coastguard Worker        <TextView
84*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
85*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
86*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
87*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
88*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
89*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
90*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_above_label"
91*90c8c64dSAndroid Build Coastguard Worker                android:tooltipText="@string/tooltips_above_tooltip" />
92*90c8c64dSAndroid Build Coastguard Worker    </LinearLayout>
93*90c8c64dSAndroid Build Coastguard Worker
94*90c8c64dSAndroid Build Coastguard Worker    <LinearLayout
95*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
96*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="match_parent"
97*90c8c64dSAndroid Build Coastguard Worker            android:layout_weight="0.5"
98*90c8c64dSAndroid Build Coastguard Worker            android:orientation="vertical">
99*90c8c64dSAndroid Build Coastguard Worker
100*90c8c64dSAndroid Build Coastguard Worker        <TextView
101*90c8c64dSAndroid Build Coastguard Worker                android:background="#ccc"
102*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="match_parent"
103*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
104*90c8c64dSAndroid Build Coastguard Worker                android:layout_margin="4dp"
105*90c8c64dSAndroid Build Coastguard Worker                android:padding="10dp"
106*90c8c64dSAndroid Build Coastguard Worker                android:gravity="center"
107*90c8c64dSAndroid Build Coastguard Worker                android:textSize="16sp"
108*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/tooltips_wide_label"
109*90c8c64dSAndroid Build Coastguard Worker                android:tooltipText="@string/tooltips_wide_tooltip" />
110*90c8c64dSAndroid Build Coastguard Worker
111*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout
112*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="match_parent"
113*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="match_parent"
114*90c8c64dSAndroid Build Coastguard Worker                android:layout_weight="1"
115*90c8c64dSAndroid Build Coastguard Worker                android:orientation="horizontal">
116*90c8c64dSAndroid Build Coastguard Worker
117*90c8c64dSAndroid Build Coastguard Worker            <TextView
118*90c8c64dSAndroid Build Coastguard Worker                    android:background="#ccc"
119*90c8c64dSAndroid Build Coastguard Worker                    android:layout_width="wrap_content"
120*90c8c64dSAndroid Build Coastguard Worker                    android:layout_height="match_parent"
121*90c8c64dSAndroid Build Coastguard Worker                    android:layout_margin="4dp"
122*90c8c64dSAndroid Build Coastguard Worker                    android:padding="10dp"
123*90c8c64dSAndroid Build Coastguard Worker                    android:gravity="center"
124*90c8c64dSAndroid Build Coastguard Worker                    android:textSize="16sp"
125*90c8c64dSAndroid Build Coastguard Worker                    android:text="@string/tooltips_tall_label"
126*90c8c64dSAndroid Build Coastguard Worker                    android:tooltipText="@string/tooltips_tall_tooltip" />
127*90c8c64dSAndroid Build Coastguard Worker
128*90c8c64dSAndroid Build Coastguard Worker            <TextView
129*90c8c64dSAndroid Build Coastguard Worker                    android:background="#ccc"
130*90c8c64dSAndroid Build Coastguard Worker                    android:layout_width="match_parent"
131*90c8c64dSAndroid Build Coastguard Worker                    android:layout_height="match_parent"
132*90c8c64dSAndroid Build Coastguard Worker                    android:layout_weight="1"
133*90c8c64dSAndroid Build Coastguard Worker                    android:layout_margin="4dp"
134*90c8c64dSAndroid Build Coastguard Worker                    android:padding="10dp"
135*90c8c64dSAndroid Build Coastguard Worker                    android:gravity="center"
136*90c8c64dSAndroid Build Coastguard Worker                    android:textSize="16sp"
137*90c8c64dSAndroid Build Coastguard Worker                    android:text="@string/tooltips_large_label"
138*90c8c64dSAndroid Build Coastguard Worker                    android:tooltipText="@string/tooltips_large_tooltip" />
139*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
140*90c8c64dSAndroid Build Coastguard Worker    </LinearLayout>
141*90c8c64dSAndroid Build Coastguard Worker</LinearLayout>
142