This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Preferences overlaps navigation drawer

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I'm having problems regarding the use of preferences in fragment.
the image shows the problem



This is my main xml



Wich includes another layout



and this one the content



Everything is working fine but when i use this code to load preferences i have that issue



Any help??

Thanks
 
Greenhorn
Posts: 11
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, if possible could you post a shot of your Component Tree? If you are using Android Studio , Just go to the design view and it should be on the right. At first glance, you appear to have the DrawerLayout as your root View. This should not be the case, it should be the child of another Root View. However, to help further, I need to see the component overview as I mentioned, and perhaps the file names for each xml. You can wrap everything in your Coordinator Layout, then have the toolbar, and then include your DrawerLayout. That's a guess from what I see.

E.g.



This is just a guess, I have often found myself with the same issue. If you can show the tree, I could help more
 
Gil Carvalho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Thanks for your help
I'm not sure if it is what you want but here is the image



This is the main file

The code



But my preferences is inside the xml folder, not layout folder

reply
    Bookmark Topic Watch Topic
  • New Topic