File tree 4 files changed +23
-19
lines changed
4 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 26
26
27
27
<EditText
28
28
android : id =" @+id/et_comment"
29
- style =" @style/EditText "
29
+ style =" @style/FormalMultiLineEditText "
30
30
android : layout_width =" match_parent"
31
31
android : layout_height =" match_parent"
32
32
android : layout_alignParentLeft =" true"
33
33
android : layout_below =" @id/v_header_separator"
34
34
android : layout_margin =" 10dp"
35
- android : gravity =" top"
36
35
android : hint =" @string/comment_hint"
37
- android : inputType =" textMultiLine|textAutoCorrect"
38
36
android : scrollbars =" horizontal|vertical" >
39
37
40
38
<requestFocus />
Original file line number Diff line number Diff line change 59
59
60
60
<EditText
61
61
android : id =" @+id/et_gist_description"
62
- style =" @style/EditText "
62
+ style =" @style/FormalSingleLineEditText "
63
63
android : layout_width =" match_parent"
64
- android : layout_height =" wrap_content"
65
- android : hint =" @string/gist_description_hint"
66
- android : inputType =" text|textAutoCorrect"
67
- android : singleLine =" true" />
64
+ android : hint =" @string/gist_description_hint" />
68
65
69
66
<TextView
70
67
style =" @style/HeaderTitleText"
Original file line number Diff line number Diff line change 41
41
42
42
<EditText
43
43
android : id =" @+id/et_issue_title"
44
- style =" @style/EditText"
45
- android : layout_width =" match_parent"
46
- android : layout_height =" wrap_content"
47
- android : inputType =" text|textAutoCorrect"
48
- android : singleLine =" true" />
44
+ style =" @style/FormalSingleLineEditText"
45
+ android : layout_width =" match_parent" />
49
46
50
47
<TextView
51
48
style =" @style/HeaderTitleText"
125
122
126
123
<EditText
127
124
android : id =" @+id/et_issue_body"
128
- style =" @style/EditText "
125
+ style =" @style/FormalMultiLineEditText "
129
126
android : layout_width =" match_parent"
130
- android : layout_height =" wrap_content"
131
- android : gravity =" top"
132
- android : inputType =" textMultiLine|textAutoCorrect"
133
127
android : minLines =" 5"
134
128
android : scrollbars =" horizontal|vertical" />
135
129
</LinearLayout >
Original file line number Diff line number Diff line change 14
14
See the License for the specific language governing permissions and
15
15
limitations under the License.
16
16
-->
17
- <resources >
17
+ <resources xmlns : android =" http://schemas.android.com/apk/res/android" >
18
+
19
+ <style name =" Global" >
20
+ <item name =" android:layout_height" >wrap_content</item >
21
+ <item name =" android:layout_width" >wrap_content</item >
22
+ </style >
18
23
19
24
<style name =" AvatarActionBar" >
20
25
<item name =" android:layout_width" >28dp</item >
47
52
<item name =" android:divider" >@null</item >
48
53
</style >
49
54
50
- <style name =" EditText" >
55
+ <style name =" EditText" parent = " Global " >
51
56
<item name =" android:textColor" >@color/text</item >
52
57
<item name =" android:textCursorDrawable" >@drawable/edit_text_cursor</item >
53
58
<item name =" android:textSize" >14sp</item >
54
59
<item name =" android:padding" >10dp</item >
55
60
<item name =" android:background" >@drawable/edit_text_background</item >
56
61
</style >
57
62
63
+ <style name =" FormalMultiLineEditText" parent =" EditText" >
64
+ <item name =" android:gravity" >top</item >
65
+ <item name =" android:inputType" >textMultiLine|textAutoCorrect|textCapSentences</item >
66
+ </style >
67
+
68
+ <style name =" FormalSingleLineEditText" parent =" EditText" >
69
+ <item name =" android:singleLine" >true</item >
70
+ <item name =" android:inputType" >text|textAutoCorrect|textCapSentences</item >
71
+ </style >
72
+
58
73
<style name =" LoginEditText" parent =" EditText" >
59
74
<item name =" android:layout_width" >match_parent</item >
60
75
<item name =" android:layout_height" >wrap_content</item >
You can’t perform that action at this time.
0 commit comments