android - FloatingActionButton getting covered by listview in the Fragment -
in xml below, floatingactionbutton getting covered linearlayout ll_urls2 , lv_blockedurls.
below code how screenshot looks like. floatingactionbutton on top of listview - how that?
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/bg_slidingpanes" android:clickable="true" android:orientation="vertical" android:weightsum="1"> <linearlayout android:id="@+id/ll_urls2" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/bg_slidingpanes" android:orientation="vertical" android:visibility="visible"> <listview android:id="@+id/lv_blockedurls" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingleft="25dp" android:paddingright="15dp"></listview> </linearlayout> <linearlayout android:id="@+id/ll_floatingactionbtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.design.widget.floatingactionbutton android:id="@+id/flbtn_addnewurl" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right|bottom" android:layout_margin="16dp" android:clickable="true" android:src="@drawable/bg_plus" app:elevation="4dp" app:layout_anchorgravity="bottom|right|end" /> </linearlayout> <linearlayout android:id="@+id/ll_floatingactionbtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.design.widget.floatingactionbutton android:id="@+id/flbtn_addnewurl" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" app:elevation="4dp" android:clickable="true" android:layout_gravity="right|bottom" app:layout_anchorgravity="bottom|right|end" android:src="@drawable/bg_plus" /> </linearlayout> </linearlayout> as can see below, floatingactionbutton missing. if reduce height of listview, able see floatingactionbutton
it not covered listview. pretty sure out of screen. somewhere below listview
use relativelayout outer layout

Comments
Post a Comment