Forum > Android

LAMW : Is there a way to use xml shape in jImageView?

(1/1)

MFP:
hi,

Is there a way to use xml shape in jImageView?

For example something like this xml file :

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" >                 <!-- Green & Blue -->        <gradient            android:startColor="#ff227777"            android:centerColor="#ff00ffff"            android:endColor="#ff227777"            android:angle="135"            />        </shape>
Or other examples,
 
how to show this xml file in jImageview or jDrawingView or ...?

Thanks

jmpessoa:

Hi, MFP!

Can you, please, point up some android/java example?

jmpessoa:

Done!

New demo "AppApplyDrawableXMLDemo1"

added method "ApplyDrawableXML"  to components:
jTextView, jEditText, jImageView, jButton     (others coming soon!)

Thank you!

MFP:
Exactly what i needed and works great!

Thank you very much!

Navigation

[0] Message Index

Go to full version