Git Product home page Git Product logo

Comments (10)

hendraanggrian avatar hendraanggrian commented on May 19, 2024

I have some guesses, but it's difficult to pick one without knowing more:

  1. Are you using action toggle from support v7 library?
  2. Are you absolutely sure that such behavior does not appear if you replace SubtitleCollapsingToolbarLayout with regular CollapsingToolbarLayout?
  3. Your phone/emulator OS version and support library version you're using.

from collapsingtoolbarlayout-subtitle.

schott12521 avatar schott12521 commented on May 19, 2024

Sure thing, thanks for the quick response!

  1. I am using action toggle, specifically: ActionBarDrawerToggle
  2. Correct, when using a regular CollapsingToolbarLayout the hamburger icon persisted in the upper left of the action bar regardless or collapsed or expanded state.
  3. I am on an OG Pixel XL with Oreo 8.1 and using 27.1.0 support library version

from collapsingtoolbarlayout-subtitle.

hendraanggrian avatar hendraanggrian commented on May 19, 2024
  1. The thing is, there's 2 versions of ActionBarDrawerToggle, one from android.support.v4.app and another from android.support.v7.app. Which one are you using?
  2. If you replace it with regular back arrow icon (?homeAsUpIndicator attribute). Does the back arrow still behaves the same way? Just wanna make sure if the issue is related to action bar toggle at all.

from collapsingtoolbarlayout-subtitle.

schott12521 avatar schott12521 commented on May 19, 2024
  1. I'm using android.support.v7.app.ActionBarDrawerToggle
  2. Yes, the same issue happens with just homeAsUp Enabled as well

I can still click where the hamburger should be and expand the nav drawer, it is not visible though.

from collapsingtoolbarlayout-subtitle.

hendraanggrian avatar hendraanggrian commented on May 19, 2024

This is news to me, I'll try it myself and will get back to you with the result in couple days (sorry, I'm currently working on other libraries).

from collapsingtoolbarlayout-subtitle.

schott12521 avatar schott12521 commented on May 19, 2024

Alright sounds great, let me know if I can be of any assistance. The only thing that might help so far is that I was looking at the Debug Overdraw screen and with the normal Collapsing Layout, the title warps from being a box of the full width of the device, to just the width of the text. That does not happen with the Subtitle Collapsing Layout, so maybe we need to change the width? Thank you!

from collapsingtoolbarlayout-subtitle.

hendraanggrian avatar hendraanggrian commented on May 19, 2024

Hi, I've tested example app with back icon (homeAsUpIndicator) enabled:

screenshot_1523203661
screenshot_1523203667

Safe to say I am unable to recreate the issue you are experiencing. Could you please screenshoot your screen?

from collapsingtoolbarlayout-subtitle.

schott12521 avatar schott12521 commented on May 19, 2024

Sure! Here is my expanded view: Expanded

and here is my collapsed: Collapsed

I'm not doing anything special with my subtitle collapsing layout, its more or less a standard / out of the box setup. Pixel OG, Android 8.1.0 latest security patch. I will try to get a video of collapsing and what it looks like so maybe we can use that to bug fix? Let me know what else I can do to help.

Are you able to get it to work with a navigation hamburger as well or just the homeAsUpIndicator?

Also of note is that I have the same problem without the nav drawer, the back arrow is covered as well if I have setHomeAsUpIndicator enabled.

from collapsingtoolbarlayout-subtitle.

schott12521 avatar schott12521 commented on May 19, 2024

Damn. Its the little things that can really mess up your development, lol. My issue was that I was setting:

android:paddingBottom="50dp"

which was hiding the icon. Thanks for all of the assistance / great library!

from collapsingtoolbarlayout-subtitle.

hendraanggrian avatar hendraanggrian commented on May 19, 2024

Cool! Let me know when you experience other issues.

from collapsingtoolbarlayout-subtitle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.