SHARE
TWEET
Untitled
a guest
Oct 2nd, 2018
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- activity.xml
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appbarLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true" />
- </android.support.design.widget.AppBarLayout>
- <FrameLayout
- android:id="@+id/container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
- </android.support.design.widget.CoordinatorLayout>
- fragment.xml
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <android.support.v4.widget.NestedScrollView
- android:id="@+id/scrollView"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:orientation="vertical"
- android:fillViewport="true">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="16dp"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:text=""/>
- <EditText
- android:id="@+id/editName"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="text|textCapWords"
- tools:ignore="TextFields" />
- <!-- more EditTexts and TextViews-->
- </LinearLayout>
- </android.support.v4.widget.NestedScrollView>
- <Button
- android:id="@+id/buttonSave"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </LinearLayout>
- styles.xml
- <item name="android:windowTranslucentStatus">true</item>
- AndroidManifest.xml
- <activity android:name=".MainActivity"
- 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.
