-2
私はサポートデザインの知識を勉強しています。私はenterAlwaysCollapsedの使用を理解できません。プルダウンで絡み合っているようですが、何も変わっていません。 それでは、enterAlwaysCollapsedの使用方法は何ですか?私にデモを表示できますか?何がenterAlwaysCollapsedの使用です
私はサポートデザインの知識を勉強しています。私はenterAlwaysCollapsedの使用を理解できません。プルダウンで絡み合っているようですが、何も変わっていません。 それでは、enterAlwaysCollapsedの使用方法は何ですか?私にデモを表示できますか?何がenterAlwaysCollapsedの使用です
私自身でそれに答えさせてください。 まず、アクティビティのテーマはAppThemeです。
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
そして、fitsSystemWindowsをxmlに設定しないでください。
スクロールフラグの最後の使用| enterAlways | enterAlwaysCollapsed
最終的な効果は