Advertisement
Yonka2019

settings_screen.xml

Nov 10th, 2022
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.72 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:paddingTop="@dimen/dp_xxlarge">
  7.  
  8.     <!--Main Title-->
  9.     <TextView
  10.        android:layout_width="wrap_content"
  11.        android:layout_height="wrap_content"
  12.        android:text="@string/settings_main_title"
  13.        android:layout_gravity="center"
  14.        android:padding="@dimen/dp_large"
  15.        android:textSize="@dimen/sp_xxlarge"/>
  16.  
  17.     <TableLayout
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:stretchColumns="1">
  21.        
  22.         <!--[1] [+]-->
  23.         <TableRow
  24.            android:layout_width="match_parent"
  25.            android:layout_height="match_parent">
  26.            
  27.             <CheckBox
  28.                android:layout_width="wrap_content"
  29.                android:layout_height="wrap_content"
  30.                android:text="@string/settings_single_digit"
  31.                android:layout_column="1"
  32.                android:padding="@dimen/dp_small"
  33.                android:textSize="@dimen/sp_large"
  34.                android:id="@+id/setting_single_digit"/>
  35.  
  36.             <CheckBox
  37.                android:layout_width="wrap_content"
  38.                android:layout_height="wrap_content"
  39.                android:text="@string/settings_plus"
  40.                android:layout_marginRight="@dimen/dp_xxlarge"
  41.                android:textSize="@dimen/sp_large"
  42.                android:id="@+id/setting_plus"/>
  43.         </TableRow>
  44.  
  45.         <!--[2] [-]-->
  46.         <TableRow
  47.            android:layout_width="match_parent"
  48.            android:layout_height="match_parent">
  49.  
  50.             <CheckBox
  51.                android:layout_width="wrap_content"
  52.                android:layout_height="wrap_content"
  53.                android:text="@string/settings_double_digit"
  54.                android:layout_column="1"
  55.                android:padding="@dimen/dp_small"
  56.                android:id="@+id/setting_double_digit"
  57.                android:textSize="@dimen/sp_large"/>
  58.  
  59.             <CheckBox
  60.                android:layout_width="wrap_content"
  61.                android:layout_height="wrap_content"
  62.                android:text="@string/settings_minus"
  63.                android:id="@+id/setting_minus"
  64.                android:layout_marginRight="@dimen/dp_xxlarge"
  65.                android:textSize="@dimen/sp_large"/>
  66.         </TableRow>
  67.  
  68.         <!--[3] [✕]-->
  69.         <TableRow
  70.            android:layout_width="match_parent"
  71.            android:layout_height="match_parent">
  72.          
  73.             <CheckBox
  74.                android:layout_width="wrap_content"
  75.                android:layout_height="wrap_content"
  76.                android:text="@string/settings_triple_digit"
  77.                android:layout_column="1"
  78.                android:padding="@dimen/dp_small"
  79.                android:id="@+id/setting_triple_digit"
  80.                android:textSize="@dimen/sp_large"/>
  81.  
  82.             <CheckBox
  83.                android:layout_width="wrap_content"
  84.                android:layout_height="wrap_content"
  85.                android:text="@string/settings_multiply"
  86.                android:id="@+id/setting_multiply"
  87.                android:layout_marginRight="@dimen/dp_xxlarge"
  88.                android:textSize="@dimen/sp_large"/>
  89.         </TableRow>
  90.  
  91.         <!--[4] [÷]-->
  92.         <TableRow
  93.            android:layout_width="match_parent"
  94.            android:layout_height="match_parent">
  95.            
  96.             <CheckBox
  97.                android:layout_width="wrap_content"
  98.                android:layout_height="wrap_content"
  99.                android:text="@string/settings_fourth_digit"
  100.                android:layout_column="1"
  101.                android:id="@+id/setting_fourth_digit"
  102.                android:padding="@dimen/dp_small"
  103.                android:textSize="@dimen/sp_large"/>
  104.  
  105.             <CheckBox
  106.                android:layout_width="wrap_content"
  107.                android:layout_height="wrap_content"
  108.                android:text="@string/settings_divide"
  109.                android:id="@+id/setting_divide"
  110.                android:layout_marginRight="@dimen/dp_xxlarge"
  111.                android:textSize="@dimen/sp_large"/>
  112.         </TableRow>
  113.  
  114.         <Button
  115.            android:layout_width="match_parent"
  116.            android:layout_height="wrap_content"
  117.            android:text="@string/settings_save_exit"
  118.            android:id="@+id/SaveExitButton"
  119.            android:textSize="@dimen/sp_medium"
  120.            android:layout_marginTop="@dimen/dp_medium"/>
  121.     </TableLayout>
  122. </LinearLayout>
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement