---===[ Message from the authors: This wiki might be taken down due to maintenance ]===----


Difference between revisions of "Android:Resources"

From Juneday education
Jump to: navigation, search
Line 14: Line 14:
  
 
Move Button text to String resource
 
Move Button text to String resource
 +
Use in XML
 +
Use on code - Log
 
Add swedish translation
 
Add swedish translation
 +
  
 
New layout (cols)
 
New layout (cols)
 
Add landscape layout (rows)
 
Add landscape layout (rows)
 
Flip yer device
 
Flip yer device
 +
 +
  
 
Add int for button press threshold  
 
Add int for button press threshold  
 
Alter code to only change button text after threshold times
 
Alter code to only change button text after threshold times

Revision as of 23:51, 6 March 2017

  • strings
  • layouts
  • drawable
  • values
  • menu
  • id to connect them all


Links: App Resources

Exercises:

Move Button text to String resource Use in XML Use on code - Log Add swedish translation


New layout (cols) Add landscape layout (rows) Flip yer device


Add int for button press threshold Alter code to only change button text after threshold times