android-collapsingtoolbarlayout

CollapsingToolbarLayout not collapsing when EditText get focused

不想你离开。 提交于 2019-12-20 17:35:47
问题 I am using CollapsingToolBar inside CoordinatorLayout and I've NestScrollView containing some EditText as child views. What i am facing is when edittext get focused and keybaoard appear my complete view doesn't scroll up. Below is the code and image as output of that layout. <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="@dimen/app_bar_height" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <android

AppBarLayout + TabLayout + CollapsingToolbarLayout + SwipeToRefresh

怎甘沉沦 提交于 2019-12-20 10:53:16
问题 I met a lot of issues related with my problem but nobody I found wanted the behaviour I'm looking for. I want a view pager with tabs and app bar, when the contained fragments are scrollable and are scrolled (toward bottom), I want the app bar to disapear but leave the tabs, when scrolled toward top, to re-apear. some of these fragments contain a SwipeToRefresh Layout (sometimes it causes problems). I tried a lot of configurations that always leave something wrong. for now I don't have the

AppBarLayout + TabLayout + CollapsingToolbarLayout + SwipeToRefresh

故事扮演 提交于 2019-12-20 10:53:08
问题 I met a lot of issues related with my problem but nobody I found wanted the behaviour I'm looking for. I want a view pager with tabs and app bar, when the contained fragments are scrollable and are scrolled (toward bottom), I want the app bar to disapear but leave the tabs, when scrolled toward top, to re-apear. some of these fragments contain a SwipeToRefresh Layout (sometimes it causes problems). I tried a lot of configurations that always leave something wrong. for now I don't have the

Clickable CardView inside NestedScroll doesn't trigger scrolling

╄→尐↘猪︶ㄣ 提交于 2019-12-20 09:36:46
问题 I have a layout with a CoordinatorLayout, and AppBarLayout and a NestedScrollView, inside the NestedScrollView I have multiple CardViews, everything works ok until I set the CardViews to be clickable, then if I start a scroll within a CardView, scroll doesn't work. This 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/main_content" android:layout_width=

Tile not getting center in Collapsed toolbar

别来无恙 提交于 2019-12-20 07:19:04
问题 I tried setting collapsingToolbarLayout.setCollapsedTitleGravity(Gravity.CENTER); collapsingToolbarLayout.setExpandedTitleGravity(Gravity.CENTER); and almost all available links on INTERNET but i am not able to put the title in center of toolbar . plz help ! 回答1: make your Toolbar like this <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:contentInsetEnd="0dp

CollapsingToolbarLayout + TabLayout, strange toolbar title margin

时间秒杀一切 提交于 2019-12-20 03:11:49
问题 I have a srange toolbar title behaviour that I doubt to be valid. collapsed : extended : The strangest part is that the app:titleMarginTop does not have any effect on the title placement. Here is my Xml : <?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:id="@+id/main_content" android:layout

NestedScrollView wont't scroll to the end when used with CollapsingToolbarLayout

为君一笑 提交于 2019-12-18 15:06:29
问题 I want to use NestedScrollView with CollapsingToolbarLayout. In NestedScrollView there is really long content. Unfortunately I can't scroll to the end. Some of this long content is cut. What is strange when I turn screen, scrolling works fine and all content is visible. <android.support.design.widget.CoordinatorLayout android:fitsSystemWindows="true" android:layout_height="match_parent" android:layout_width="match_parent"> <android.support.design.widget.AppBarLayout android:fitsSystemWindows=

NestedScrollView wont't scroll to the end when used with CollapsingToolbarLayout

旧街凉风 提交于 2019-12-18 15:06:03
问题 I want to use NestedScrollView with CollapsingToolbarLayout. In NestedScrollView there is really long content. Unfortunately I can't scroll to the end. Some of this long content is cut. What is strange when I turn screen, scrolling works fine and all content is visible. <android.support.design.widget.CoordinatorLayout android:fitsSystemWindows="true" android:layout_height="match_parent" android:layout_width="match_parent"> <android.support.design.widget.AppBarLayout android:fitsSystemWindows=

Smooth scroll and Fling with NestedScrollView,AppBarLayout and CoordinatorLayout

我只是一个虾纸丫 提交于 2019-12-18 12:53:12
问题 I am working on an application where I'm using AppBarLayout with CollapsingToolbarLayout and NestedScrollView. I have successfully implemented this and it is working fine. Now what i am trying to do is, that on fling(fast swipe up) on the Nestedscrollview it should scroll completely to top. Similarly, on fling(fast swipe down) towards the bottom of the screen, it must scroll all the way to the bottom smoothly. However now, it only gets stuck in between which makes it look ugly. I have tried

Collapsing Toolbar and DrawerLayout

我只是一个虾纸丫 提交于 2019-12-18 12:40:52
问题 I created a layout with parallax effect which I use in a fragment. <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:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <android.support