android-coordinatorlayout

issues with coordinator layout in android ?

大兔子大兔子 提交于 2019-12-12 00:53:20
问题 i m using coordinator layout to achive this video VIDEO REQUIREMENT NOW 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" android:id="@+id/tabanim_maincontent" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout

Set Custom List view inside NestedScrollView

别来无恙 提交于 2019-12-12 00:33:07
问题 I am moving to Coordinator Layout and Nested ScrollView and i know to make it work i need to use recycle r view but the thing is i really want to make it possible with old List View is there any way i can achieve that Here is what i am doing <?xml version="1.0" encoding="utf-8"?> <!-- NOT SET HERE: android:fitsSystemWindows="true" --> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android

How to align TextView + RecyclerView at screen bottom within ScrollView?

血红的双手。 提交于 2019-12-11 16:20:23
问题 I have the next structure of XML file in my Fragment. I have an issue with RelativeLayout 3 (id=referralsContainer). It consist of textView (id=inviteText) + RecyclerView (id=rv_referrals). I need to show textView at the bottom of screen with any resolution. And after that textView must be RecyclerView with elements (when user will scroll down). I tried to do something like this in method, when all elements of recyclerview loaded, but recyclerview is replaced in different positions by Y axe

The Coordinator layout doesn't Scroll up for a specific position

☆樱花仙子☆ 提交于 2019-12-11 06:19:24
问题 I am facing this issue with coordinator layout about scrolling. For a specific position it wont scroll buy, After clicking on Add new button a list element gets added below. And if we scroll that item the coordinator layout behaves normally like expand and shrink. But when we try to scroll up by touching on the layout main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk

CollapsingToolbarLayout like PlayStore app

两盒软妹~` 提交于 2019-12-11 05:54:14
问题 I am trying to have the same behavior as the PlayStore app in terms of scrolling. Here is the gif of what I want to achieve https://giphy.com/gifs/MymB51M84gpdS. What I have is the following: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout> <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="@dimen/height" android:fitsSystemWindows="true"> <android.support.design.widget.CollapsingToolbarLayout style="

Android CoordinatorLayout + TabLayout + ViewPager Toolbar not hidding on scroll

依然范特西╮ 提交于 2019-12-11 05:18:46
问题 I'm having a problem hidding the Toolbar when I scroll. I have two layouts that I'll show here. I have the appBar and ViewPager wrapped inside a LinearLayout so the ViewPager fits entirely in the screen. I want to implement the Google Material Design Guidelines and hide the Toolbar when I scroll the ViewPager (it contains a RecyclerView in it) and let the TabLayout stay on the screen. I think the main problem may be the LinearLayout, but when I'm not using it it doesn't work also. Also, the

Hiding BottomNavigationView on scroll

自闭症网瘾萝莉.ら 提交于 2019-12-11 05:15:33
问题 I am implementing the bottom navigation bar of the material design https://material.io/guidelines/components/bottom-navigation.html It suggests that while scrolling down , we should hide the bar , and show it while scrolling up. I am a little lost in how to go about this. Should I have to manually do that , or there is some functionality built in inside the view that would do it. Do I have some behaviour for this ? (as the bottomnavigation is a child of coord layout) 回答1: This is work for me.

BottomSheetDialog get Behavour always returns null

爱⌒轻易说出口 提交于 2019-12-11 02:44:33
问题 I working with BottomSheetDialog and i have to get Behavior so can set setBottomSheetCallback() to handle some stuff. As google says i had to put Coordinator on parentView and add behavior to it. I defined CoordinatorLayout in MainActivity (root activity) 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" xmlns:tools="http://schemas.android.com/tools" android:tag=

Coordinator Layout and Relative Layout issue

点点圈 提交于 2019-12-11 01:05:56
问题 When you create a blank Activity in android studio, this is the given 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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="com.example.MainActivity"> <android.support.design

How to set drawerlayout below toolbar with coordinator layout

99封情书 提交于 2019-12-10 15:28:46
问题 I have an xml like this, when I show drawer layout, It overlays Toolbar , I want my drawerlayout below my Toolbar , I cannot figure out how to do it, I tried lots of stuff and I tried it all day long. How can I use CoordinatorLayout with DrawerLayout without overlapping the Toolbar ? This is my actionbar style: <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/ColorPrimary</item> <item name="colorPrimaryDark">@color/ColorPrimaryDark</item>