This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Menu items displayed twice in app  RSS feed

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I work on simple Guessing Game app and work on menu, which for some reasons displays double values. The code appears trustly silly, however proved to be tricky for me.
This is what I got: in attached screenshot there is main_menu.xml, which displays correct view of the menu in Preview mode, and double values on my emulator (any, but here Nexus S API 28).

Below the code from MainActivity.java


And Text content of main_menu.xml:


I have checked if the values are not called twice, they are not, but I guess I made a mistake elsewhere.
Can you please give me a hand about it?
main_menu_double_items.PNG
[Thumbnail for main_menu_double_items.PNG]
 
Ranch Hand
Posts: 57
2
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the lines 110 and 111
 
Zuzanna Rosin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Adrian!
 
Let's go to the waterfront with this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!