| 1 |
<RelativeLayout |
| 2 |
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 |
tools:context=".MainActivity" |
| 7 |
android:id="@+id/layout" |
| 8 |
android:background="@color/body"> |
| 9 |
|
| 10 |
<ScrollView |
| 11 |
android:id="@+id/scroller" |
| 12 |
android:layout_width="fill_parent" |
| 13 |
android:layout_height="fill_parent" |
| 14 |
android:scrollbars="vertical" |
| 15 |
android:fillViewport="false" |
| 16 |
android:layout_alignParentTop="true" |
| 17 |
android:layout_alignParentLeft="true" |
| 18 |
android:layout_alignParentStart="true" |
| 19 |
android:layout_above="@+id/layout_bottom" |
| 20 |
android:padding="@dimen/abc_control_padding_material"> |
| 21 |
|
| 22 |
<WebView |
| 23 |
android:layout_width="match_parent" |
| 24 |
android:layout_height="wrap_content" |
| 25 |
android:id="@+id/webView" |
| 26 |
android:gravity="left|bottom" |
| 27 |
android:textIsSelectable="true" |
| 28 |
android:clickable="false" |
| 29 |
android:background="@color/body" /> |
| 30 |
|
| 31 |
</ScrollView> |
| 32 |
|
| 33 |
<LinearLayout |
| 34 |
android:orientation="horizontal" |
| 35 |
android:layout_width="match_parent" |
| 36 |
android:layout_height="wrap_content" |
| 37 |
android:layout_centerHorizontal="true" |
| 38 |
android:id="@+id/layout_bottom" |
| 39 |
android:layout_alignParentRight="true" |
| 40 |
android:layout_alignParentEnd="true" |
| 41 |
android:layout_alignParentLeft="true" |
| 42 |
android:layout_alignParentStart="true" |
| 43 |
android:layout_alignParentBottom="true"> |
| 44 |
|
| 45 |
<EditText |
| 46 |
android:layout_width="0dp" |
| 47 |
android:layout_height="wrap_content" |
| 48 |
android:layout_weight="1" |
| 49 |
android:id="@+id/editText" |
| 50 |
android:gravity="top|left|start" |
| 51 |
android:textStyle="normal" |
| 52 |
android:inputType="textVisiblePassword" |
| 53 |
android:hint="@string/editTextHelp"/> |
| 54 |
|
| 55 |
<ImageButton |
| 56 |
android:layout_width="wrap_content" |
| 57 |
android:layout_height="wrap_content" |
| 58 |
android:id="@+id/imageButton" |
| 59 |
android:background="@drawable/circle_shape" |
| 60 |
android:src="@drawable/ic_done_white_24dp" |
| 61 |
android:contentDescription="@string/ok" |
| 62 |
android:onClick="onClick" |
| 63 |
android:clickable="true" |
| 64 |
android:padding="@dimen/abc_control_padding_material" |
| 65 |
android:layout_margin="@dimen/abc_control_padding_material" /> |
| 66 |
|
| 67 |
</LinearLayout> |
| 68 |
|
| 69 |
</RelativeLayout> |