This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Preferences overlaps navigation drawer  RSS feed

 
Gil Carvalho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • 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
 
Stephen M Davies
Greenhorn
Posts: 11
Android Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!