Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add textCapSentences flag to inputType attribute

Closes issue #112
  • Loading branch information...
commit b3c56b8350f6ff1a2e1e71b06157c2373b5b6723 1 parent b7b7c41
@kevinsawicki kevinsawicki authored
View
4 app/res/layout/comment_create.xml
@@ -26,15 +26,13 @@
<EditText
android:id="@+id/et_comment"
- style="@style/EditText"
+ style="@style/FormalMultiLineEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_below="@id/v_header_separator"
android:layout_margin="10dp"
- android:gravity="top"
android:hint="@string/comment_hint"
- android:inputType="textMultiLine|textAutoCorrect"
android:scrollbars="horizontal|vertical" >
<requestFocus />
View
7 app/res/layout/gist_create.xml
@@ -59,12 +59,9 @@
<EditText
android:id="@+id/et_gist_description"
- style="@style/EditText"
+ style="@style/FormalSingleLineEditText"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/gist_description_hint"
- android:inputType="text|textAutoCorrect"
- android:singleLine="true" />
+ android:hint="@string/gist_description_hint" />
<TextView
style="@style/HeaderTitleText"
View
12 app/res/layout/issue_edit.xml
@@ -41,11 +41,8 @@
<EditText
android:id="@+id/et_issue_title"
- style="@style/EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="text|textAutoCorrect"
- android:singleLine="true" />
+ style="@style/FormalSingleLineEditText"
+ android:layout_width="match_parent" />
<TextView
style="@style/HeaderTitleText"
@@ -125,11 +122,8 @@
<EditText
android:id="@+id/et_issue_body"
- style="@style/EditText"
+ style="@style/FormalMultiLineEditText"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="top"
- android:inputType="textMultiLine|textAutoCorrect"
android:minLines="5"
android:scrollbars="horizontal|vertical" />
</LinearLayout>
View
19 app/res/values/styles.xml
@@ -14,7 +14,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<resources>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <style name="Global">
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_width">wrap_content</item>
+ </style>
<style name="AvatarActionBar">
<item name="android:layout_width">28dp</item>
@@ -47,7 +52,7 @@
<item name="android:divider">@null</item>
</style>
- <style name="EditText">
+ <style name="EditText" parent="Global">
<item name="android:textColor">@color/text</item>
<item name="android:textCursorDrawable">@drawable/edit_text_cursor</item>
<item name="android:textSize">14sp</item>
@@ -55,6 +60,16 @@
<item name="android:background">@drawable/edit_text_background</item>
</style>
+ <style name="FormalMultiLineEditText" parent="EditText">
+ <item name="android:gravity">top</item>
+ <item name="android:inputType">textMultiLine|textAutoCorrect|textCapSentences</item>
+ </style>
+
+ <style name="FormalSingleLineEditText" parent="EditText">
+ <item name="android:singleLine">true</item>
+ <item name="android:inputType">text|textAutoCorrect|textCapSentences</item>
+ </style>
+
<style name="LoginEditText" parent="EditText">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
Please sign in to comment.
Something went wrong with that request. Please try again.