Я пытаюсь создать представление с EditText и связанной меткой. Я помещаю их в GridLayout. EditText находится в последнем столбце, и текст, кажется, выходит за пределы экрана.
<LinearLayout 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"
tools:context="mobi.designmyapp.osmtemplate.note.NoteActivity"
android:orientation="vertical">
<GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnCount="2"
android:rowCount="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:labelFor="@+id/comment_edit_text"
android:text="@string/comment_label"
android:padding="8dp"
android:textColor="@color/background_material_dark"
android:maxLines="5"
/>
<EditText
android:id="@+id/comment_edit_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/comment_text_hint"/>
</GridLayout>
match_parent
? - person Jack   schedule 15.06.2015RelativeLayout
- person Jack   schedule 15.06.2015