1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4+ xmlns : tools =" http://schemas.android.com/tools"
5+ android : layout_width =" match_parent"
6+ android : layout_height =" match_parent"
7+ android : orientation =" vertical"
8+ tools : context =" com.lwjfork.example.MainActivity" >
9+
10+ <LinearLayout
11+ android : layout_width =" match_parent"
12+ android : layout_height =" wrap_content"
13+ android : orientation =" vertical" >
14+
15+
16+ <com .lwjfork.code.CodeEditText
17+ android : id =" @+id/et_test"
18+ android : layout_width =" match_parent"
19+ android : layout_height =" 50dp"
20+ android : layout_margin =" 10dp"
21+ android : layout_marginTop =" 20dp"
22+ android : focusable =" true"
23+ android : focusableInTouchMode =" true"
24+ android : inputType =" number"
25+ android : maxLength =" 6"
26+ android : paddingLeft =" 10dp"
27+ android : paddingRight =" 10dp"
28+ app : blockErrorColor =" @android:color/holo_red_light"
29+ app : blockFocusColor =" @android:color/holo_blue_bright"
30+ app : blockLineWidth =" 1dp"
31+ app : blockNormalColor =" @android:color/black"
32+ app : blockShape =" underline"
33+ app : blockSpace =" 15dp"
34+ app : codeInputType =" text"
35+ app : codeTextColor =" @android:color/black"
36+ app : codeTextSize =" 30sp"
37+ app : cursorWidth =" 4dp"
38+ app : maxCodeLength =" 6"
39+ app : showCursor =" true"
40+ tools : text =" 111" />
41+
42+
43+ <LinearLayout
44+ android : layout_width =" match_parent"
45+ android : layout_height =" wrap_content"
46+ android : layout_marginTop =" 20dp"
47+ android : orientation =" vertical" >
48+
49+ <Button
50+ android : id =" @+id/btn_chang_block"
51+ android : layout_width =" match_parent"
52+ android : layout_height =" 50dp"
53+ android : layout_marginTop =" 20dp"
54+ android : text =" 修改背景" />
55+
56+ <Button
57+ android : id =" @+id/btn_chang_text"
58+ android : layout_width =" match_parent"
59+ android : layout_height =" 50dp"
60+ android : layout_marginTop =" 20dp"
61+ android : text =" 修改文本展示" />
62+ </LinearLayout >
63+
64+
65+ </LinearLayout >
66+
67+
68+ </ScrollView >
0 commit comments