की बजाय सामग्री के स्क्रॉल पर टैबलेआउट छुपाएं, मैं अपनी सामग्री को स्क्रॉल करने पर टैबलाउट को छिपाना चाहता हूं। वर्तमान में मैंने नेट की खोज की लेकिन मुझे नमूने मिले जो टूलबार को छुपाते हैं, लेकिन मैं टैबलाउट को छिपाना चाहता हूं। तो कृपया मेरी मदद करो। मैंने कोड के नीचे कोशिश की।टूलबार
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/id_appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<android.support.v7.widget.Toolbar
android:id="@+id/id_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways"/>
<android.support.design.widget.TabLayout
android:id="@+id/id_tabs"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
style="@style/MyCustomTabLayout"/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/id_viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
यहां उदाहरण के अनुप्रयोगों है: https://play.google.com/store/apps/details?id=com.contextlogic.wish https://play.google.com/store/apps/details?id=co.vine.android
क्या आप अपना लक्ष्य स्पष्ट कर सकते हैं: टूलबार और टैबलाउट या बस टैबलाउट (और टूलबार दृश्यमान छोड़ें) दोनों को छुपाएं? – DmitryArc
हां बिल्कुल। मैं टैब को छिपाना चाहता हूं और टूलबार को दृश्यमान के रूप में छोड़ना चाहता हूं। –