android - FloatingActionButton not showing fully in screen -
i have used floatingactionbutton in application not showing in screen. have used latest android design support library. below have paste xml.
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app1="http://schemas.android.com/apk/res/com.hsp.inventory" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:fitssystemwindows="true" > <android.support.design.widget.appbarlayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/themeoverlay.appcompat.dark.actionbar" > <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" app:layout_scrollflags="scroll|enteralways" android:background="?attr/colorprimary" app:popuptheme="@style/themeoverlay.appcompat.light" /> <android.support.design.widget.tablayout android:id="@+id/tablayout" android:layout_width="match_parent" android:layout_height="wrap_content" /> </android.support.design.widget.appbarlayout> <android.support.v4.view.viewpager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="com.hsp.inventory.helper.patchedscrollingviewbehavior" android:padding="3dip" android:transitionname="@string/transition_name" /> <android.support.design.widget.floatingactionbutton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_marginbottom="@dimen/fab_margin_bottom" android:layout_marginright="@dimen/fab_margin_right" android:src="@drawable/menu_add" app1:fabsize="normal" /> </android.support.design.widget.coordinatorlayout>
output image:
how can resolve issue. screen shot taken moto-g (lollipop)
Comments
Post a Comment