Advertisement
Roctik

Untitled

Mar 12th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="500dp"
  6.    xmlns:app="http://schemas.android.com/apk/res-auto"
  7.    android:orientation="vertical">
  8.  
  9.     <LinearLayout
  10.        android:orientation="vertical"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content">
  13.         <android.support.v7.widget.Toolbar
  14.            android:id="@+id/toolbar"
  15.            android:layout_width="match_parent"
  16.            android:layout_height="100dp"
  17.            app:titleTextColor="@android:color/black"
  18.            android:theme="@style/AppTheme.AppBarOverlay"
  19.            app:popupTheme="@style/AppTheme.AppBarOverlay">
  20.  
  21.             <LinearLayout
  22.                android:orientation="horizontal"
  23.                android:layout_width="match_parent"
  24.                android:layout_height="match_parent"
  25.                android:layout_marginTop="10dp"
  26.                android:weightSum="20">
  27.                 <ImageView
  28.                    android:id="@+id/pageImage"
  29.                    android:layout_width="60dp"
  30.                    android:layout_height="60dp"
  31.                    android:scaleType="centerCrop"
  32.                    android:gravity="center"
  33.                    android:layout_gravity="center"
  34.                    android:layout_weight="1"
  35.                    android:src="@drawable/ic_image_gray_opaque_24dp"/>
  36.  
  37.                 <TextView
  38.                    android:id="@+id/pageTitle"
  39.                    android:layout_height="match_parent"
  40.                    android:layout_width="match_parent"
  41.                    android:layout_marginStart="5dp"
  42.                    android:textSize="20sp"
  43.                    android:fontFamily="sans-serif-medium"
  44.                    android:textColor="@android:color/black"
  45.                    android:layout_gravity="center"
  46.                    android:gravity="center|start"
  47.                    android:layout_weight="10"
  48.                    />
  49.                 <ImageButton
  50.                    android:id="@+id/button_menu"
  51.                    android:layout_width="match_parent"
  52.                    android:layout_height="match_parent"
  53.                    android:background="@color/transparent"
  54.                    android:src="@drawable/menu"
  55.                    android:scaleType="fitCenter"
  56.                    android:layout_weight="5"
  57.                    />
  58.             </LinearLayout>
  59.         </android.support.v7.widget.Toolbar>
  60.  
  61.         <View
  62.            android:layout_marginTop="10dp"
  63.            android:layout_width="match_parent"
  64.            android:layout_height="0.5dp"
  65.            android:layout_marginStart="10dp"
  66.            android:layout_marginEnd="10dp"
  67.            android:background="@color/gray" />
  68.         <android.support.v4.widget.NestedScrollView
  69.            android:layout_width="match_parent"
  70.            android:layout_height="match_parent">
  71.             <LinearLayout
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:orientation="vertical">
  75.                 <TextView
  76.                    android:id="@+id/pageDescription"
  77.                    android:layout_width="wrap_content"
  78.                    android:layout_height="wrap_content"
  79.                    android:layout_marginStart="15dp"
  80.                    android:layout_marginTop="10dp"
  81.                    android:layout_marginEnd="5dp"
  82.                    android:lineSpacingExtra="10dp"
  83.                    android:scrollbars="vertical"
  84.                    android:ellipsize="none"
  85.                    android:maxLines="100"
  86.                    android:textSize="16sp"/>
  87.  
  88.                 <android.support.v7.widget.RecyclerView
  89.                    android:id="@+id/recycler_view"
  90.                    android:layout_width="wrap_content"
  91.                    android:layout_gravity="center"
  92.                    android:foregroundGravity="center"
  93.                    android:scaleType="centerCrop"
  94.                    android:layout_height="150dp"
  95.                    />
  96.             </LinearLayout>
  97.         </android.support.v4.widget.NestedScrollView>
  98.     </LinearLayout>
  99.  
  100.  
  101. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement