Advertisement
Guest User

fragment_login.xml

a guest
Oct 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:id="@+id/frameContainer"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    tools:context=".MainActivity">
  9.  
  10.     <android.support.v4.widget.NestedScrollView
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent"
  13.        android:fillViewport="true">
  14.  
  15.  
  16.         <LinearLayout
  17.            android:id="@+id/outerLine1"
  18.            android:layout_width="match_parent"
  19.            android:layout_height="match_parent"
  20.            android:orientation="vertical"
  21.            android:gravity="center">
  22.  
  23.             <LinearLayout
  24.                android:id="@+id/innerLine1"
  25.                android:layout_width="match_parent"
  26.                android:layout_height="wrap_content"
  27.                android:layout_marginTop="35dp"
  28.                android:layout_marginBottom="35dp"
  29.                android:gravity="center"
  30.                android:orientation="vertical">
  31.  
  32.                 <ImageView
  33.                    android:id="@+id/imageLogo"
  34.                    android:layout_width="110dp"
  35.                    android:layout_height="110dp"
  36.                    android:layout_marginBottom="10dp"
  37.                    android:contentDescription="@string/logo"
  38.                    android:scaleType="fitCenter"
  39.                    app:srcCompat="@drawable/ic_tic_tac_toe" />
  40.  
  41.                 <TextView
  42.                    android:id="@+id/textView3"
  43.                    android:layout_width="wrap_content"
  44.                    android:layout_height="wrap_content"
  45.                    android:text="@string/masterTitle"
  46.                    android:textColor="@android:color/darker_gray"
  47.                    android:textSize="26sp" />
  48.  
  49.             </LinearLayout>
  50.  
  51.             <LinearLayout
  52.                android:id="@+id/innerLine2"
  53.                android:layout_width="match_parent"
  54.                android:layout_height="wrap_content"
  55.                android:layout_marginTop="30dp"
  56.                android:gravity="center"
  57.                android:orientation="horizontal">
  58.  
  59.                 <Button
  60.                    android:id="@+id/button"
  61.                    style="@android:style/Widget.Holo.Button.Small"
  62.                    android:layout_width="320dp"
  63.                    android:layout_height="50dp"
  64.                    android:layout_marginTop="4dp"
  65.                    android:layout_marginBottom="10dp"
  66.                    android:background="@drawable/ripple_effect"
  67.                    android:drawableStart="@drawable/ic_bluetooth_white"
  68.                    android:drawableLeft="@drawable/ic_bluetooth_white"
  69.                    android:fontFamily="sans-serif-smallcaps"
  70.                    android:paddingHorizontal="17dp"
  71.                    android:text="@string/playMp"
  72.                    android:textAllCaps="false"
  73.                    android:textColor="@android:color/white"
  74.                    android:textSize="18sp"/>
  75.             </LinearLayout>
  76.  
  77.             <LinearLayout
  78.                android:id="@+id/innerLine3"
  79.                android:layout_width="match_parent"
  80.                android:layout_height="wrap_content"
  81.                android:gravity="center"
  82.                android:orientation="horizontal">
  83.  
  84.                 <Button
  85.                    android:id="@+id/button2"
  86.                    style="@android:style/Widget.Holo.Button.Small"
  87.                    android:layout_width="320dp"
  88.                    android:layout_height="50dp"
  89.                    android:layout_marginTop="4dp"
  90.                    android:layout_marginBottom="10dp"
  91.                    android:drawableLeft="@drawable/ic_phone_android_white_24dp"
  92.                    android:drawableStart="@drawable/ic_phone_android_white_24dp"
  93.                    android:onClick="gotoTicTac"
  94.                    android:textAllCaps="false"
  95.                    android:background="@drawable/ripple_effect"
  96.                    android:fontFamily="sans-serif-smallcaps"
  97.                    android:padding="17dp"
  98.                    android:text="@string/playLocal"
  99.                    android:textColor="@android:color/white"
  100.                    android:textSize="18sp" />
  101.             </LinearLayout>
  102.  
  103.             <LinearLayout
  104.                android:id="@+id/innerLine4"
  105.                android:layout_width="match_parent"
  106.                android:layout_height="wrap_content"
  107.                android:gravity="center"
  108.                android:orientation="horizontal">
  109.  
  110.                 <Button
  111.                    android:id="@+id/button3"
  112.                    style="@android:style/Widget.Holo.Button.Small"
  113.                    android:layout_width="320dp"
  114.                    android:layout_height="50dp"
  115.                    android:layout_marginTop="4dp"
  116.                    android:layout_marginBottom="10dp"
  117.                    android:drawableLeft="@drawable/ic_android_white"
  118.                    android:drawableStart="@drawable/ic_android_white"
  119.                    android:onClick="gotoAiTicTac"
  120.                    android:textAllCaps="false"
  121.                    android:background="@drawable/ripple_effect"
  122.                    android:fontFamily="sans-serif-smallcaps"
  123.                    android:padding="17dp"
  124.                    android:text="@string/playvsAI"
  125.                    android:textColor="@android:color/white"
  126.                    android:textSize="18sp" />
  127.             </LinearLayout>
  128.  
  129.             <LinearLayout
  130.                android:id="@+id/innerLine5"
  131.                android:layout_width="match_parent"
  132.                android:layout_height="wrap_content"
  133.                android:gravity="center_horizontal"
  134.                android:orientation="horizontal">
  135.  
  136.                 <Button
  137.                    android:id="@+id/button41"
  138.                    style="@android:style/Widget.Holo.Button.Small"
  139.                    android:layout_width="150dp"
  140.                    android:layout_height="50dp"
  141.                    android:layout_marginStart="1dp"
  142.                    android:layout_marginLeft="1dp"
  143.                    android:layout_marginTop="4dp"
  144.                    android:layout_marginEnd="20dp"
  145.                    android:layout_marginRight="20dp"
  146.                    android:layout_marginBottom="10dp"
  147.                    android:background="@drawable/ripple_effect"
  148.                    android:fontFamily="sans-serif-smallcaps"
  149.                    android:paddingHorizontal="17dp"
  150.                    android:text="@string/placeholderShort"
  151.                    android:textAllCaps="false"
  152.                    android:textColor="@android:color/white"
  153.                    android:textSize="18sp" />
  154.  
  155.                 <Button
  156.                    android:id="@+id/button42"
  157.                    style="@android:style/Widget.Holo.Button.Small"
  158.                    android:layout_width="150dp"
  159.                    android:layout_height="50dp"
  160.                    android:layout_marginTop="4dp"
  161.                    android:layout_marginBottom="10dp"
  162.                    android:background="@drawable/ripple_effect"
  163.                    android:fontFamily="sans-serif-smallcaps"
  164.                    android:paddingHorizontal="17dp"
  165.                    android:text="@string/gameHistory"
  166.                    android:textAllCaps="false"
  167.                    android:textColor="@android:color/white"
  168.                    android:textSize="18sp"/>
  169.             </LinearLayout>
  170.  
  171.             <LinearLayout
  172.                android:id="@+id/innerLine6"
  173.                android:layout_width="match_parent"
  174.                android:layout_height="wrap_content"
  175.                android:gravity="center"
  176.                android:orientation="horizontal"
  177.                android:padding="7dp">
  178.  
  179.                 <Button
  180.                    android:id="@+id/button5"
  181.                    style="@style/Widget.AppCompat.Button.Borderless"
  182.                    android:layout_width="wrap_content"
  183.                    android:layout_height="wrap_content"
  184.                    android:text="Show more"
  185.                    android:textAllCaps="false"
  186.                    android:textColor="@android:color/darker_gray" />
  187.             </LinearLayout>
  188.  
  189.         </LinearLayout>
  190.  
  191.     </android.support.v4.widget.NestedScrollView>
  192.  
  193. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement