Facebook
From Bistre Duck, 3 Years ago, written in Java.
Embed
Download Paste or View Raw
Hits: 63
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent">
  6.  
  7.     <RelativeLayout
  8.         android:layout_width="match_parent"
  9.         android:layout_height="match_parent"
  10.         tools:layout_editor_absoluteX="0dp"
  11.         tools:layout_editor_absoluteY="0dp">
  12.  
  13.         <LinearLayout
  14.             android:layout_width="match_parent"
  15.             android:layout_height="wrap_content"
  16.             android:layout_margin="10dp"
  17.             android:gravity="center"
  18.             android:orientation="vertical">
  19.  
  20.             <RelativeLayout
  21.                 android:layout_width="match_parent"
  22.                 android:layout_height="?actionBarSize">
  23.  
  24.                 <ImageView
  25.                     android:id="@+id/back_dash"
  26.                     android:layout_width="wrap_content"
  27.                     android:layout_height="wrap_content"
  28.                     android:onClick="backClicked"
  29.                     android:padding="15dp"
  30.                     android:src="@drawable/general_back_icon" />
  31.  
  32.  
  33.             </RelativeLayout>
  34.  
  35.  
  36.             <TextView
  37.                 android:id="@+id/selectedcategory"
  38.                 android:layout_width="wrap_content"
  39.                 android:layout_height="wrap_content"
  40.                 android:layout_gravity="center"
  41.                 android:autoSizeMaxTextSize="24sp"
  42.                 android:autoSizeMinTextSize="12sp"
  43.                 android:autoSizeStepGranularity="2sp"
  44.                 android:autoSizeTextType="uniform"
  45.                 android:fontFamily="@font/raleway_bold"
  46.                 android:text="@string/category_coding" />
  47.  
  48.             <RelativeLayout
  49.                 android:layout_width="match_parent"
  50.                 android:layout_height="match_parent"
  51.                 android:layout_gravity="center_vertical"
  52.                 android:gravity="center_horizontal">
  53.  
  54.  
  55.                 <androidx.recyclerview.widget.RecyclerView
  56.                     android:id="@+id/new_recycler"
  57.                     android:layout_width="match_parent"
  58.                     android:layout_height="match_parent"
  59.                     android:layout_marginLeft="0dp" />
  60.             </RelativeLayout>
  61.  
  62.  
  63.         </LinearLayout>
  64.     </RelativeLayout>
  65. </androidx.constraintlayout.widget.ConstraintLayout>