DIR Return Create A Forum - Home
---------------------------------------------------------
Mobile AR Framework Support Forum
HTML https://mobilear.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Outdoor AR Library
*****************************************************
#Post#: 14--------------------------------------------------
how to use the icon
DIR By: alia
Date: December 12, 2012, 12:58 am
---------------------------------------------------------
Hi all. i m new to android development. i have a question
regarding the icon folder. how can i use it? for example we set
in scene.xml for the model folder name. let say if i want to use
the icon ..how can i set it in the scene.xml ??? and display in
list view? Thanks!
#Post#: 21--------------------------------------------------
Re: how to use the icon
DIR By: hitlabnz
Date: January 8, 2013, 3:55 pm
---------------------------------------------------------
The OutdoorAR/icon folder is mainly for the icons on the map.
(the icons should be png files named with the category. e.g.
CategoryA.png)
The OAMapComponentBase by default uses OAIconSource class to
asks the DataManager which icon to use to show the scene on the
map based on the category of the scene.
This is done by calling the getIcon() method of the DataManager
which returns a drawable from the file in the OutdoorAR/icons
folder (either in the assets or the external storage, depending
on which DataManager class you are using.)
If you want to override this default behavior,
you can provide your own icon source extended from the
OAIconSourceBase class by overriding the setupIconSource()
method in OAMapComponentBase class.
If you want these icons in the list view, you'll have to call
the getIcon() method of the data manager you're using in the
ListAdapter you're using.
*****************************************************
Page 1 of 1