मैं Google Play store ऐप के रूप में एक्शन बार/टूलबार को दिखाना और छिपाना चाहता हूं। मैं शीर्ष पर स्लाइडिंग टैब का उपयोग कर रहा हूं और प्रत्येक टैब की सामग्री दिखाने के लिए पेजर को देख रहा हूं।दृश्य पेजर सामग्री स्क्रॉल करते समय एक्शन बार दिखाएं और छुपाएं
मेरे लेआउट एक्सएमएल:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout style="@style/HeaderBar"
android:id="@+id/headerbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/toolbar_no_bg"
android:id="@+id/toolbar_actionbar"/>
<com.fauzie.sample.tabsspinner.widget.SlidingTabLayout
android:background="@color/tab_background"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/headerbar">
</android.support.v4.view.ViewPager>
</RelativeLayout>
अग्रिम धन्यवाद यहाँ संदर्भ के लिए Google Play स्टोर एप्लिकेशन का स्क्रीनशॉट है।
https://github.com/flavienlaurent/NotBoringActionBar
एक चाल यहाँ शामिल नहीं है:
देखते हैं कि यह [जवाब] (http://stackoverflow.com/a/30962301/1576416) –