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" | ||||
> | > | ||||
<TextView | <TextView | ||||
android:layout_width="fill_parent" | android:id="@+id/messageTextView" | ||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginEnd="16dp" | |||||
android:layout_marginLeft="16dp" | |||||
android:layout_marginRight="16dp" | |||||
android:layout_marginStart="16dp" | android:layout_marginStart="16dp" | ||||
android:layout_marginLeft="16dp" | |||||
android:layout_marginTop="10dp" | android:layout_marginTop="10dp" | ||||
android:id="@+id/messageTextView" android:gravity="center_vertical" | android:layout_marginEnd="307dp" | ||||
android:textAppearance="?android:attr/textAppearanceMedium" | android:layout_marginRight="10dp" | ||||
android:layout_marginBottom="10dp" | |||||
android:layout_toStartOf="@+id/addToFavorites" | |||||
android:layout_toLeftOf="@+id/addToFavorites" | |||||
android:gravity="center_vertical" | |||||
android:minHeight="48dp" | android:minHeight="48dp" | ||||
android:layout_marginBottom="10dp" /> | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||||
<ImageButton | |||||
android:id="@+id/addToFavorites" | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="wrap_content" | |||||
android:layout_above="@+id/resultsListView" | |||||
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" | |||||
fab:srcCompat="@drawable/ic_star_outline" /> | |||||
<ListView | <ListView | ||||
android:layout_below="@id/messageTextView" | 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: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