पर एफएबी बटन को एंकर नहीं कर सकता है। मैं Google मानचित्र की तरह नीचे की शीट दृश्य में एक FAB बटन संलग्न करने का प्रयास कर रहा हूं। हालांकि मैं यह काम नहीं कर सकते,एंड्रॉइड नीचे की शीट
इस फैब बटन के कोड है:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email"
app:layout_anchor="@+id/nestedscrollview" --> BottomSheet view ID
app:layout_anchorGravity="bottom|end"
app:elevation="4dp"
/>
और इस फैब घोषणा से BottomSheet देखें
<android.support.v4.widget.NestedScrollView
android:id="@+id/nestedscrollview"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
tools:context="com.pub.uac.ui.location.LocationActivity"
android:background="@color/background_white_trasnparent"
>
...
</...
इस उदाहरण को जिथब पर कोशिश करें .............. https: //github.com/chrisbanes/cheesesquare –
मैं भी वही चीज़ कोशिश कर रहा हूं जिसे आप हल कर चुके हैं? – sector11
अभी तक नहीं, अभी भी यह पता लगाने की कोशिश कर रहा है कि आईडी –