android-coordinatorlayout

Android Layout: Horizontal Recyclerview inside a Vertical Recyclerview inside a Viewpager with Scroll Behaviors

时光怂恿深爱的人放手 提交于 2019-11-26 12:53:52
问题 This is the app I\'m trying to build with all the elements mapped out below: Everything works, however, I want the inner horizontal recyclerview not to capture any of the vertical scrolls. All vertical scrolls must go towards the outer vertical recyclerview, not the horizontal one, so that the vertical scroll would allow for the toolbar to exit out of view according to it\'s scrollFlag. When I put my finger on the \"StrawBerry Plant\" part of the recyclerview and scroll up, it scroll out the

Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

时间秒杀一切 提交于 2019-11-26 09:07:31
问题 I am getting the following error while building the project. haven\'t used CoordinatorLayout in this project. just added as a dependency in build.gradle : I am using Android Studio 3.2 Canary 4. LogCat AGPBI: {\"kind\":\"error\",\"text\":\"Program type already present: android.support.design.widget.CoordinatorLayout$Behavior\",\"sources\":[{}],\"tool\":\"D8\"} :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution

Add views below toolbar in CoordinatorLayout

夙愿已清 提交于 2019-11-26 08:45:01
问题 I have the following layout: <android.support.design.widget.CoordinatorLayout android:id=\"@+id/main_content\" xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:app=\"http://schemas.android.com/apk/res-auto\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"> <android.support.design.widget.AppBarLayout android:id=\"@+id/appBar\" android:layout_width=\"match_parent\" android:layout_height=\"wrap_content\" android:theme=\"@style/ThemeOverlay.AppCompat

Android - footer scrolls off screen when used in CoordinatorLayout

心不动则不痛 提交于 2019-11-26 03:49:37
问题 I have an AppBarLayout that scrolls off screen when scrolling a RecyclerView . Below the RecyclerView there is a RelativeLayout that is a footer. The footer is shown only after scrolling up - it behave like it has layout_scrollFlags=\"scroll|enterAlways\" but it doesn\'t have any scroll flags - is it a bug or am I doing something wrong? I want it to be always visible before scroll after scroll Update opened a google issue on this - it was marked \'WorkingAsIntended\' this still doesn\'t help

How can I add the new “Floating Action Button” between two widgets/layouts

寵の児 提交于 2019-11-26 00:12:48
问题 I guess you have seen the new Android design guidelines, with the new \"Floating Action Button\" a.k.a \"FAB\" For instance this pink button: My question sounds stupid, and I have already tried a lot of things, but what is the best way to put this button at the intersection of two layouts? In the above exemple, this button is perfectly placed between what we can imagine to be an ImageView and a relativeLayout. I have already tried a lot of tweaks, but I am convinced there is a proper way to