You are not logged in.

cartola

Beginner

  • "cartola" started this thread

Posts: 25

Location: Rio de Janeiro, Brazil

Occupation: System Analyst

  • Send private message

1

Wednesday, September 21st 2011, 2:17am

Needed to change default skin xml file for button to work on android

Hi people,

I was trying to finish some tests to make a simple pano work on many devices. When tested on android I didn't see any button, so I tried to put some. I was going to copy the buttons from skin/defaultskin.xml created by the kmakemultires linux script. When I was analyzing it I saw android buttons, so I tried to change many things until it works.

Here I have only one device to test, a motorola Atrix cell phone. Tomorrow maybe I will be able to test on gallaxy IIs and some android tablet with some friend at work.

The problem was solved when I changed the tag style="button" by the tab url="buttons.png"

Anyone has noticed that?

Bye, Cartola.
http://cartola.org/360
twitter: @carloscartola | facebook
Rio de Janeiro, Brazil

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Wednesday, September 21st 2011, 2:39am

Stlye is just an inherited set of attributes. You can check back into your style to see what your URL was set to.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

cartola

Beginner

  • "cartola" started this thread

Posts: 25

Location: Rio de Janeiro, Brazil

Occupation: System Analyst

  • Send private message

3

Wednesday, September 21st 2011, 2:48am

Well, I can check that, but the thing was all left automated and didn't work, so something might not be correctly set on some place. My feeling is that it is like this out of the box. I customized other things like view, some movement, a central "click n drag" message. I didn't change the style at any time.

Anyway, if I find the root reason I report it here.

Thanks, Cartola.
http://cartola.org/360
twitter: @carloscartola | facebook
Rio de Janeiro, Brazil

cartola

Beginner

  • "cartola" started this thread

Posts: 25

Location: Rio de Janeiro, Brazil

Occupation: System Analyst

  • Send private message

4

Wednesday, September 21st 2011, 3:28am

Ok, I got it. Maybe I am a little sleepy, but I thought the "style" would be some CSS parameter :)

Anyway, I think that there is a "mistake" on the defaultskin.xml file that comes with the 1.0.8.14. The "style" definition has a devices="desktop" parameter, so obviously when you use a button configured with device="android" style="button" it doesn't show up :)

The style is defined in line 36 of the file templates/xml/skin/defaultskin.xml and the android buttons definition begin in line 51 of the same file. There is no other style definition for device android, so those lines are not used if you don't do something.

Thanks, Cartola.
http://cartola.org/360
twitter: @carloscartola | facebook
Rio de Janeiro, Brazil