开发者

Blackberry - Navigate to other screen on clicking the SVG Element through Blackberry / J2me programme?

开发者 https://www.devze.com 2022-12-15 11:13 出处:网络
I am having a SVG Rectangle Element on one screen, on click this element i have to navigate to other screen.

I am having a SVG Rectangle Element on one screen, on click this element i have to navigate to other screen.

I want this anchor el开发者_运维技巧ement though Java code , and i dont want to use html tag code.

Please help in this point.


use the 'a' element with xlink:href and target:

<?xml version='1.0' encoding='UTF-8'?>
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='100' height='1000'>
  <a  target='ncbi' title='t1' xlink:href='http://www.anywhere.org'>
    <rect x='1' y1='1' width='50' y2='50' style='fill:red;'/>
  </a>
</svg>
0

精彩评论

暂无评论...
验证码 换一张
取 消