GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — About windowSoftInputMode, DrawerLayout and issue #95 · Issue #183 · mikepenz/MaterialDrawer

About windowSoftInputMode, DrawerLayout and issue #95 #183

New issue
Copy link
New issue
Copy link
Closed
Closed
About windowSoftInputMode, DrawerLayout and issue #95#183
Copy link
Assignees
mikepenz
Labels
enhancementgood to know

Description

@raguirre
raguirre
opened on Apr 4, 2015
Issue body actions

First of all, Mike you are a genius for solving issue #95. I'm so thankful you solved it, I've been banging my head for 3 days now trying to understand just what was happening.

Seeing what Google is doing with most of its apps, there is no reason to completely remove the drawer from an activity that makes use of the keyboard, but if they are doing it it just seems to me they're aware of the situation, and along with the fact that nowhere in the documentation could I find that these 2 scenarios are incompatible, leads me to believe that this is a genuine bug within DrawerLayout. This, and the fact that I tested an activity without a drawer but with translucent status bar and it resized without a problem. I will look into it and see if I can file a bug.

Here's my request:
I would like an instance of the KeyboardUtil to be added by default to all new drawers being created. From what I can tell, there's no downside to it. This way, people who have no idea about the bug won't even realize there's a bug at all.

If there is indeed a downside to it, then I think it would be just fair to put a warning in the readme or a mention about it in the wiki. After hours of Google searches I could not find anywhere that the bug was related to DrawerLayout. I was just lucky enough to find that you had already hacked it.

Nevertheless, thanks again for solving the issue and for making this amazing library.

EDIT:
Okay nevermind, after further testing of the KeyboardUtil in my main activity which holds a ViewPager, I do see some noticable frame drops when I scroll around the different pages because of the OnGlobalLayoutListener. So I thought it would be a good idea to have the option to add and remove the listener on demand, as it could only be needed in some fragments, and removing it while it's not needed will improve performance. Something like activateListener() and deactivateListener(). Thanks :)

Activity

  1. mikepenz commented on Apr 5, 2015

    @mikepenz
    mikepenz
    on Apr 5, 2015
    Owner
    More actions

    @raguirre thanks for the detailed description.

    When i tried to solve this issue i also searched a lot for any documentation or solution how to solve it. but it seems that as soon as you use a newer api version and the FULLSCREEN flag that any functionality of the keyboard stuff like adjustView won't work anymore.

    So it really makes sense to add this to the drawer you are right. having a keyboard is a common task and if there are issues people won't find the solution. (or they search for 4+ hours)

    i was afraid adding it as default because i did not know if it will cause any troubles. but for now it seems really stable.

    so adding it with the mentioned methods makes sense ;). i will add them in the next version.

    i see something like.

    Drawer.Result result = ...
    result.enableKeyboardSupport(activity)
    result.disableKeyboardSupport(activity)
  2. mikepenz
    self-assigned this
    on Apr 5, 2015
  3. mikepenz
    added
    enhancement
    on Apr 5, 2015
  4. raguirre commented on Apr 5, 2015

    @raguirre
    raguirre
    on Apr 5, 2015
    Author
    More actions

    @mikepenz thanks for the reply.

    It was the best you could have done not adding it by default, cause it breaks other things, like viewpager pagination. Since the post I also realized it broke the animation in my sliding tabs (indicator for the viewpager), now they just move from one tab to the next without animating.

    And yeah, methods working directly on the Drawer.Result sound great :)

    Thanks and looking forward to the next version :)

  5. mikepenz commented on Apr 6, 2015

    @mikepenz
    mikepenz
    on Apr 6, 2015
    Owner
    More actions

    @raguirre with the next version there will be a method called

    result.keyboardSupportEnabled(activity, true);

    you can disable it again with this:

    result.keyboardSupportEnabled(activity, false);
  6. mikepenz
    closed this as completedon Apr 6, 2015
  7. raguirre commented on Apr 6, 2015

    @raguirre
    raguirre
    on Apr 6, 2015
    Author
    More actions

    @mikepenz Awesome! Thank you very much. :)

  8. mikepenz
    added a commit that references this issue on Apr 7, 2015

    * addition to completly FIX #95 && #183

    f0ef515
  9. mikepenz
    added
    good to know
    on Sep 2, 2015
  10. mehdinewdesign commented on May 3, 2016

    @mehdinewdesign
    mehdinewdesign
    on May 3, 2016
    More actions

    hi Dear Mike

    i saw your library and i installed your application,i'm new android developer and i cant use this library!

    may you help me with an step by step guidance for use your library?

    thanks...

  11. mikepenz commented on May 3, 2016

    @mikepenz
    mikepenz
    on May 3, 2016
    Owner
    More actions

    @mehdinewdesign there is the sample app available showing how the lib is used, you also can see how the MaterialDrawer needs to be setup in the README.

    No step by step guidance possible.

  12. mehdinewdesign commented on May 3, 2016

    @mehdinewdesign
    mehdinewdesign
    on May 3, 2016
    More actions

    Thank you...

  13. mehdinewdesign commented on May 4, 2016

    @mehdinewdesign
    mehdinewdesign
    on May 4, 2016
    More actions

    Hi
    I just want to use your minidrawe and I can't find out how to do this...

    Additionally I read the README file and it can not help me...

    May help me for this go?

    Thank you...

  14. mikepenz commented on May 4, 2016

    @mikepenz
    mikepenz
    on May 4, 2016
    Owner
    More actions

    @mehdinewdesign not sure why you ask this inside an issue which has nothing to do with your question. Here you can find the sample app: https://github.com/mikepenz/MaterialDrawer/tree/develop/app including a sample for MiniDrawer

  15. mehdinewdesign commented on May 6, 2016

    @mehdinewdesign
    mehdinewdesign
    on May 6, 2016
    More actions

    Hi
    Dear Mike,I'm sorry because of my continuously questions , but really I cant use your sample and your library :-(
    Did your have any learning lecture about mini drawer in YouTube?
    Your design and programming for this sample is awesome , but because of I'm new in android programming I cant use this...

    I'm so eager for your answer that make me guide for creating a mini drawer.

    Thank you so much... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mikepenz
    mikepenz

Labels

enhancementgood to know

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.