आप मैं तुम्हें this awesome tutorial पालन करने के लिए डिजाइन लाइब्रेरी के बारे में यह और अन्य दिलचस्प बातें लागू करने के लिए सलाह देते हैं CollapsingToolbarLayout
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsingToolbarLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:expandedTitleMarginStart="64dp"
app:contentScrim="?attr/colorPrimary">
<CalendarView
android:layout_width="match_parent"
android:layout_height="256dp"></CalendarView>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:minHeight="?attr/actionBarSize"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_collapseMode="pin"/>
</android.support.design.widget.CollapsingToolbarLayout>
को एक बार देख ले सकते हैं। उम्मीद है की यह मदद करेगा।
स्रोत
2015-09-26 16:53:11
न्यूनतम स्तर एपीआई ढहने वाला टूलबार क्या समर्थन करता है? – 55597
डिजाइन समर्थन lib का इसका हिस्सा अब 2.3 और उससे ऊपर का समर्थन करना चाहिए। – Varundroid