I have created a panel framework
Different kind of panels are classes itself
To add panel of certain type just add something like this:
pSpeed.Initialize(1,1,"Speed", Activity)
pSpeed.setImage("poff00.png")
initialize has panel position 1,1, name of the panel and Activity where you want to add panel
setImage method sets the icon for panel
In timer.tick you can set context of panel like:
pSpeed.setContext(xSpeed,"km/h")
So far i have implented just 2 panels Panel1 and pDateTime.
Works best on portrait orientation and tablets.
TODO:
1. Make panels moveable
2. Create a list of panels and use polymorph panel types
3. Automatically adjust icons and text size depending on panel size.
Make possibly some library out of it
I am open to any other suggestions.
This is supposed to be lame try to MVC kinda framework.
Be gentle I am a :sign0104: here
San
Different kind of panels are classes itself
To add panel of certain type just add something like this:
pSpeed.Initialize(1,1,"Speed", Activity)
pSpeed.setImage("poff00.png")
initialize has panel position 1,1, name of the panel and Activity where you want to add panel
setImage method sets the icon for panel
In timer.tick you can set context of panel like:
pSpeed.setContext(xSpeed,"km/h")
So far i have implented just 2 panels Panel1 and pDateTime.
Works best on portrait orientation and tablets.
TODO:
1. Make panels moveable
2. Create a list of panels and use polymorph panel types
3. Automatically adjust icons and text size depending on panel size.
Make possibly some library out of it
I am open to any other suggestions.
This is supposed to be lame try to MVC kinda framework.
Be gentle I am a :sign0104: here
San