Merge pull request #394 from dbarnett/edittext

Add android:inputType="textCapSentences" to auto-capitalize first letter of most EditText widgets
This commit is contained in:
Phillip Thelen 2016-02-09 12:36:29 +01:00
commit 1f34c8c8a7
4 changed files with 11 additions and 6 deletions

View file

@ -31,7 +31,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/text"
android:textColor="@android:color/black" />
android:textColor="@android:color/black"
android:inputType="textCapSentences" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
@ -45,7 +46,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="@string/notes"
android:textColor="@android:color/black" />
android:textColor="@android:color/black"
android:inputType="textCapSentences" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
@ -186,7 +188,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/new_checklist_item" />
android:hint="@string/new_checklist_item"
android:inputType="textCapSentences" />
<Button
android:id="@+id/add_checklist_button"

View file

@ -22,6 +22,7 @@
android:layout_height="wrap_content"
android:id="@+id/item_edittext"
android:layout_weight="1"
android:layout_marginLeft="4dp" />
android:layout_marginLeft="4dp"
android:inputType="textCapSentences" />
</LinearLayout>

View file

@ -22,7 +22,8 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:textColor="@android:color/black"
android:hint="Add Tag" />
android:hint="Add Tag"
android:inputType="text" />
</android.support.design.widget.TextInputLayout>
<Button

View file

@ -32,7 +32,7 @@
android:layout_margin="5dp"
android:hint="Write Message"
android:textColor="@android:color/black"
/>
android:inputType="textCapSentences" />
</android.support.design.widget.TextInputLayout>