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 | |||||
android:layout_width="fill_parent" | <TextVie | ||||
android:layout_height="wrap_content" | android:id="@+id/messageTextView | ||||
android:layout_marginEnd="16dp" | android:layout_width="match_parent | ||||
android:layout_marginLeft="16dp" | android:layout_height="wrap_content | ||||
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:minHeight="48dp" | android:layout_marginBottom="10dp | ||||
android:layout_marginBottom="10dp" /> | android:layout_toStartOf="@+id/addToFavorites | ||||
<ListView | android:layout_toLeftOf="@+id/addToFavorites | ||||
android:layout_below="@id/messageTextView" | android:gravity="center_vertical | ||||
android:id="@+id/resultsListView" | android:minHeight="48dp | ||||
android:layout_width="match_parent" | android:textAppearance="?android:attr/textAppearanceMedium" / | ||||
android:layout_height="match_parent" | |||||
android:clickable="true" | <ImageButto | ||||
android:descendantFocusability="blocksDescendants" | android:id="@+id/addToFavorites | ||||
android:visibility="visible" | android:layout_width="wrap_content | ||||
/> | android:layout_height="wrap_content | ||||
</RelativeLayout> | android:layout_above="@+id/resultsListView | ||||
No newline at end of file | 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" / | |||||
<ListVie | |||||
android:layout_below="@id/messageTextView | |||||
android:id="@+id/resultsListView | |||||
android:layout_width="match_parent | |||||
android:layout_height="match_parent | |||||
android:clickable="true | |||||
android:descendantFocusability="blocksDescendants | |||||
android:visibility="visible | |||||
/ | |||||
</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