daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Oct 2nd, 2018 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. activity.xml
  2.     <?xml version="1.0" encoding="utf-8"?>
  3.     <android.support.design.widget.CoordinatorLayout 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_width="match_parent"
  7.        android:layout_height="match_parent">
  8.    
  9.         <android.support.design.widget.AppBarLayout
  10.            android:id="@+id/appbarLayout"
  11.            android:layout_width="match_parent"
  12.            android:layout_height="wrap_content">
  13.    
  14.             <android.support.v7.widget.Toolbar
  15.                android:id="@+id/toolbar"
  16.                android:layout_width="match_parent"
  17.                android:layout_height="wrap_content"
  18.                android:fitsSystemWindows="true" />
  19.         </android.support.design.widget.AppBarLayout>
  20.    
  21.         <FrameLayout
  22.            android:id="@+id/container"
  23.            android:layout_width="match_parent"
  24.            android:layout_height="match_parent"
  25.            app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  26.     </android.support.design.widget.CoordinatorLayout>
  27.  
  28. fragment.xml
  29.     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30.        xmlns:tools="http://schemas.android.com/tools"
  31.        android:layout_width="match_parent"
  32.        android:layout_height="match_parent"
  33.        android:orientation="vertical">
  34.    
  35.         <android.support.v4.widget.NestedScrollView
  36.            android:id="@+id/scrollView"
  37.            android:layout_width="match_parent"
  38.            android:layout_height="0dp"
  39.            android:layout_weight="1"
  40.            android:orientation="vertical"
  41.            android:fillViewport="true">
  42.    
  43.             <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  44.                xmlns:tools="http://schemas.android.com/tools"
  45.                android:layout_width="match_parent"
  46.                android:layout_height="wrap_content"
  47.                android:padding="16dp"
  48.                android:orientation="vertical">
  49.    
  50.                 <TextView
  51.                    android:layout_width="match_parent"
  52.                    android:layout_height="wrap_content"
  53.                    android:layout_marginTop="20dp"
  54.                    android:text=""/>
  55.    
  56.                 <EditText
  57.                    android:id="@+id/editName"
  58.                    android:layout_width="match_parent"
  59.                    android:layout_height="wrap_content"
  60.                    android:inputType="text|textCapWords"
  61.                    tools:ignore="TextFields" />
  62.  
  63.                 <!-- more EditTexts and TextViews-->
  64.             </LinearLayout>
  65.         </android.support.v4.widget.NestedScrollView>
  66.    
  67.         <Button
  68.            android:id="@+id/buttonSave"
  69.            android:layout_width="match_parent"
  70.            android:layout_height="wrap_content" />
  71.     </LinearLayout>
  72.  
  73. styles.xml
  74.         <item name="android:windowTranslucentStatus">true</item>
  75.  
  76. AndroidManifest.xml
  77.     <activity android:name=".MainActivity"
  78.            android:windowSoftInputMode="adjustResize">
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