Opened 2 years ago

Last modified 2 years ago

#1307 new defect/bug

Button with empty icon source src="" does not work

Reported by: benvenuto1972 Owned by: cp15
Priority: major Milestone: version 0.6.0
Component: port/android Version: git master
Severity: normal Keywords: osd
Cc: sebastian.leske@…

Description

I try to create OSD layout without any external images (except next_turn icons) and for executing commands I use empty source icons buttons which are overlay with text blocks. Unfortunately this trick does not work (command are ignored when area are touched) on latest version of Navit on Android (navit-svn-6122.apk). Below is wiki explanation which should work but it fails for me.


If we want to create transparent button (for example as overlay over other item) we need to write:

   <osd enabled="yes" type="button" x="48"  y="-96" w="39" h="120" command="some_cmd()" [[Image(C:\fakepath\Screenshot_2015-07-18-14-49-29.png)]]src="" />

Attachments (1)

Screenshot_2015-07-18-14-49-29.png (218.9 KB) - added by benvenuto1972 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by benvenuto1972

comment:1 Changed 2 years ago by benvenuto1972

From wiki in correct way


If we want to create transparent button (for example as overlay over other item) we need to write:

   <osd enabled="yes" type="button" x="48"  y="-96" w="39" h="120" command="some_cmd()"  src="" />

comment:2 Changed 2 years ago by sleske

  • Cc sebastian.leske@… added

Hm, strange, as far as I can see this should indeed work. This might be an Android-specific problem.

I'll try to have a look at this (once I have time)...

Note: See TracTickets for help on using tickets.