Ranex

Untitled

Oct 7th, 2021
1,467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.46 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
  3.    android:layout_height="match_parent"
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:tools="http://schemas.android.com/tools">
  7.    
  8.         <ScrollView
  9.            android:id="@+id/scrollview"
  10.            android:layout_width="match_parent"
  11.            android:layout_height="0dp"
  12.            android:layout_weight="1">
  13.  
  14.             <LinearLayout
  15.                android:layout_width="match_parent"
  16.                android:layout_height="wrap_content"
  17.                android:gravity="center_horizontal"
  18.                android:orientation="vertical">
  19.  
  20.                 <ImageView
  21.                    android:id="@+id/photo"
  22.                    android:layout_width="177dp"
  23.                    android:layout_height="115dp"
  24.                    android:layout_marginTop="12dp"
  25.                    android:clickable="false"
  26.                    android:scaleType="fitCenter"
  27.                    android:src="@drawable/photo"
  28.                    tools:ignore="ContentDescription" />
  29.  
  30.                 <TextView
  31.                    android:id="@+id/title"
  32.                    android:layout_width="wrap_content"
  33.                    android:layout_height="wrap_content"
  34.                    android:layout_marginStart="20dp"
  35.                    android:layout_marginLeft="20dp"
  36.                    android:layout_marginTop="25dp"
  37.                    android:layout_marginEnd="20dp"
  38.                    android:layout_marginRight="20dp"
  39.                    android:gravity="center"
  40.                    android:textSize="24sp"/>
  41.  
  42.                 <TextView
  43.                    android:id="@+id/description"
  44.                    android:layout_width="match_parent"
  45.                    android:layout_height="wrap_content"
  46.                    android:layout_marginStart="20dp"
  47.                    android:layout_marginLeft="20dp"
  48.                    android:layout_marginTop="10dp"
  49.                    android:layout_marginEnd="20dp"
  50.                    android:layout_marginRight="20dp"
  51.                    android:gravity="center"
  52.                    android:textSize="16sp"/>
  53.  
  54.                     <LinearLayout
  55.                        android:layout_width="wrap_content"
  56.                        android:layout_height="wrap_content"
  57.                        android:layout_marginTop="25dp"
  58.                        android:gravity="center"
  59.                        android:orientation="horizontal">
  60.  
  61.                         <EditText
  62.                            android:id="@+id/number"
  63.                            android:layout_width="wrap_content"
  64.                            android:layout_height="wrap_content"
  65.                            android:digits="1234567890-."
  66.                            android:textAlignment="viewStart"
  67.                            android:imeOptions="actionNext"
  68.                            android:inputType="number"
  69.                            android:maxLength="14"
  70.                            android:minWidth="300dp"/>
  71.  
  72.                         <ImageView
  73.                            android:id="@+id/question"
  74.                            android:layout_width="18dp"
  75.                            android:layout_height="18dp"
  76.                            android:layout_marginStart="-18dp"
  77.                            android:layout_marginLeft="-18dp"
  78.                            android:src="@drawable/question"/>
  79.                     </LinearLayout>
  80.  
  81.                 <EditText
  82.                    android:id="@+id/birthday"
  83.                    android:layout_width="wrap_content"
  84.                    android:layout_height="wrap_content"
  85.                    android:digits="1234567890/"
  86.                    android:hint="@string/text"
  87.                    android:textAlignment="viewStart"
  88.                    android:inputType="number"
  89.                    android:minWidth="300dp" />
  90.             </LinearLayout>
  91.     </ScrollView>
  92.  
  93.     <Button
  94.        android:id="@+id/next"
  95.        android:layout_width="wrap_content"
  96.        android:layout_height="wrap_content"
  97.        android:layout_marginTop="10dp"
  98.        android:layout_marginBottom="10dp"
  99.        android:minWidth="300dp"
  100.        android:text="@string/common_next"
  101.        android:layout_gravity="center"/>
  102.  
  103. </LinearLayout>
  104. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment