Ich habe begonnen, auf Android Material Design Support-Bibliothek zu arbeiten, und als Neuling habe ich einige Verwirrungen. Und, brauche deine Hilfe. :)app: layout_scrollFlags = "scroll | enterAlways" funktioniert nicht mit LinearLayout
1) Ist es möglich, layout_scrollFlags="scroll|enterAlways"
mit LinearLayout zu verwenden?
2) Ich möchte ein LinearLayout direkt unter der Symbolleiste. Ich habe es mit AppBarLayout erreicht, aber ich möchte die LinearLayout nicht Toolbar scrollen, um den Inhalt unterhalb von LinearLayout zu scrollen. Die Verwendung von layout_scrollFlags="scroll|enterAlways"
auf LinearLayout funktioniert nicht.
3) Können wir mehr als ein AppBarLayout in CoordinatorLAyout und Toolbar in AppBarLayout verwenden?
<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">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp"
app:layout_scrollFlags="scroll|enterAlways">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 1 " />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 2" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 3" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 4" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 5" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 6" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView : 7" />
</LinearLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
nach SaravInfern Lösung Implementierung ist hier, was ich bisher ...
erreicht
Ich möchte das LinearLayout nach dem Scrollen nicht ausblenden Toolbar – Jaydeep
https://youtu.be/enWVNP3Gifg Ich möchte so etwas, der einzige Unterschied ist, ich möchte LinearLayout und textViews drin und dieses Video hat eine tabLayout – Jaydeep
Ihre Antwort nicht geben Sie die gewünschte Ausgabe ... – Jaydeep