1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:orientation="vertical"> 20 21 <Toolbar 22 android:id="@+id/toolbar" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:background="?android:attr/colorPrimary" 26 android:elevation="4dp" 27 android:minHeight="?android:attr/actionBarSize" 28 android:popupTheme="@android:style/ThemeOverlay.Material.Light" 29 android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar" /> 30 31 <TextView 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_margin="16dp" 35 android:text="@string/explanation" 36 android:textAppearance="@android:style/TextAppearance.Material.Body1" /> 37 38 <View 39 android:layout_width="match_parent" 40 android:layout_height="1dp" 41 android:background="@android:color/darker_gray" /> 42 43 <EditText 44 android:id="@+id/body" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_marginEnd="16dp" 48 android:layout_marginStart="16dp" 49 android:layout_marginTop="16dp" 50 android:hint="@string/text_to_share" 51 android:text="@string/hello" /> 52 53 <Button 54 android:id="@+id/share" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_gravity="end" 58 android:layout_marginEnd="16dp" 59 android:layout_marginStart="16dp" 60 android:text="@string/share" /> 61 62</LinearLayout> 63