android-coordinatorlayout

CoordinatorLayout, FAB and container layout conflict

我们两清 提交于 2019-12-04 14:34:03
I have a main activity with a drawer that have a container layout where I replace each fragment with FragmentManager . I want to add a FAB to one of my child fragments that hide/show on scroll but Im not sure what Im doing wrong and get: Layout: <?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.support.design.widget.AppBarLayout android:id="@+id/appBar" android

RecyclerView is below toolbar

試著忘記壹切 提交于 2019-12-04 12:37:58
Problem: I have a RecyclerView and a Toolbar in a CoordinatorLayout . The RecyclerView is below the Toolbar but it should not. Question: How can I achieve that the RecyclerView and the Toolbar have one border? activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:fitsSystemWindows="true"> <android.support.design.widget.AppBarLayout android:id="@+id

android: how to add a button with text inside collapsing toolbar

醉酒当歌 提交于 2019-12-04 12:22:36
问题 How to achieve the following layout. I could achieve without the add button. But how to add the ADD buttom and add button should disappear along with parallax of the image when scrolled up. What i found is floating action buttons dont have facility to add text. I have to use button only. My xml layout without the add button: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id

How to push up an existing view when snackbar is displayed?

岁酱吖の 提交于 2019-12-04 12:14:08
问题 This is my attempt to push the "NEXT" button upwards when the snackbar is visible: As you can see, it doesn't work as planned. It appears as if the textview was pushed up and behind the RelativeLayout and then reappears when the snackbar disappears. Instead, what I want is the textview to appear pushed up (so it is above the snackbar ) and then come back down when the snackbar disappears. I have also created a small github repo to demonstrate this: https://github.com/Winghin2517/TestFabMotion

Custom auto hide floatingActionButton behavior is not working

丶灬走出姿态 提交于 2019-12-04 10:08:47
I'm trying to hide a FloatingActionButton when a NestedScrollView scroll down, and revealed itself when NestedScrollView scroll up. Here is my layout: <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

adjustResize does not work with CoordinatorLayout

走远了吗. 提交于 2019-12-04 09:33:53
问题 I have the following layout in my android app but I have a problem with windowSoftInputMode="adjustResize" in the activity: The LinearLayout named "container" contains multiple EditTexts but when one of them has focus and the keyboard appears, the Activity does not resize and the EditText is hidden behind the keyboard. I think this has something to do with the CoordinatorLayout but I can't figure out what is wrong with it. <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget

CoordinatorLayout + TabView + AnimateView(From Top)

和自甴很熟 提交于 2019-12-04 08:30:53
问题 Yesterday I am playing with CoordinatorLayout with TabView 1) What is my target ? CoordinatorLayout with TabView When I scroll up at that time One View As show in .GIF move down . and Stick on the Top of the TabView (inside AppBar). 2) Where I reached ? CoordinatorLayout with TabView with pretty scrolling. TabView with Appbar Stop Scrolling At Top after Then Scroll RecyclerView. 3) Where I stuck ? When I scroll Up One View Scroll Down but TabView Stick At Top not like 1st gif . 4) Code

FrameLayout Shown Above AppBarLayout

断了今生、忘了曾经 提交于 2019-12-04 07:30:01
I have a simple CoordinatorLayout with a AppBarLayout and FrameLayout , but the FrameLayout contents are being displayed over the AppBarLayout regardless of the layout_behavior attribute on the FrameLayout . I've tried adding that attribute elsewhere (like on my RecyclerView ), but it's the same behavior. Here's a picture to show what I mean. Activitiy Layout: <?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"

Using CoordinatorLayout in fragments with ActionBar in Activity

三世轮回 提交于 2019-12-04 05:54:33
I have problem using Android Design Support Library. I would like to use CoordinatorLayout inside fragment for FAB and ActionBar animations while scroll, but I having ActionBar in activity layout and my CardGridStaggeredView and FAB in fragment. activity layout: <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" xmlns:app1="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer" android:layout_width="match

Android Tabbed Activity Bottom off Screen

北城以北 提交于 2019-12-04 04:29:34
问题 anybody an idea why the bottom is off screen in a new generated tabbed activity in android? ViewPager is too long for the total screen <android.support.v4.view.ViewPager android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> Result all views in the child Fragments are off screen by the 55dp if you align them to the bottom of the screen. Thanks, Paul P.S.: Full XML of the generate code