Blame view

app/src/main/res/layout/fragment_menu_main.xml 3.13 KB
27983dbe   孙向锦   project init
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
  <?xml version="1.0" encoding="utf-8"?>
  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/votebakground">
  
      <FrameLayout
          android:id="@+id/single_item_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_margin="@dimen/px2dp_13"
          android:layout_weight="1" />
  
      <LinearLayout
          android:layout_width="match_parent"
          android:layout_height="@dimen/px2dp_106"
          android:layout_margin="@dimen/px2dp_13"
          android:background="@color/colorBgGrey"
          android:gravity="center"
          android:orientation="horizontal">
  
          <RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="@dimen/px2dp_93"
              android:layout_marginRight="@dimen/px2dp_53"
              android:layout_weight="1">
  
              <TextView
                  android:id="@+id/tv_current_score"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_alignParentRight="true"
                  android:layout_centerVertical="true"
                  android:gravity="center"
                  android:layout_marginRight="@dimen/px2dp_6"
                  android:text="当前评分"
                  android:textColor="@color/colorGreen"
                  android:textSize="@dimen/px2sp_42" />
  
              <View
                  android:id="@+id/current_view"
                  android:layout_width="@dimen/px2dp_170"
                  android:layout_height="@dimen/px2dp_3"
                  android:layout_alignParentBottom="true"
                  android:layout_alignParentRight="true"
                  android:layout_gravity="center_horizontal"
                  android:background="@color/colorGreen"
                  android:visibility="visible" />
          </RelativeLayout>
  
          <RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="@dimen/px2dp_93"
              android:layout_weight="1">
  
              <TextView
                  android:id="@+id/tv_history_score"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_alignEnd="@+id/history_view"
                  android:layout_alignRight="@+id/history_view"
                  android:layout_centerVertical="true"
                  android:text="评分记录"
                  android:gravity="center"
                  android:textSize="@dimen/px2sp_42" />
  
              <View
                  android:id="@+id/history_view"
                  android:layout_width="@dimen/px2dp_170"
                  android:layout_height="@dimen/px2dp_3"
                  android:layout_alignParentBottom="true"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginRight="@dimen/px2dp_6"
                  android:background="@color/colorGreen"
                  android:visibility="invisible" />
          </RelativeLayout>
      </LinearLayout>
  </LinearLayout>