Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  3.    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  4.    android:paddingRight="@dimen/activity_horizontal_margin"
  5.    android:paddingTop="@dimen/activity_vertical_margin"
  6.    android:paddingBottom="@dimen/activity_vertical_margin"
  7.    tools:context="com.example.shiburagi.language.MainActivityFragment"
  8.    android:orientation="vertical">
  9.  
  10.     <LinearLayout
  11.        android:orientation="vertical"
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        android:layout_gravity="center"
  15.        android:gravity="center"
  16.        android:layout_centerVertical="true"
  17.        android:layout_centerHorizontal="true">
  18.  
  19.         <EditText
  20.            android:layout_width="wrap_content"
  21.            android:layout_height="wrap_content"
  22.            android:inputType="textPersonName"
  23.            android:ems="10"
  24.            android:id="@+id/editText"
  25.            android:hint="@string/username" />
  26.  
  27.         <EditText
  28.            android:layout_width="wrap_content"
  29.            android:layout_height="wrap_content"
  30.            android:inputType="textPassword"
  31.            android:ems="10"
  32.            android:id="@+id/editText2"
  33.            android:hint="@string/password"
  34.            android:layout_marginTop="5dp" />
  35.  
  36.         <Button
  37.            android:layout_width="match_parent"
  38.            android:layout_height="wrap_content"
  39.            android:text="@string/login"
  40.            android:id="@+id/button"
  41.            android:layout_marginTop="10dp" />
  42.  
  43.         <TextView
  44.            android:layout_width="match_parent"
  45.            android:layout_height="wrap_content"
  46.            android:textAppearance="?android:attr/textAppearanceMedium"
  47.            android:text="language"
  48.            android:id="@+id/textView"
  49.            android:layout_marginTop="10dp" />
  50.  
  51.         <Button
  52.            android:layout_width="match_parent"
  53.            android:layout_height="wrap_content"
  54.            android:text="Japanese"
  55.            android:id="@+id/button2"
  56.            android:onClick="japaneseLanguage" />
  57.  
  58.         <Button
  59.            android:layout_width="match_parent"
  60.            android:layout_height="wrap_content"
  61.            android:text="Default"
  62.            android:id="@+id/button3"
  63.            android:onClick="defaultLanguage" />
  64.     </LinearLayout>
  65. </RelativeLayout>