SHARE
TWEET

Constraint Layout two column

rikisaraan May 29th, 2020 983 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_height="match_parent"
  7.    android:layout_width="match_parent"
  8.    android:padding="16dp"
  9.    android:orientation="vertical">
  10.  
  11.     <ProgressBar
  12.        android:id="@+id/progressBar"
  13.        style="?android:attr/progressBarStyle"
  14.        android:layout_width="wrap_content"
  15.        android:layout_height="wrap_content"
  16.        android:layout_gravity="center"
  17.        android:visibility="gone"
  18.        app:layout_constraintBottom_toBottomOf="@+id/swipeRefreshLayout"
  19.        app:layout_constraintEnd_toEndOf="@+id/swipeRefreshLayout"
  20.        app:layout_constraintStart_toStartOf="@+id/swipeRefreshLayout"
  21.        app:layout_constraintTop_toTopOf="parent" />
  22.  
  23.     <com.google.android.material.textfield.TextInputLayout
  24.        android:id="@+id/etStartDate"
  25.        android:layout_width="0dp"
  26.        android:layout_height="wrap_content"
  27.        android:textColorHint="@color/orangeAccent"
  28.        app:hintTextAppearance="@style/EditTextTheme"
  29.        app:layout_constraintLeft_toLeftOf="parent"
  30.        app:layout_constraintRight_toLeftOf="@+id/etEndDate"
  31.        app:layout_constraintHorizontal_weight="5"
  32.        >
  33.  
  34.         <EditText
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content"
  37.            android:hint="@string/username"
  38.            android:inputType="text"
  39.            android:textColor="@color/black" />
  40.  
  41.     </com.google.android.material.textfield.TextInputLayout>
  42.  
  43.     <com.google.android.material.textfield.TextInputLayout
  44.        android:id="@+id/etEndDate"
  45.        android:layout_width="0dp"
  46.        android:layout_height="wrap_content"
  47.        android:textColorHint="@color/orangeAccent"
  48.        app:hintTextAppearance="@style/EditTextTheme"
  49.        app:layout_constraintLeft_toRightOf="@+id/etStartDate"
  50.        app:layout_constraintRight_toRightOf="parent"
  51.        app:layout_constraintHorizontal_weight="5">
  52.  
  53.         <EditText
  54.            android:layout_width="match_parent"
  55.            android:layout_height="wrap_content"
  56.            android:hint="@string/username"
  57.            android:inputType="text"
  58.            android:textColor="@color/black" />
  59.  
  60.     </com.google.android.material.textfield.TextInputLayout>
  61.  
  62.  
  63. </androidx.constraintlayout.widget.ConstraintLayout>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top