-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy pathactivity_main.xml
74 lines (72 loc) · 2.74 KB
/
activity_main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:gravity="center_horizontal"
android:divider="@drawable/divider"
android:showDividers="middle"
android:layout_margin="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.library.bubbleview.BubbleTextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello BubbleTextVew"
android:textSize="20sp"
android:padding="10dp"
android:textColor="@android:color/white"
app:arrowWidth="8dp"
app:angle="8dp"
app:arrowHeight="10dp"
app:arrowPosition="14dp"
app:arrowLocation="right"
app:bubbleColor="#7EC0EE"/>
<com.github.library.bubbleview.BubbleImageView
android:id="@+id/bubble_image"
android:src="@drawable/girl"
android:layout_width="180dp"
android:layout_height="wrap_content"
app:arrowWidth="10dp"
app:angle="6dp"
app:arrowHeight="8dp"
app:arrowLocation="top"
app:arrowCenter="true"/>
<com.github.library.bubbleview.BubbleLinearLayout
android:orientation="horizontal"
app:arrowWidth="8dp"
app:angle="4dp"
app:arrowHeight="10dp"
app:arrowPosition="10dp"
app:arrowLocation="bottom"
app:bubbleColor="#7EC0EE"
app:arrowCenter="true"
android:id="@+id/bubble_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_marginBottom="10dp"
android:src="@mipmap/ic_launcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:textColor="@android:color/white"
android:layout_marginRight="4dp"
android:layout_gravity="center_vertical"
android:text="BubbleLinearLayout Text"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</com.github.library.bubbleview.BubbleLinearLayout>
<com.github.library.bubbleview.BubbleTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello BubbleTextVew"
android:padding="10dp"
android:textColor="@android:color/white"
app:arrowWidth="8dp"
app:angle="2dp"
app:arrowHeight="10dp"
app:arrowPosition="10dp"
app:arrowLocation="bottom"
app:bubbleColor="#ff4444"/>
</LinearLayout>