dialog_code_input.xml
3.54 KB
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/config_background_color"
android:clipToPadding="true"
android:fitsSystemWindows="true">
<include layout="@layout/back_actionbar" />
<ScrollView
android:id="@+id/detail_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="48dp"
android:fillViewport="true">
<LinearLayout
android:id="@+id/code_input_pannel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/divider_head_line" />
<LinearLayout
android:id="@+id/name_layout"
android:layout_width="match_parent"
android:layout_height="46dp"
android:background="#ffffff"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="15dp"
android:paddingRight="15dp">
<EditText
android:id="@+id/code_edit"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:gravity="center_vertical"
android:hint="请输入有效的兑换码"
android:imeOptions="actionSend"
android:inputType="textLongMessage"
android:singleLine="true"
android:textColor="@color/text_input_color"
android:textColorHint="@color/text_hint_color"
android:textCursorDrawable="@null"
android:textSize="@dimen/personal_text_size"
tools:ignore="UnusedAttribute" />
<ImageButton
android:id="@+id/delete_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:background="@null"
android:contentDescription="@null"
android:src="@drawable/btn_cancel" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@color/gray_line_color" />
<Button
android:id="@+id/code_submit"
android:layout_width="match_parent"
android:layout_height="36dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:background="@drawable/user_btn_login"
android:text="确定"
android:textColor="@color/text_white_color"
android:textSize="17sp" />
</LinearLayout>
</ScrollView>
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_centerInParent="true"
android:visibility="gone" />
</RelativeLayout>