Changeset View
Changeset View
Standalone View
Standalone View
res/layout/fragment_arrivals.xml
- This file was added.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||||
xmlns:fab="http://schemas.android.com/apk/res-auto" | |||||
xmlns:tools="http://schemas.android.com/tools" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent"> | |||||
<androidx.cardview.widget.CardView | |||||
android:id="@+id/messageCardView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginStart="16dp" | |||||
android:layout_marginLeft="16dp" | |||||
android:layout_marginTop="16dp" | |||||
android:layout_marginEnd="16dp" | |||||
android:layout_marginRight="16dp" | |||||
android:layout_marginBottom="10dp" | |||||
fab:cardCornerRadius="5dp" | |||||
fab:cardElevation="2dp"> | |||||
<TextView | |||||
android:id="@+id/messageTextView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginStart="8dp" | |||||
android:layout_marginLeft="8dp" | |||||
android:layout_toStartOf="@+id/addToFavorites" | |||||
android:layout_toLeftOf="@+id/addToFavorites" | |||||
android:foreground="?attr/selectableItemBackground" | |||||
android:gravity="center_vertical" | |||||
android:minHeight="40dp" | |||||
android:textAppearance="?android:attr/textAppearanceMedium" /> | |||||
<ImageButton | |||||
android:id="@+id/addToFavorites" | |||||
android:layout_width="45dp" | |||||
android:layout_height="match_parent" | |||||
android:layout_gravity="end" | |||||
android:background="@android:color/transparent" | |||||
android:foreground="?attr/selectableItemBackground" | |||||
fab:srcCompat="@drawable/ic_star_outline" | |||||
tools:ignore="OnClick" /> | |||||
</androidx.cardview.widget.CardView> | |||||
<LinearLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_below="@+id/messageCardView" | |||||
android:orientation="vertical" | |||||
android:layout_height="wrap_content"> | |||||
<ListView | |||||
android:id="@+id/resultsListView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_weight="9" | |||||
android:clickable="true" | |||||
android:descendantFocusability="blocksDescendants" | |||||
android:focusable="true" | |||||
android:scrollbars="vertical" | |||||
android:visibility="visible"> | |||||
</ListView> | |||||
<View | |||||
android:id="@+id/divider_arr" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="1dp" | |||||
android:background="@color/grey_100" | |||||
/> | |||||
<LinearLayout | |||||
android:id="@+id/theLinearLayout" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginTop="5dp" | |||||
android:layout_marginBottom="5dp" | |||||
android:orientation="horizontal"> | |||||
<TextView | |||||
android:id="@+id/timesSourceTextView" | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_marginStart="15dp" | |||||
android:layout_marginLeft="15dp" | |||||
android:text="Source of arrivals" | |||||
android:textAppearance="?android:attr/textAppearanceMedium" | |||||
android:textSize="19sp" | |||||
/> | |||||
</LinearLayout> | |||||
</LinearLayout> | |||||
</RelativeLayout> | |||||
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