Blame view

app/src/main/res/layout/layout_rank_row.xml 3.88 KB
7f095a929   chudinhbka@gmail.com   Create GIT Project
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
98
99
100
101
102
103
104
105
106
107
108
109
110
  <?xml version="1.0" encoding="utf-8"?>
  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="102dp"
      android:background="@android:color/white"
      android:orientation="vertical">
  
      <View
          android:layout_width="match_parent"
          android:layout_height="1dp"
          android:background="@android:color/black" />
  
      <RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="100dp">
  
          <TextView
              android:id="@+id/tv_position"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:layout_margin="8dp"
              android:text="1"
              android:textColor="@android:color/black"
              android:textSize="36sp" />
  
          <ImageView
              android:id="@+id/imv_user_icon"
              android:layout_width="56dp"
              android:layout_height="56dp"
              android:layout_centerVertical="true"
              android:layout_margin="8dp"
              android:layout_toRightOf="@id/tv_position"
              android:background="@drawable/ic_user" />
  
          <LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:layout_toLeftOf="@+id/imv_position"
              android:layout_toRightOf="@+id/imv_user_icon"
              android:orientation="vertical">
  
              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal">
  
                  <TextView
                      android:layout_width="80dp"
                      android:layout_height="wrap_content"
                      android:text="ユーザー" />
  
                  <TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="ニックネーム" />
              </LinearLayout>
  
              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal">
  
                  <TextView
                      android:id="@+id/tv_steps"
                      android:layout_width="80dp"
                      android:layout_height="wrap_content"
                      android:text="12345 歩" />
  
                  <TextView
                      android:id="@+id/tv_distance"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="123456 km" />
              </LinearLayout>
  
              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal">
  
                  <TextView
                      android:id="@+id/tv_time"
                      android:layout_width="80dp"
                      android:layout_height="wrap_content"
                      android:text="11:22:33" />
  
                  <TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="" />
              </LinearLayout>
          </LinearLayout>
  
          <ImageView
              android:id="@+id/imv_position"
              android:layout_width="36dp"
              android:layout_height="36dp"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:layout_marginRight="8dp"
              android:layout_marginLeft="2dp"/>
      </RelativeLayout>
  
      <View
          android:layout_width="match_parent"
          android:layout_height="1dp"
          android:background="@android:color/black" />
  </LinearLayout>