CollapsingToolbarLayout
ve iki FloatingActionButtons
içim var. Bu FAB'ler yalnızca Toolbar
genişletildiğinde görünür. Yıkıldığında, gizlenirler. Araç çubuğunun daraltılmış olması durumunda onlara görünmelerine ihtiyacım var. Nasıl yapabilirim?CollapsingToolbarLayout ve FloatingActionButton
teşekkürler ipuçları için çok ... doğrudan cordinatorLayout çocuğu ve kullanım düzeni davranış olarak Fab'leri takmalısınız
<?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:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".CalendarEventInsUpdActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/app_bar_height"
android:fitsSystemWindows="true"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="parallax"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_calendar_event"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/btnSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_menu_save"
app:backgroundTint="@android:color/holo_green_light"
app:layout_anchor="@id/app_bar"
app:layout_anchorGravity="bottom|center"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_menu_revert"
app:backgroundTint="@android:color/holo_red_light"
app:layout_anchor="@id/app_bar"
app:layout_anchorGravity="bottom|end"/>
</android.support.design.widget.CoordinatorLayout>
burada –
gösteri ekran görüntüsü ve burada xml xml düzen eklemek ???????? –
degildi buna cevap Gözat –