pts_fragment.xml 4.19 KB
Newer Older
Toni Beier's avatar
Toni Beier committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.coordinatorlayout.widget.CoordinatorLayout
Toni Beier's avatar
Toni Beier committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
    android:id="@+id/fragmentCoordinatorLayout"
    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:textColor="@color/white">


    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/defaultTitleColor"
18
            android:orientation="horizontal">
Toni Beier's avatar
Toni Beier committed
19 20 21 22 23 24 25 26 27
        <TextView
            android:id="@+id/ptsupdate"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:textColor="@color/descColor"
            android:textAlignment="gravity"
            android:textSize="@dimen/descTextSize"
            android:paddingLeft="10dp"
28
            style="@style/TitleTextField"/>
Toni Beier's avatar
Toni Beier committed
29
            </LinearLayout>
30 31 32


        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
Toni Beier's avatar
Toni Beier committed
33 34
            android:layout_width="match_parent"
            android:layout_height="match_parent"
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
            android:id="@+id/swipeRefreshLayout">
            <androidx.core.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:fillViewport="true"
                >
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/module_publictransport_favorites"/>
                <TextView
                    android:id="@+id/emptyFavStationList"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:textColor="@color/descColor"
                    style="@style/TitleTextField"
                    android:visibility="gone"
                    android:paddingLeft="10dp"/>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/emptyFavStationsTV"
                    android:visibility="gone"/>
            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/pts_fav_list"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="10dp"/>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/nearby_stations"/>
                <TextView
                    android:id="@+id/emptyStationList"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:textColor="@color/descColor"
                    style="@style/TitleTextField"
                    android:visibility="gone"
                    android:paddingLeft="10dp"
                    />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/emptyNearStationsTV"
                    android:visibility="gone"/>
        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/pts_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Toni Beier's avatar
Toni Beier committed
89 90
            android:paddingLeft="10dp"
            />
91 92 93
            </LinearLayout>
            </androidx.core.widget.NestedScrollView>
        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
Toni Beier's avatar
Toni Beier committed
94
    </LinearLayout>
95
</androidx.coordinatorlayout.widget.CoordinatorLayout>