Changeset View
Changeset View
Standalone View
Standalone View
res/layout/fragment_list_view.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
xmlns:fab="http://schemas.android.com/apk/res-auto" | xmlns:fab="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.support.v7.widget.CardView | |||||
android:id="@+id/favorites_cardView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
fab:cardElevation="2dp" | |||||
fab:cardCornerRadius="5dp" | |||||
android:layout_margin="16dp"> | |||||
<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="16dp" | |||||
android:layout_marginLeft="16dp" | |||||
android:layout_marginTop="10dp" | |||||
android:layout_marginEnd="307dp" | |||||
android:layout_marginRight="10dp" | |||||
android:layout_marginBottom="10dp" | |||||
android:layout_toStartOf="@+id/addToFavorites" | |||||
android:layout_toLeftOf="@+id/addToFavorites" | android:layout_toLeftOf="@+id/addToFavorites" | ||||
android:gravity="center_vertical" | android:gravity="center_vertical" | ||||
android:layout_marginLeft="4dp" | |||||
android:minHeight="48dp" | android:minHeight="48dp" | ||||
android:textAppearance="?android:attr/textAppearanceMedium" /> | android:textAppearance="?android:attr/textAppearanceMedium" | ||||
android:layout_toStartOf="@+id/addToFavorites" | |||||
android:layout_marginStart="4dp" | |||||
android:foreground="?attr/selectableItemBackground" /> | |||||
<ImageButton | <ImageButton | ||||
android:id="@+id/addToFavorites" | android:id="@+id/addToFavorites" | ||||
android:layout_width="wrap_content" | android:layout_width="45dp" | ||||
android:layout_height="wrap_content" | android:layout_height="match_parent" | ||||
android:layout_above="@+id/resultsListView" | android:layout_gravity="end" | ||||
android:layout_alignParentRight="true" | |||||
android:layout_marginLeft="16dp" | |||||
android:layout_marginTop="10dp" | |||||
android:layout_marginRight="16dp" | |||||
android:layout_marginBottom="16dp" | |||||
android:background="@android:color/transparent" | android:background="@android:color/transparent" | ||||
fab:srcCompat="@drawable/ic_star_outline" /> | fab:srcCompat="@drawable/ic_star_outline" | ||||
tools:ignore="OnClick" | |||||
android:foreground="?attr/selectableItemBackground" /> | |||||
</android.support.v7.widget.CardView> | |||||
<ListView | <ListView | ||||
android:layout_below="@id/messageTextView" | |||||
android:id="@+id/resultsListView" | android:id="@+id/resultsListView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_below="@+id/favorites_cardView" | |||||
android:clickable="true" | android:clickable="true" | ||||
android:descendantFocusability="blocksDescendants" | android:descendantFocusability="blocksDescendants" | ||||
android:visibility="visible" | android:visibility="visible" /> | ||||
/> | |||||
</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