<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" tools:context=".LogInDialog" > <EditText android:id="@+id/username_entered" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="4dp" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_marginTop="16dp" android:ems="10" android:hint="@string/username_ask" android:inputType="textUri" > <requestFocus /> </EditText> <EditText android:id="@+id/password_entered" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="@string/password_ask" android:inputType="textPassword" /> </LinearLayout>