Changeset View
Changeset View
Standalone View
Standalone View
res/layout/fragment_nearby_stops.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
xmlns:tools="http://schemas.android.com/tools" | xmlns:tools="http://schemas.android.com/tools" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
tools:context="it.reyboz.bustorino.fragments.NearbyStopsFragment"> | tools:context="it.reyboz.bustorino.fragments.NearbyStopsFragment"> | ||||
<TextView | <TextView | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:text="@string/nearby_stops_message" android:id="@+id/titleTextView" | android:text="@string/nearby_stops_message" android:id="@+id/titleTextView" | ||||
android:textAppearance="@android:style/TextAppearance.Medium" | android:textAppearance="@android:style/TextAppearance.Medium" | ||||
android:layout_marginBottom="15dp" android:layout_marginTop="15dp" | android:layout_marginBottom="15dp" android:layout_marginTop="15dp" | ||||
android:gravity="center_horizontal" android:textSize="23sp" | android:gravity="center_horizontal" android:textSize="23sp" | ||||
android:layout_toLeftOf="@id/switchButton" android:layout_marginLeft="10dp" | android:layout_toLeftOf="@id/switchButton" android:layout_marginLeft="10dp" | ||||
android:layout_marginStart="10dp" android:layout_marginRight="10dp" android:layout_marginEnd="10dp" | android:layout_marginStart="10dp" android:layout_marginRight="10dp" android:layout_marginEnd="10dp" | ||||
/> | /> | ||||
<android.support.v7.widget.AppCompatButton | <androidx.appcompat.widget.AppCompatButton | ||||
xmlns:app="http://schemas.android.com/apk/res-auto" | xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
android:text="@string/show_arrivals" | android:text="@string/show_arrivals" | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" android:id="@+id/switchButton" | android:layout_height="wrap_content" android:id="@+id/switchButton" | ||||
android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
android:layout_margin="10dp" | android:layout_margin="10dp" | ||||
app:backgroundTint="@color/blue_500" | app:backgroundTint="@color/blue_500" | ||||
android:textColor="@android:color/white" | android:textColor="@android:color/white" | ||||
/> | /> | ||||
<android.support.v7.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" android:layout_below="@id/titleTextView" | android:layout_height="match_parent" android:layout_below="@id/titleTextView" | ||||
android:id="@+id/stopGridRecyclerView" | android:id="@+id/stopGridRecyclerView" | ||||
android:clickable="true" | android:clickable="true" | ||||
android:focusable="true" android:visibility="gone" | android:focusable="true" android:visibility="gone" | ||||
android:clipChildren="false" android:clipToPadding="true" android:horizontalSpacing="10dp" | android:clipChildren="false" android:clipToPadding="true" android:horizontalSpacing="10dp" | ||||
android:layout_above="@id/horizontalProgressBar" | android:layout_above="@id/horizontalProgressBar" | ||||
android:verticalSpacing="10dp"/> | android:verticalSpacing="10dp"/> | ||||
Show All 36 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register