hyperrail/hyperrail-for-android

View on GitHub
Hyperrail/src/main/res/layout/fragment_vehicle_composition.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?><!--
  ~  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  ~  If a copy of the MPL was not distributed with this file,
  ~  You can obtain one at http://mozilla.org/MPL/2.0/.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    tools:context=".fragments.embed.TrainCompositionFragment">

    <ProgressBar
        android:id="@+id/progressBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:indeterminate="true" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recyclerview_primary"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:clipToPadding="false"
        android:layout_width="match_parent"
        android:orientation="horizontal"
        android:layout_height="wrap_content">
    </androidx.recyclerview.widget.RecyclerView>

    <TextView
        android:id="@+id/text_status_unconfirmed"
        android:layout_width="match_parent"
        android:layout_height="@dimen/listitem_content_height_single"
        android:animateLayoutChanges="true"
        android:background="#006ab3"
        android:gravity="center"
        android:text="@string/warning_composition_unconfirmed"
        android:textColor="@color/colorTextAlwaysLight" />

    <TextView
        android:id="@+id/text_status_unavailable"
        android:layout_width="match_parent"
        android:layout_height="@dimen/listitem_content_height_double"
        android:animateLayoutChanges="true"
        android:background="@color/colorBackgroundAlwaysDark"
        android:gravity="center"
        android:text="@string/warning_composition_unavailable"
        android:textColor="@color/colorTextAlwaysLight" />
</LinearLayout>