android-collapsingtoolbarlayout

collapsing toolbar layout like google play store

社会主义新天地 提交于 2020-01-09 09:12:11
问题 i want to make a collapsing toolbar layout like google play store. like this: https://sendvid.com/ugjspx8r and here is my layout: http://sendvid.com/s4mx3xem how can i do that with new android support library? here is my layout xml file: <android.support.design.widget.CoordinatorLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android

Toolbar not scrolling when using collapsing toolbar effect

杀马特。学长 韩版系。学妹 提交于 2020-01-06 19:35:10
问题 I am using below layout to use collapsing toolbar effect but not able to expand toolbar.I want to expand the toolbar as given here for collapsing toolbar effect. https://guides.codepath.com/android/Handling-Scrolls-with-CoordinatorLayout <android.support.design.widget.CoordinatorLayout android:id="@+id/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=

Why latest version constraintLayout doesn't work in nestedScrollView with CoordinatorLayout

余生长醉 提交于 2020-01-05 05:42:24
问题 i have using coordinatorlayout with collapsingToolbar for parallax effect when scroll and content view (text about page) bottom of collapsingToolbar in nestedScrollView. my problem is constraint layout seems incomplete inside nestedScrollView if i use LinearLayout in nestedScrollView content view everything is showing. but i using ConstraintLayout in nestedScrollView content view is seems incomplete as you can see below code content view made with constraint layout <androidx.constraintlayout

Change background color of title in CollapsingToolbarLayout using scrim or color overlay

孤街浪徒 提交于 2020-01-03 02:00:29
问题 I have been dealing for a while now with changing the color of the background of the title in the collapsingtoolbarlayout but only when is expanded. Why I want is either have a transparent scrim background or a color overlay (like the documentation says): I want this behaviour (or a protective screen with transparent background is also possible), the thing is I found exactly the same question on this post: Android CollapsingToolbarLayout Title background I've applied this solution to my

CollapsingToolbarLayout in fragments

梦想与她 提交于 2020-01-02 07:28:08
问题 I have an AppCompatActivity that contain fragments and it controls the replacing of many fragments. I want to show differents toolbar depending of fragment to show. This is the code for main_activity.xml: <android.support.v4.widget.DrawerLayout 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/drawer" android:layout_width="match_parent" android:layout_height="match

Collapsing Toolbar. How to adapt custom Layout instead of default ImageView

穿精又带淫゛_ 提交于 2020-01-02 06:16:10
问题 I want to make collasping toolbar, in which is my custom Layout . On the image below is presented use of new released design.support lib. On the img.1, the element (ImageView) is disappearing. In my project I want to disappear a Layout. Because inside Layout will be ViewPager it can not be resized like the image, it should dissolve in Toolbar background - should become transparent. img. 1 Additionaly I want to open/hide ToolbarLayout by moving ToolbarFooter - belt to move - bright blue Layout

PreferenceFragment no scroll in CollapsingToolbarLayout

感情迁移 提交于 2020-01-01 09:17:53
问题 I have a problem with PreferenceFragment and CollapsingToolbarLayout. I have a base 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:id="@+id/mainLayout" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".activities.base.BaseActivity"> <android.support.design.widget.AppBarLayout

Stop CollapsingToolbar from collapsing after NestedScrollView runs out of content to scroll

孤者浪人 提交于 2019-12-31 11:40:32
问题 In Android, how can I get the CollapsingToolbar to stop collapsing if the NestedScrollView runs out of content to scroll? This functionality currently exists in the Contacts app on Android 5.1.1. However, in my code when the NestedScrollView stops scrolling the toolbar continues to collapse leaving gap between the two. <?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

CollapsingToolbarLayout with fixed/pinned Toolbar and functionality of “enterAlways”

淺唱寂寞╮ 提交于 2019-12-31 04:25:08
问题 I have a standard "CollapsingToolbarLayout" implementation based on material design guidelines. With the the settings below I was able to achieve behavior depicted on the picture: <CoordinatorLayout ...> <AppBarLayout ...> <CollapsingToolbarLayout app:layout_scrollFlags="scroll|enterAlways" ...> <Toolbar app:layout_collapseMode="pin"> </Toolbar> <MyCustomContent01 ... /> </CollapsingToolbarLayout> </AppBarLayout> <MyCustomContent02 ... /> </CoordinatorLayout> Question How to achieve the

CollapsingToolbarLayout - Hide ImageView when Expanded, show when Collapsed

半世苍凉 提交于 2019-12-30 11:31:48
问题 I would like to hide an ImageView (logo) when CollapsingToolbarLayout is expanded and only show the ImageView when the CollapsingToolbarLayout is collapsed. (I know how to do the reverse of this question). As you can see from the screenshot below. The big mast head is actually one big logo, image on left and then company name on right. In collapsed mode I only want to show a small thumbnail of the logo. How can I accomplish this in XML or code please? Code & screenshots below: <android