-
Notifications
You must be signed in to change notification settings - Fork 0
/
item_sample_specific.xml
53 lines (47 loc) · 1.71 KB
/
item_sample_specific.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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?selectableItemBackgroundBorderless"
app:layout_menuPosition="2">
<LinearLayout
android:id="@+id/asd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_centerInParent="true"
android:orientation="vertical"
android:gravity="center"
>
<ImageView
android:id="@+id/icon_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
tools:src="@drawable/ic_battery"
/>
<TextView
android:id="@+id/title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12sp"
tools:text="@string/battery"
/>
</LinearLayout>
<TextView
android:id="@+id/charge_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/asd"
android:layout_alignStart="@id/asd"
android:layout_marginStart="20dp"
android:layout_marginTop="-4dp"
android:background="@drawable/rectangle_rounded_orange"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:textSize="12sp"
tools:text="31%" />
</RelativeLayout>