-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathactivity_main.xml
97 lines (89 loc) · 3.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
tools:context="ru.nikartm.image_support.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginBottom="16dp">
<ru.nikartm.support.ImageBadgeView
android:id="@+id/ibv_icon1"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="30dp"
app:ibv_badgeValue="15"
app:ibv_badgePadding="5dp"
app:ibv_badgeTextSize="12sp"
app:ibv_badgeTextColor="#ffffff"
app:ibv_badgeColor="@color/colorGreen500"
app:ibv_visibleBadge="true"
app:ibv_badgeLimitValue="true"
android:layout_gravity="center"
android:src="@drawable/ic_people" />
<ru.nikartm.support.ImageBadgeView
android:id="@+id/ibv_icon2"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="30dp"
android:layout_gravity="center"
android:padding="5dp"
app:ibv_badgeValue="3"
app:ibv_badgeTextSize="12sp"
app:ibv_fixedBadgeRadius="15dp"
app:ibv_badgeTextStyle="bold"
app:ibv_badgeTextColor="#ffffff"
app:ibv_badgeColor="#00ACC1"
app:ibv_badgeLimitValue="false"
android:src="@drawable/ic_shopping_cart" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="13sp"
android:text="@string/tap_on_cart"/>
<ru.nikartm.support.ImageBadgeView
android:id="@+id/ibv_icon3"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="30dp"
android:padding="5dp"
app:ibv_badgeValue="101"
app:ibv_badgePadding="5dp"
app:ibv_badgeTextSize="16sp"
app:ibv_badgePosition="top_left"
app:ibv_badgeTextColor="#ffffff"
app:ibv_badgeColor="@color/colorAccent"
android:layout_gravity="center"
android:src="@mipmap/ic_launcher_round" />
<ru.nikartm.support.ImageBadgeView
android:id="@+id/ibv_icon4"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="30dp"
android:layout_gravity="center"
tools:ibv_badgeValue="27"
tools:ibv_badgeTextSize="16dp"
tools:ibv_badgePadding="5dp"
tools:ibv_badgePosition="bottom_right"
tools:ibv_badgeBackground="@drawable/rectangle_rounded"
android:src="@drawable/ic_mail" />
<ru.nikartm.support.ImageBadgeView
android:id="@+id/ibv_icon5"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="30dp"
android:layout_gravity="center"
app:ibv_visibleBadge="true"
app:ibv_showCounter="false"
app:ibv_fixedBadgeRadius="16dp"
app:ibv_badgePosition="top_right"
app:ibv_badgeBackground="@drawable/ic_check_circle"
android:src="@drawable/ic_fingerprint" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>