Newer
Older
mountainnavigation / app / src / main / res / layout / hike_list.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
	* This file is part of MountainNavigation.
	*
	* MountainNavigation 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.
	*
	* MountainNavigation 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 MountainNavigation. If not, see <http://www.gnu.org/licenses/>.
	*
	* Copyright (c) 2016 Vinzenz Rosenkanz <vinzenz.rosenkranz@gmail.com>
	*
	* Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <TableRow
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginLeft="16dp"
        android:layout_marginEnd="16dp"
        android:layout_marginRight="16dp"
        android:background="?attr/selectableItemBackground">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <TextView
                android:id="@+id/hike_list_item_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textSize="14sp"
                android:textColor="@color/text_color"
                android:fontFamily="sans-serif-medium"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"/>
            <TextView
                android:id="@+id/hike_list_item_length"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="2dp"
                android:paddingStart="2dp"
                android:textSize="12sp"
                android:textColor="@color/text_color_light"
                android:fontFamily="sans-serif-light"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"/>
            <TextView
                android:id="@+id/hike_list_item_time"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="2dp"
                android:paddingStart="2dp"
                android:textSize="12sp"
                android:textColor="@color/text_color_light"
                android:fontFamily="sans-serif-light"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"/>
            <TextView
                android:id="@+id/hike_list_item_difficulty"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="2dp"
                android:paddingStart="2dp"
                android:textSize="12sp"
                android:textColor="@color/text_color_light"
                android:fontFamily="sans-serif-light"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"/>
        </LinearLayout>
    </TableRow>
</TableLayout>