Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/res/layout/fragment_arrivals.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout | ||||
xmlns:fab="http://schemas.android.com/apk/res-auto" | xmlns:android="http://schemas.android.com/apk/res/android" | ||||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||||
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" | ||||
android:orientation="vertical" | |||||
android:paddingTop="8dp"> | |||||
<androidx.cardview.widget.CardView | <androidx.cardview.widget.CardView | ||||
android:id="@+id/messageCardView" | android:id="@+id/messageCardView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginStart="16dp" | app:cardCornerRadius="5dp" | ||||
android:layout_marginLeft="16dp" | app:cardElevation="2dp" | ||||
android:layout_marginTop="16dp" | > | ||||
android:layout_marginEnd="16dp" | |||||
android:layout_marginRight="16dp" | |||||
android:layout_marginBottom="10dp" | |||||
fab:cardCornerRadius="5dp" | |||||
fab:cardElevation="2dp"> | |||||
<TextView | <TextView | ||||
android:id="@+id/messageTextView" | android:id="@+id/messageTextView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginStart="8dp" | android:layout_marginStart="8dp" | ||||
android:layout_marginLeft="8dp" | android:layout_marginLeft="8dp" | ||||
android:layout_toStartOf="@+id/addToFavorites" | android:layout_toStartOf="@+id/addToFavorites" | ||||
android:layout_toLeftOf="@+id/addToFavorites" | android:layout_toLeftOf="@+id/addToFavorites" | ||||
android:foreground="?attr/selectableItemBackground" | android:foreground="?attr/selectableItemBackground" | ||||
android:gravity="center_vertical" | android:gravity="center_vertical" | ||||
android:minHeight="40dp" | android:minHeight="40dp" | ||||
android:textAppearance="?android:attr/textAppearanceMedium" /> | android:textAppearance="?android:attr/textAppearanceMedium"/> | ||||
<ImageButton | <ImageButton | ||||
android:id="@+id/addToFavorites" | android:id="@+id/addToFavorites" | ||||
android:layout_width="45dp" | android:layout_width="45dp" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_gravity="end" | android:layout_gravity="end" | ||||
android:background="@android:color/transparent" | android:background="@android:color/transparent" | ||||
android:foreground="?attr/selectableItemBackground" | android:foreground="?attr/selectableItemBackground" | ||||
fab:srcCompat="@drawable/ic_star_outline" | app:srcCompat="@drawable/ic_star_outline" | ||||
tools:ignore="OnClick" /> | tools:ignore="OnClick"/> | ||||
</androidx.cardview.widget.CardView> | </androidx.cardview.widget.CardView> | ||||
<LinearLayout | <LinearLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | |||||
android:layout_below="@+id/messageCardView" | android:layout_below="@+id/messageCardView" | ||||
android:orientation="vertical" | |||||
android:layout_height="wrap_content"> | android:orientation="vertical"> | ||||
<ListView | <androidx.core.widget.NestedScrollView | ||||
android:id="@+id/resultsListView" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | |||||
android:id="@+id/arrivalsScrollView" | |||||
android:layout_weight="12" | |||||
> | |||||
<LinearLayout | |||||
android:orientation="vertical" | |||||
android:layout_width="match_parent" android:layout_height="wrap_content"> | |||||
<androidx.recyclerview.widget.RecyclerView | |||||
android:id="@+id/arrivalsRecyclerView" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_weight="9" | |||||
android:clickable="true" | android:clickable="true" | ||||
android:descendantFocusability="blocksDescendants" | android:descendantFocusability="blocksDescendants" | ||||
android:focusable="true" | android:focusable="true" | ||||
android:scrollbars="vertical" | |||||
android:visibility="visible"> | |||||
</ListView> | android:visibility="visible" | ||||
android:nestedScrollingEnabled="false" | |||||
android:layout_marginTop="8dp"/> | |||||
<TextView android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:text="@string/no_passages_title" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Display1" | |||||
android:textSize="22sp" | |||||
android:id="@+id/noArrivalsMessageTextView" | |||||
android:minHeight="0dp" | |||||
android:layout_marginLeft="12dp" | |||||
android:layout_marginStart="12dp" | |||||
android:layout_marginEnd="12dp" | |||||
android:layout_marginRight="12dp" | |||||
/> | |||||
<androidx.recyclerview.widget.RecyclerView | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:id="@+id/noArrivalsRecyclerView" | |||||
android:nestedScrollingEnabled="false" | |||||
android:layout_marginLeft="@dimen/margin_arr" | |||||
android:layout_marginStart="@dimen/margin_arr" | |||||
android:layout_marginEnd="@dimen/margin_arr" | |||||
android:layout_marginRight="@dimen/margin_arr" | |||||
/> | |||||
<!-- | |||||
<View | <View | ||||
android:id="@+id/divider_arr" | android:id="@+id/canaryEndView" | ||||
android:layout_height="2dp" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="1dp" | android:layout_marginLeft="@dimen/margin_arr" | ||||
android:background="@color/grey_100" | android:layout_marginStart="@dimen/margin_arr" | ||||
android:layout_marginEnd="@dimen/margin_arr" | |||||
android:layout_marginRight="@dimen/margin_arr" | |||||
android:background="@color/orange_500" | |||||
/> | /> | ||||
--> | |||||
<LinearLayout | </LinearLayout> | ||||
android:id="@+id/theLinearLayout" | |||||
android:layout_width="match_parent" | </androidx.core.widget.NestedScrollView> | ||||
<LinearLayout android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:orientation="vertical" | |||||
android:id="@+id/bottomLinearLayout" | |||||
android:gravity="top" | |||||
> | |||||
<View | |||||
android:id="@+id/divider_arr" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="1dp" | |||||
android:background="@color/grey_200" | |||||
android:layout_marginTop="5dp" | /> | ||||
android:layout_marginBottom="5dp" | |||||
android:orientation="horizontal"> | |||||
<TextView | <TextView | ||||
android:id="@+id/timesSourceTextView" | android:id="@+id/timesSourceTextView" | ||||
android:layout_width="wrap_content" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginStart="15dp" | android:layout_marginLeft="10dp" | ||||
android:layout_marginLeft="15dp" | |||||
android:text="" | android:text="" | ||||
android:textAppearance="?android:attr/textAppearanceMedium" | android:textAppearance="?android:attr/textAppearanceMedium" | ||||
android:textSize="19sp" | android:textSize="20sp" | ||||
android:gravity="center_vertical" | |||||
android:paddingBottom="5dp" | |||||
android:layout_marginStart="10dp" | |||||
android:layout_marginTop="5dp" | |||||
/> | /> | ||||
</LinearLayout> | </LinearLayout> | ||||
</LinearLayout> | </LinearLayout> | ||||
</RelativeLayout> | </RelativeLayout> | ||||
No newline at end of file | No newline at end of file |
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