android-collapsingtoolbarlayout

How to show Toolbar's logo, icon, title, subtitle when wrapped in a CollapsingToolbarLayout?

ⅰ亾dé卋堺 提交于 2019-12-18 12:35:04
问题 After Android Support Design Library was released, I wanted to implement an effect like a page of Twitter Profile , in which Toolbar 's title and subtitle could be changed as screen scrolled vertically. So I tried to use CoordinatorLayout , AppBarLayout , CollapsingToolbarLayout and Toolbar from Android Support Design Library to achieve this effect. Everything worked as expected except that Toolbar 's content couldn't be showed or changed as I wanted. I should have been wanting to display

Android - Remove shadow between Toolbar and TabLayout

折月煮酒 提交于 2019-12-18 12:31:35
问题 I'm trying to make a layout with CollapsingToolbarLayout . But I do not get one thing. I want to remove the shadow between Toolbar and TabLayout . I've tried several ways and I have not managed to remove the shadow. Can anybody help me? Thank you <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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 CollapsingToolbarLayout Title background

与世无争的帅哥 提交于 2019-12-17 23:29:11
问题 I'm working with the CollapsingToolbarLayout from the new Android Design Support Library. I have set its title and it is working fine, the only problem I still have is that when you scroll, the text is lost, depending on the image in the background. What I'd like to do, is set a background to the CollapsingToolbarLayout title, but I haven't find a way to do it. Is there anyway to achieve this? Thanks! Layout: <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content"

Error inflating class CollapsingToolbarLayout

夙愿已清 提交于 2019-12-17 10:44:54
问题 My CollapsingToolbarLayout crashes because of Error inflating class android.support.design.widget.CollapsingToolbarLayout. I updated the android studio last weekend. Before the updated, it works fine. After I updated it, it crashed. However, I tried to downgrade it to 2.0.0 version and it's not working anymore. My coworker has no problem with the CollapsingToolbarLayout. I am not sure what happened. The error was: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test

CollapsingToolbarLayout doesn't recognize scroll fling

别等时光非礼了梦想. 提交于 2019-12-17 10:13:17
问题 I have created a simple CollapsingToolbarLayout and it works like a charm. My problem is, that if I try to use a fling scroll on the nestedscrollview , it just stops when I release my finger. Normal scrolling works like it should. My activities code is unchanged => auto generated empty activity. (I just clicked on create new empty activity in android studio and edited the XML yet). I read here, that scroll gestures on the imageview itself are buggy, but not, that the scrolling itself is buggy

Whatsapp like Collapsing Toolbar

半腔热情 提交于 2019-12-17 04:57:17
问题 In my app, I would like to implement Whatsapp home page like collapsible toolbar. That is, while scrolling down the list, the toolbar should go up and the tabs should pin at the top. How can I achieve this? Here is my appbar layout <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/appbarLayout" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.design.widget.CollapsingToolbarLayout android:layout

Android: make CollapsingToolbarLayout title transparent to avoid overlap with SearchView

南笙酒味 提交于 2019-12-14 04:00:55
问题 I'm facing the same problem described in this SO question (if my searchview is open and I collapse my toolbar, the two overlaps). So I was trying to implement the approved answer, making my title transparent when it is collapsed. Solution is only partially working for me, because I'm having the same problem described in the message n. 11 in the report of this bug here. In short, the color of my title doesn't return to white if the searchview is open when the toolbar is collapsed. This is my

how can I add the viewpager and tablayout under the collapsing toolbar layout

元气小坏坏 提交于 2019-12-14 03:51:07
问题 I tried all solution for this problem in stackoverflow but I got nothing helpful . First of all , I want to achieve layout like this or similar to it : And according to some question in stackoverflow like this I'm able to achieve this layout : with this xml file : <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="match_parent"

Fragment with CollapsingToolbar showing Activity Toolbar

和自甴很熟 提交于 2019-12-14 02:43:24
问题 I have a CollapsingToolbarLayout in my fragment and is showing fine, the thing is that App Toolbar is also being showed. I try this solution: Can I use CollapsingToolbarLayout in a Fragment from Navigation Drawer but is not working for me... This is my fragment AppBarLayout: <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=

How do you change the color of collapsing toolbar when it's collapsed?

旧街凉风 提交于 2019-12-14 01:42:23
问题 I have a collapsing toolbar, but I cannot for the love of god figure out why its not changing to the color i want it to as it collapses...Here is my xml code the collapsing toolbar. <?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:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent"> <android