Commit 16d09460ea1762225489b59b4ab418a99f1bb968

Authored by 韩亚云
1 parent 6f555994

报名页面

app/src/main/java/com/example/modulepedometer/MainActivity.java
@@ -2,14 +2,8 @@ package com.example.modulepedometer; @@ -2,14 +2,8 @@ package com.example.modulepedometer;
2 2
3 import android.content.Intent; 3 import android.content.Intent;
4 import android.os.Bundle; 4 import android.os.Bundle;
5 -import android.support.design.widget.BottomSheetDialog;  
6 import android.support.v7.app.AppCompatActivity; 5 import android.support.v7.app.AppCompatActivity;
7 -import android.view.View;  
8 -  
9 -import com.alibaba.android.arouter.launcher.ARouter;  
10 -import com.cnlive.moudle.pedometer.ui.activity.PedometerMainActivity;  
11 import com.cnlive.moudle.pedometer.ui.activity.RunLineActivity; 6 import com.cnlive.moudle.pedometer.ui.activity.RunLineActivity;
12 -import com.cnlive.moudle.pedometer.ui.activity.RunRaceDetailActivity;  
13 7
14 8
15 public class MainActivity extends AppCompatActivity { 9 public class MainActivity extends AppCompatActivity {
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RegistrationInfoView.java
@@ -26,6 +26,13 @@ public class RegistrationInfoView implements MvpView { @@ -26,6 +26,13 @@ public class RegistrationInfoView implements MvpView {
26 fragment.binding.topbar.setTitle("填写报名信息"); 26 fragment.binding.topbar.setTitle("填写报名信息");
27 fragment.binding.commitInfo.setOnClickListener(v -> fragment.commitInfo()); 27 fragment.binding.commitInfo.setOnClickListener(v -> fragment.commitInfo());
28 fragment.binding.toLineDetail.setOnClickListener(v ->goLineDetail()); 28 fragment.binding.toLineDetail.setOnClickListener(v ->goLineDetail());
  29 +
  30 + fragment.binding.chooseSex.setOnClickListener(v -> {
  31 +
  32 + });
  33 + fragment.binding.chooseBirthday.setOnClickListener(v -> {
  34 +
  35 + });
29 } 36 }
30 37
31 public void toResult(){ 38 public void toResult(){
moudle_pedometer/src/main/res/layout/fragment_registration_info.xml
@@ -22,95 +22,69 @@ @@ -22,95 +22,69 @@
22 android:layout_below="@id/topbar" 22 android:layout_below="@id/topbar"
23 android:orientation="vertical"> 23 android:orientation="vertical">
24 24
25 - <TextView  
26 - android:layout_width="wrap_content"  
27 - android:layout_height="wrap_content"  
28 - android:padding="10dp"  
29 - android:text="@string/name" />  
30 -  
31 - <EditText  
32 - android:id="@+id/name"  
33 - android:layout_width="match_parent"  
34 - android:layout_height="wrap_content" />  
35 -  
36 - <TextView  
37 - android:layout_width="wrap_content"  
38 - android:layout_height="wrap_content"  
39 - android:padding="10dp"  
40 - android:text="@string/sex" />  
41 -  
42 - <EditText  
43 - android:id="@+id/sex"  
44 - android:layout_width="match_parent"  
45 - android:layout_height="wrap_content" />  
46 -  
47 - <TextView  
48 - android:layout_width="wrap_content"  
49 - android:layout_height="wrap_content"  
50 - android:padding="10dp"  
51 - android:text="@string/birth" />  
52 -  
53 <LinearLayout 25 <LinearLayout
54 android:layout_width="match_parent" 26 android:layout_width="match_parent"
55 - android:layout_height="wrap_content"  
56 - android:orientation="horizontal"> 27 + android:layout_height="wrap_content">
57 28
58 - <EditText  
59 - android:id="@+id/year" 29 + <ImageView
60 android:layout_width="50dp" 30 android:layout_width="50dp"
61 - android:layout_height="wrap_content" /> 31 + android:layout_height="50dp"
  32 + android:src="@drawable/ic_icon"/>
62 33
63 <TextView 34 <TextView
64 android:layout_width="wrap_content" 35 android:layout_width="wrap_content"
65 android:layout_height="wrap_content" 36 android:layout_height="wrap_content"
66 - android:padding="10dp"  
67 - android:text="@string/year" /> 37 + android:text="用户昵称"
  38 + android:layout_marginLeft="20dp"
  39 + android:layout_gravity="center_vertical"
  40 + />
  41 + </LinearLayout>
68 42
69 - <EditText  
70 - android:id="@+id/month"  
71 - android:layout_width="50dp"  
72 - android:layout_height="wrap_content" /> 43 + <LinearLayout
  44 + android:layout_width="wrap_content"
  45 + android:layout_height="wrap_content"
  46 + android:layout_marginTop="10dp"
  47 + android:padding="10dp">
73 48
74 <TextView 49 <TextView
75 android:layout_width="wrap_content" 50 android:layout_width="wrap_content"
76 android:layout_height="wrap_content" 51 android:layout_height="wrap_content"
77 - android:padding="10dp"  
78 - android:text="@string/month" />  
79 -  
80 - <EditText  
81 - android:id="@+id/day"  
82 - android:layout_width="50dp"  
83 - android:layout_height="wrap_content" /> 52 + android:text="联系电话"
  53 + />
84 54
85 <TextView 55 <TextView
86 android:layout_width="wrap_content" 56 android:layout_width="wrap_content"
87 android:layout_height="wrap_content" 57 android:layout_height="wrap_content"
88 - android:padding="10dp"  
89 - android:text="@string/day" />  
90 - 58 + android:layout_marginLeft="20dp"
  59 + android:text="13611232987"
  60 + />
91 </LinearLayout> 61 </LinearLayout>
92 62
93 - <TextView  
94 - android:layout_width="wrap_content" 63 + <LinearLayout
  64 + android:id="@+id/choose_sex"
  65 + android:layout_width="match_parent"
95 android:layout_height="wrap_content" 66 android:layout_height="wrap_content"
96 - android:padding="10dp"  
97 - android:text="@string/numPhone" /> 67 + android:padding="10dp">
98 68
99 - <EditText  
100 - android:id="@+id/numPhone"  
101 - android:layout_width="match_parent"  
102 - android:layout_height="wrap_content" /> 69 + <TextView
  70 + android:layout_width="wrap_content"
  71 + android:layout_height="wrap_content"
  72 + android:text="性别(非必填) 未选择"
  73 + />
  74 + </LinearLayout>
103 75
104 - <TextView  
105 - android:layout_width="wrap_content" 76 + <LinearLayout
  77 + android:id="@+id/choose_birthday"
  78 + android:layout_width="match_parent"
106 android:layout_height="wrap_content" 79 android:layout_height="wrap_content"
107 - android:padding="10dp"  
108 - android:text="@string/importantNum" /> 80 + android:padding="10dp">
109 81
110 - <EditText  
111 - android:id="@+id/importantNum"  
112 - android:layout_width="match_parent"  
113 - android:layout_height="wrap_content" /> 82 + <TextView
  83 + android:layout_width="wrap_content"
  84 + android:layout_height="wrap_content"
  85 + android:text="生日(非必填) 未选择"
  86 + />
  87 + </LinearLayout>
114 88
115 <Button 89 <Button
116 android:id="@+id/commit_info" 90 android:id="@+id/commit_info"