OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2013 The Chromium Authors. All rights reserved. | |
3 | |
4 Use of this source code is governed by a BSD-style license that can be | |
5 found in the LICENSE file. | |
6 --> | |
7 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
8 android:layout_width="wrap_content" | |
9 android:layout_height="wrap_content" | |
10 android:background="@drawable/bubble"> | |
11 | |
12 <LinearLayout | |
13 android:id="@+id/top_view" | |
14 android:layout_width="wrap_content" | |
15 android:layout_height="wrap_content" | |
16 android:layout_alignStart="@+id/icon_view" | |
17 android:layout_alignEnd="@+id/text_wrapper" | |
18 android:weightSum="1"> | |
19 | |
20 <View | |
21 android:layout_width="0dp" | |
22 android:layout_height="0dp" | |
23 android:layout_weight="0.25" | |
24 android:visibility="invisible"/> | |
25 | |
26 <ImageView | |
27 android:id="@+id/arrow_image" | |
28 android:layout_width="wrap_content" | |
29 android:layout_height="wrap_content" | |
30 android:layout_marginBottom="7dp" | |
31 android:src="@drawable/bubble_arrow_up" | |
32 android:contentDescription="@null" /> | |
33 | |
34 </LinearLayout> | |
35 | |
36 <ImageView | |
37 android:id="@id/icon_view" | |
38 android:layout_width="19dp" | |
39 android:layout_height="19dp" | |
40 android:layout_alignParentStart="true" | |
41 android:layout_below="@id/top_view" | |
42 android:layout_marginEnd="8dp" | |
43 android:src="@drawable/ic_warning" | |
44 android:contentDescription="@null" /> | |
45 | |
46 <LinearLayout | |
47 android:id="@id/text_wrapper" | |
48 android:layout_width="wrap_content" | |
49 android:layout_height="wrap_content" | |
50 android:layout_below="@id/top_view" | |
51 android:layout_toEndOf="@id/icon_view" | |
52 android:orientation="vertical"> | |
53 | |
54 <TextView | |
55 android:id="@+id/main_text" | |
56 android:layout_width="wrap_content" | |
57 android:layout_height="wrap_content" | |
58 android:maxWidth="300dp" | |
59 android:textColor="@android:color/black" | |
60 android:textSize="16sp" /> | |
61 | |
62 <TextView | |
63 android:id="@+id/sub_text" | |
64 android:layout_width="wrap_content" | |
65 android:layout_height="wrap_content" | |
66 android:maxWidth="300dp" | |
67 android:textColor="#444" | |
68 android:textSize="13sp" /> | |
69 | |
70 </LinearLayout> | |
71 | |
72 </RelativeLayout> | |
OLD | NEW |