| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:paddingBottom="@dimen/activity_vertical_margin" |
| android:paddingLeft="@dimen/activity_horizontal_margin" |
| android:paddingRight="@dimen/activity_horizontal_margin" |
| android:paddingTop="@dimen/activity_vertical_margin" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| |
| <ScrollView |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:orientation="vertical" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content"> |
| |
| <TableLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="10dp" |
| android:stretchColumns="1" |
| android:shrinkColumns="1"> |
| |
| <TableRow> |
| |
| <TextView |
| android:id="@+id/incompleteSettings" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="3dp" |
| android:layout_span="2" |
| android:textColor="@color/errorText" |
| android:text="@string/incompleteSettings"/> |
| </TableRow> |
| |
| <TableRow> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="3dp" |
| android:text="@string/server"/> |
| |
| <LinearLayout |
| android:orientation="horizontal" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content"> |
| |
| <Spinner |
| android:id="@+id/serverIdInput" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:background="@android:drawable/btn_dropdown" |
| android:spinnerMode="dropdown"/> |
| |
| <Button |
| android:id="@+id/edit_server" |
| android:layout_width="45dp" |
| android:layout_height="wrap_content" |
| android:drawableLeft="@drawable/ic_create_black_24dp"/> |
| </LinearLayout> |
| </TableRow> |
| |
| <TableRow> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="3dp" |
| android:text="@string/query"/> |
| |
| <EditText |
| android:id="@+id/queryInput" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:hint="@string/query_hint" |
| android:inputType="textFilter" |
| android:singleLine="true"/> |
| </TableRow> |
| |
| <TableRow> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="3dp" |
| android:text="@string/label"/> |
| |
| <EditText |
| android:id="@+id/labelInput" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:hint="@string/label_hint" |
| android:inputType="textFilter" |
| android:singleLine="true"/> |
| </TableRow> |
| </TableLayout> |
| |
| <Button |
| android:id="@+id/saveQuerySettings" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="@string/save"/> |
| </LinearLayout> |
| </ScrollView> |
| |
| </RelativeLayout> |