android - Floating Action Button not working over ListView -
i have floating action button on listview, can't click on button when list fills button , list overlap. in situation list item clickable. how rectify issue? in advance. xml code below.
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.cardview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="3dp" android:paddingbottom="10dp" android:paddingleft="10dp" android:paddingright="10dp" android:paddingtop="10dp" card_view:cardcornerradius="1dp" card_view:cardelevation="5dp"> <relativelayout android:id="@+id/layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/framelayout" android:layout_centerhorizontal="true" android:layout_gravity="bottom" android:background="#000000" android:orientation="vertical" android:padding="1.5dp" android:weightsum="1"> <textview android:id="@+id/txttitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:background="#660033" android:text="large text" android:textappearance="?android:attr/textappearancelarge" android:textcolor="@android:color/primary_text_dark" /> <relativelayout android:id="@+id/framelayout" android:layout_width="fill_parent" android:layout_height="300dp" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:layout_margintop="29dp" android:background="@android:color/darker_gray" android:padding="2dp"> <textview android:id="@+id/txtlocation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/disploc" android:layout_gravity="left|top" android:text="[location]" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/txtdesc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/dispdesc" android:layout_gravity="left|center_vertical" android:layout_margintop="1dp" android:text="[description]" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/disploc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:text="@string/loc" android:textappearance="?android:attr/textappearancelarge" /> <textview android:id="@+id/dispdesc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/txtlocation" android:layout_gravity="left|center_vertical" android:layout_margintop="17dp" android:text="@string/desc" android:textappearance="?android:attr/textappearancelarge" /> <textview android:id="@+id/dispcontact" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/txtdesc" android:layout_margintop="25dp" android:text="@string/contact" android:textappearance="?android:attr/textappearancelarge" /> <textview android:id="@+id/txtcontact" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbottom="@+id/dispcontact" android:layout_toendof="@+id/disploc" android:autolink="email" android:text="[contactinfo]" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/from" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/dispcontact" android:layout_margintop="16dp" android:text="@string/from" android:textcolor="@android:color/primary_text_light" /> <textview android:id="@+id/txtstartdate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_aligntop="@+id/from" android:layout_marginleft="10dp" android:layout_toendof="@+id/from" android:text="[start date]" android:textcolor="@android:color/secondary_text_light" /> <textview android:id="@+id/to" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentstart="true" android:layout_below="@+id/txtstartdate" android:text="@string/to" android:textcolor="@android:color/primary_text_light" /> <textview android:id="@+id/txtenddate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignstart="@+id/txtstartdate" android:layout_aligntop="@+id/to" android:text="[end date]" android:textcolor="@android:color/secondary_text_light" /> <button android:id="@+id/attend_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentstart="true" android:text="attend" /> <button android:id="@+id/cancel_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignstart="@+id/txtcontact" android:text="cancel" /> </relativelayout> <textview android:id="@+id/txttype" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbottom="@+id/txttitle" android:layout_alignend="@+id/txttitle" android:text="type" android:textappearance="?android:attr/textappearancelarge" android:textcolor="@android:color/primary_text_dark" /> </relativelayout> </android.support.v7.widget.cardview> <textview android:id="@+id/peopleattending" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/card_view" android:background="#660033" android:text="@string/people_attending" android:textappearance="?android:attr/textappearancelarge" android:textcolor="@android:color/primary_text_dark" /> <org.lucasr.twowayview.twowayview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/lvitems" style="@style/twowayview" android:layout_width="match_parent" android:layout_height="37dp" android:layout_below="@+id/peopleattending" android:drawselectorontop="false" tools:context=".detailedeventactivity" /> <com.software.shell.fab.actionbutton xmlns:fab="http://schemas.android.com/apk/res-auto" android:id="@+id/action_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentend="true" android:layout_marginbottom="@dimen/fab_margin" android:layout_marginend="@dimen/fab_margin" fab:button_color="@color/fab_material_red_500" fab:button_colorpressed="@color/fab_material_red_900" fab:hide_animation="@anim/fab_roll_to_down" fab:image="@drawable/fab_plus_icon" fab:image_size="24dp" fab:shadow_color="#757575" fab:shadow_radius="1.0dp" fab:shadow_xoffset="0.5dp" fab:shadow_yoffset="1.0dp" fab:show_animation="@anim/fab_roll_from_down" fab:stroke_color="@color/fab_material_blue_grey_500" fab:stroke_width="1.0dp" fab:type="default" android:clickable="true"/> <listview android:id="@+id/commentslist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentstart="true" android:layout_below="@+id/lvitems" android:layout_margintop="0dp" />
move fab bottom of xml (below listview).
Comments
Post a Comment