Advertisement
ProgrameruPokusaju

checkpass

Aug 10th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.48 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.              xmlns:app="http://schemas.android.com/apk/res-auto"
  3.              xmlns:tools="http://schemas.android.com/tools"
  4.              android:layout_width="match_parent"
  5.              android:layout_height="match_parent"
  6.              android:layout_margin="8dp"
  7.              android:orientation="vertical">
  8.     <android.support.v7.widget.Toolbar
  9.        android:id="@+id/toolbar"
  10.        android:layout_width="match_parent"
  11.        android:layout_height="?attr/actionBarSize"
  12.        android:background="?attr/colorPrimary"
  13.        android:backgroundTint="@color/primary"
  14.        android:elevation="5dp"
  15.        android:titleTextColor="@color/white"
  16.        app:layout_scrollFlags="scroll|enterAlways"
  17.        app:popupTheme="@style/AppTheme">
  18.  
  19.         <TextView
  20.            android:id="@+id/toolbar_title"
  21.            android:layout_width="wrap_content"
  22.            android:layout_height="wrap_content"
  23.            android:layout_gravity="center"
  24.            android:text="@string/titleCardControlNumber"
  25.            android:textColor="@color/white"
  26.            android:textSize="15dp"
  27.            android:textStyle="bold" />
  28.     </android.support.v7.widget.Toolbar>
  29.     <android.support.v7.widget.CardView
  30.        android:id="@+id/cardReadNfc"
  31.        android:layout_width="match_parent"
  32.        android:layout_height="wrap_content"
  33.        android:layout_margin="8dp"
  34.        android:clickable="true"
  35.        android:contextClickable="true"
  36.        android:foreground="?android:attr/selectableItemBackground"
  37.        android:padding="8dp">
  38.  
  39.         <LinearLayout
  40.            android:layout_width="match_parent"
  41.            android:layout_height="match_parent"
  42.            android:layout_margin="24dp"
  43.            android:orientation="vertical">
  44.  
  45.             <!--<WebView-->
  46.                 <!--android:id="@+id/webViewNFC"-->
  47.                 <!--android:layout_width="wrap_content"-->
  48.                 <!--android:layout_height="wrap_content">-->
  49.  
  50.             <!--</WebView>-->
  51.  
  52.             <ImageView
  53.                android:id="@+id/imgAnimation"
  54.                android:layout_width="match_parent"
  55.                android:layout_height="wrap_content"
  56.                android:maxWidth="200dp"
  57.                android:maxHeight="200dp"
  58.                android:adjustViewBounds="true"/>
  59.  
  60.             <TextView
  61.                android:id="@+id/textView2"
  62.                android:layout_width="match_parent"
  63.                android:layout_height="wrap_content"
  64.                android:gravity="center"
  65.                android:text="@string/read_user_card_nfc"
  66.                android:textAlignment="center"
  67.                android:textColor="@color/black"
  68.                android:textSize="18sp"/>
  69.  
  70.             <TextView
  71.                android:id="@+id/textView7"
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:gravity="center"
  75.                android:text="@string/read_user_card__nfc_info"/>
  76.  
  77.         </LinearLayout>
  78.  
  79.     </android.support.v7.widget.CardView>
  80.  
  81.     <LinearLayout
  82.        android:layout_width="match_parent"
  83.        android:layout_height="match_parent"
  84.        android:layout_gravity="center_vertical"
  85.        android:orientation="horizontal"
  86.        android:weightSum="1">
  87.  
  88.         <android.support.v7.widget.CardView
  89.            android:id="@+id/cardScanQr"
  90.            android:layout_width="match_parent"
  91.            android:layout_height="match_parent"
  92.            android:layout_gravity="center_vertical"
  93.            android:layout_margin="8dp"
  94.            android:layout_weight=".5"
  95.            android:padding="8dp">
  96.  
  97.             <LinearLayout
  98.                android:layout_width="match_parent"
  99.                android:layout_height="wrap_content"
  100.                android:layout_gravity="center_vertical"
  101.                android:layout_margin="8dp"
  102.                android:orientation="vertical">
  103.  
  104.                 <ImageView
  105.                    android:id="@+id/imageView2"
  106.                    android:layout_width="match_parent"
  107.                    android:layout_height="wrap_content"
  108.                    android:layout_gravity="center_vertical"
  109.                    android:src="@mipmap/img_bar_code"/>
  110.  
  111.                 <TextView
  112.                    android:id="@+id/textView8"
  113.                    android:layout_width="match_parent"
  114.                    android:layout_height="wrap_content"
  115.                    android:layout_gravity="center_vertical"
  116.                    android:gravity="center"
  117.                    android:text="@string/read_user_card_scan_QR"
  118.                    android:textAlignment="center"
  119.                    android:textColor="@color/black"
  120.                    android:textSize="18sp"/>
  121.  
  122.                 <TextView
  123.                    android:id="@+id/textView9"
  124.                    android:layout_width="match_parent"
  125.                    android:layout_height="wrap_content"
  126.  
  127.                    android:layout_gravity="center_vertical"
  128.                    android:gravity="center"
  129.                    android:text="@string/read_user_card_scan_QR_info"
  130.                    android:textAlignment="center"/>
  131.  
  132.             </LinearLayout>
  133.         </android.support.v7.widget.CardView>
  134.  
  135.         <android.support.v7.widget.CardView
  136.            android:id="@+id/cardEnterNo"
  137.            android:layout_width="match_parent"
  138.            android:layout_height="match_parent"
  139.            android:layout_gravity="center_vertical"
  140.            android:layout_margin="8dp"
  141.            android:layout_weight=".5"
  142.            android:padding="8dp"
  143.            android:contextClickable="true"
  144.            android:foreground="?android:attr/selectableItemBackground"
  145.            android:onClick="startControlNumber">
  146.  
  147.  
  148.             <LinearLayout
  149.                android:layout_width="match_parent"
  150.                android:layout_height="wrap_content"
  151.                android:layout_gravity="center_vertical"
  152.                android:layout_margin="8dp"
  153.                android:orientation="vertical"
  154.                android:weightSum="1">
  155.  
  156.                 <ImageView
  157.                    android:id="@+id/imageView3"
  158.                    android:layout_width="match_parent"
  159.                    android:layout_height="wrap_content"
  160.                    android:layout_gravity="center_vertical"
  161.                    android:src="@mipmap/enter_card_no"/>
  162.  
  163.                 <TextView
  164.                    android:id="@+id/textView10"
  165.                    android:layout_width="match_parent"
  166.                    android:layout_height="wrap_content"
  167.                    android:layout_gravity="center_vertical"
  168.                    android:layout_weight="0.55"
  169.                    android:gravity="center"
  170.                    android:text="@string/read_user_card_serial_no"
  171.                    android:textAlignment="center"
  172.                    android:textColor="@color/black"
  173.                    android:textSize="18sp"/>
  174.  
  175.                 <TextView
  176.                    android:id="@+id/textView11"
  177.                    android:layout_width="match_parent"
  178.                    android:layout_height="wrap_content"
  179.                    android:gravity="center"
  180.                    android:text="@string/read_user_card_serial_no_info"
  181.                    android:textAlignment="center"/>
  182.             </LinearLayout>
  183.         </android.support.v7.widget.CardView>
  184.  
  185.     </LinearLayout>
  186.  
  187. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement