android-coordinatorlayout

CoordinatorLayout Toolbar invisible on enter until full height

我是研究僧i 提交于 2019-11-27 07:48:46
问题 Included in my activity_main.xml 's DrawerLayout is a CoordinatorLayout called content_layout.xml . Within this CoordinatorLayout is my AppBarLayout containing a Toolbar , then a LinearLayout for a fragment's content. When a fragment containing a RecyclerView is scrolled up, the toolbar exits successfully. The problem lies when scrolling down to bring the toolbar back. The toolbar does not appear until the full height of the toolbar has been scrolled and as such leaves an unsightly white box

CoordinatorLayout using the ViewPager's RecyclerView

北城余情 提交于 2019-11-27 06:43:53
I am using the view CoordinatorLayout from android.support.design . I want to attach the app:layout_behavior to the fragment's RecyclerView ? In the example given by Google, they only attach it in the RecyclerView of the same XML file where the CoordinatorLayout was attached. Is there a way to attach CoordinatorLayout to the fragment's RecyclerView within the ViewPager ? The sample is in this blog post at Android Developers blog. androholic Chris Banes has posted a sample on Github which shows exactly what you want to do. Here is the xml file that defines how one can indirectly attach a

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

北慕城南 提交于 2019-11-27 06:24:40
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 toolbar: If I put my finger on the horizontal scrollview and scroll up, it does not scroll out the toolbar

Add icon with title in CollapsingToolbarLayout

我只是一个虾纸丫 提交于 2019-11-27 05:29:30
问题 I am using CoordinatorLayout to get this effect : Here is the layout code: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout 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:id="@+id/coordinatorRootLayout" android:background="@android:color/background_light" android:fitsSystemWindows="true" > <android.support

NestedScrollView and CoordinatorLayout. Issue on Scrolling

久未见 提交于 2019-11-27 05:24:06
问题 I have a strange issue with the CoordinatorLayout and the NestedScrollView (with the design support library 22.2.0) Using a content smaller than NestedScrollView I should have a fixed content. However trying to scroll up and down the content I can obtain that the content is displaced and never again in their own place. Here a little sample: Here the code: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

webview height grows indefinitely inside a nestedScrollView

╄→尐↘猪︶ㄣ 提交于 2019-11-27 02:53:30
问题 This is my layout. When i load google.com, the webview's height keeps growing indefinitely. The onSizeChange function of the webview keeps getting called and i can see the webview keeps expanding indefinitely. I've tried 22.2.1 and 23.1.0 of the design and appcompat libraries and no effect. Any solution ? :-| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width=

Theme Error - how to fix?

你离开我真会死。 提交于 2019-11-27 02:18:12
Tried Many Solution But No Helped Ref : Failed to find style 'coordinatorLayoutStyle' in current theme But not Helped Render Problem: Failed to find style 'coordinatorLayoutStyle' in current theme Tip: Try to refresh the layout. build.gradle file of my project is : buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject

Hide FloatingActionButton on scroll of RecyclerView

倖福魔咒の 提交于 2019-11-27 00:34:40
问题 I want to hide/show FloatingActionButton on scroll of RecyclerView . My XML layout : <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" > <android.support.v7.widget.RecyclerView android:id="@+id/recyclerview_eventlist" android:layout_width="match_parent" android:layout_height="match_parent" /> <android.support.design.widget.FloatingActionButton android:id="@+id/fab_createevent" android:layout_width="wrap_content" android

Add views below toolbar in CoordinatorLayout

对着背影说爱祢 提交于 2019-11-26 23:25:24
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.ActionBar"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android

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

放肆的年华 提交于 2019-11-26 21:49:03
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 failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com.android.builder.dexing