vianziro / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

how do I use CommandShowInfoScreen to display some info on the screen? #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I want to display 3-4 lines of brief info when clicking on a POI in my AR view. 
 how do I do this using CommandShowInfoScreen?

What version of the product are you using? On what operating system?
current version with eclipse on mac

Please provide any additional information below.

Original issue reported on code.google.com by Andy.Bar...@mubaloo.com on 11 Jul 2011 at 4:00

GoogleCodeExporter commented 8 years ago
Here is some example code how you could do it using the gui.simpleUi stuff:

        new CommandShowInfoScreen(myTargetActivity, new EditItem() {

            @Override
            public void customizeScreen(ModifierGroup group, Object message) {
                group.addModifier(new InfoText("Blabla1", Gravity.CENTER));
                group.addModifier(new InfoText("Blabla2", Gravity.CENTER));
                group.addModifier(new InfoText("Blabla3", Gravity.CENTER));
            }
        }).execute();

Also check this video i once did: http://www.youtube.com/watch?v=tMLi3OVEUCY 
It should help you to understand the simpleUi idea. I chanced some things since 
then but the concept is still the same.

You should also take a look at the gui.simpleUi.modifiers package to see all 
available modifiers but the InfoText modifier should be enough for your needs.

Original comment by simon.heinen on 12 Jul 2011 at 12:15