android-coordinatorlayout

Floating Action Button not showing fully inside a fragment

一笑奈何 提交于 2019-11-27 17:17:38
I am using FAB button along with RecyclerView in a Fragment. This Fragment is an instance of a TabViewPager. I am having a issue with the FAB button. I have placed the RecyclerView and the fab button inside a FrameLayout, where the FAB buttton is positioned bottom right. Now the problem that I am facing is the FAB button is not fully visible. Its half of the portion is hidden as shown in the screenshot below. Can any one help me to solve this issue. Thanks in advance. Note: The FAB is aligning properly once it is scrolled. The problem arises only if it is ideal (before scrolling done).

How to mimic Google Maps' bottom-sheet 3 phases behavior?

爷,独闯天下 提交于 2019-11-27 16:37:37
Background I'm assigned to make a UI that behaves similar to how Google Maps shows a bottom-sheet for a found result. It has three different phases: Bottom content. The upper area is still touchable and won't scroll anything at the bottom Full screen content, while the upper area has a large header. Full screen content, while the upper area has just the toolbar. Here's what I'm talking about on Google Maps: The problem Thing is, the bottom sheet isn't a part of the design library yet (though it was requested, here ). Not only that, but the UI seems quite complex and need handling of the

Show/hide BottomNavigationView on scroll in CoordinatorLayout with AppBarLayout

筅森魡賤 提交于 2019-11-27 15:34:59
I am trying to use both AppBarLayout and BottomNavigationLayout in a single CoordinatorLayout and I'm having difficulties hiding the BottomNavigationLayout as required by the material guideline . I mean something like this: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="false"> <android.support.design.widget.AppBarLayout android:id="@+id/app_bar" android

How to put RelativeLayout inside CoordinatorLayout

蹲街弑〆低调 提交于 2019-11-27 14:36:16
问题 I'm trying to recreate the search box as it is in Airbnb Android app. So I'm using CoorinatorLayout with Toolbar and RecyclerView . But when I insert something inside the Coordinator besides those two things, it doesn't show up. Here is my code: <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/slidingLayout" android:layout_width="match_parent" android:layout_height=

How to disable scrolling of AppBarLayout in CoordinatorLayout?

心已入冬 提交于 2019-11-27 12:25:06
I have MapFragment with parallax effect inside AppBarLayout : I want to disable scrolling on AppBarLayout , because it is not possible to move across map, since touch evenys on the map are always handled as scroll events. I would like to handle collapsing of AppBarLayout by scrolling RecyclerView only, which is on the bottom of the screen. This is my xml: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" android:theme="@style

CoordinatorLayout inside another CoordinatorLayout

99封情书 提交于 2019-11-27 11:29:07
CorodinatorLayout inside another CoordinatorLayout such that scrolling the child-view should also scroll the Parent CoordinatorLayout . I have a coordinatorLayout with ViewPager that contains different Fragment such that on Scroll will hide the tabLayout I have another coordinatorLayout that has a viewPager . This fragment is inflated in ViewPager of parent fragment(parent Coordinator layout ). The problem is onScrolling the child fragment in childViewpager only reflects in coordinator layout of child fragment and not in the Parent coordinator layout that I need to do to hide the tablayout .

Android - the item inside RecyclerView can't be clicked after scroll

穿精又带淫゛_ 提交于 2019-11-27 11:22:02
I just upgraded to API 26 and support library 26.0.2. But I found that my RecyclerView items is not clickable right after the scrolling. If you wait for a second, it will work. But if you click the item immediately, it won't. Even if the RecyclerView is not scrolling at all(e.g. has scrolled to the top). When I downgraded to support library 25.4.0 everything goes fine again. The key point is that my RecyclerView is in a CoordinatorLayout and has a SCROLL_FLAG_SCROLL flag on my Toolbar of the AppBarLayout . If I don't use this flag, then this problem will disappear. So I think it's a hidden

ListView not expanding inside NestedScrollView

爱⌒轻易说出口 提交于 2019-11-27 10:47:19
问题 I am using CoordinatorLayout in my activity page. In that there is ListView below the app bar. But its not working when I use ListView instead of NestedScrollView . And if I put ListView inside NestedScrollView , ListView is not expanding 回答1: For the CoordinatorLayout to work properly you need the scrolling child to implement NestedScrollingChild. Such classes are NestedScrollView and RecyclerView . To say it short - just use a RecyclerView for your scrolling content and it'll work correctly

What is CoordinatorLayout?

梦想的初衷 提交于 2019-11-27 09:49:39
问题 Just had a look at the demo app of new Android support design library. It's provided by Chris Banes on github. Throught the app, CoordinatorLayout is used Heavily. Also, many of the support design library classes such as FloatingActionButton , SnackBar , AppBarLayout etc. behaves differently when used inside CoordinatorLayout . Can someone please shed some lights on what is CoordinatorLayout and how it is different from other ViewGroup s in android, or at least provide correct path towards

CoordinatorLayout + AppBarLayout + NavigationDrawer

好久不见. 提交于 2019-11-27 09:23:23
问题 I have a layouting problem when combining CoordinatorLayout with an AppBarLayout and a NavigationDrawer . The problem is, that the NavigationDrawer and it's content are hidden behind the toolbar. I have already did a lot of research and tried a lot of restructuring, but none of the "solutions" fixed my issue. A demonstration can be found in this little Webm video: https://www.dropbox.com/s/i5zfc2x2ts2fws7/navigation_drawer_stackoverflow32523188.webm?dl=0 The base style is Theme.AppCompat