android-calculatorpp/app/src/main/res/layout/cpp_unit_converter.xml
2016-03-27 15:37:47 +02:00

119 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2013 serso aka se.solovyev
~
~ 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.
~
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Contact details
~
~ Email: se.solovyev@gmail.com
~ Site: http://se.solovyev.org
-->
<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">
<Spinner
android:id="@+id/converter_dimensions_spinner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end|center_vertical"
android:layout_marginBottom="@dimen/control_margin" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageButton
android:id="@+id/converter_swap_button"
style="@style/CppImageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|start"
android:layout_marginEnd="@dimen/control_margin"
android:layout_marginRight="@dimen/control_margin"
android:src="@drawable/ic_swap_vert_white_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/control_margin"
android:orientation="horizontal">
<android.support.design.widget.TextInputLayout
android:id="@+id/converter_label_from"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<EditText
android:id="@+id/converter_edittext_from"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="numberDecimal|numberSigned"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
<Spinner
android:id="@+id/converter_spinner_from"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<android.support.design.widget.TextInputLayout
android:id="@+id/converter_label_to"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<EditText
android:id="@+id/converter_edittext_to"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:editable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:inputType="none"
android:singleLine="true"
tools:ignore="Deprecated" />
</android.support.design.widget.TextInputLayout>
<Spinner
android:id="@+id/converter_spinner_to"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>