FitoTrack/app/src/main/res/layout/enter_workout_line.xml
2020-03-10 21:13:15 +01:00

73 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2020 Jannis Scheibe <jannis@tadris.de>
~
~ This file is part of FitoTrack
~
~ FitoTrack is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ FitoTrack is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="-15dp"
android:layout_marginRight="-15dp"
android:gravity="center_vertical"
android:background="?android:selectableItemBackground">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:paddingStart="15dp"
android:paddingEnd="15dp">
<TextView
android:id="@+id/lineKey"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:textSize="20sp"
android:textColor="@color/textLighterBlack" />
<LinearLayout
android:id="@+id/lineViewRoot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toStartOf="@+id/lineValue"
android:layout_toEndOf="@+id/lineKey"
android:layout_centerVertical="true"
android:gravity="right|center_vertical"
android:orientation="horizontal">
</LinearLayout>
<TextView
android:id="@+id/lineValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textSize="20sp"
android:textColor="@color/textLighterBlack"
android:layout_centerVertical="true"
android:textAlignment="textEnd" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:dividerHorizontal" />
</LinearLayout>