Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
LAMW : Is there a way to use xml shape in jImageView?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Using FV's TListBox, Memo...
by
Mathias
[
Today
at 06:36:27 pm]
const variable can be mod...
by
winni
[
Today
at 05:48:27 pm]
Removing duplicates from ...
by
BobDog
[
Today
at 05:36:22 pm]
How to determine the colo...
by
PKTKS
[
Today
at 05:24:09 pm]
[solved] Button of dialog...
by
BlueIcaro
[
Today
at 05:13:15 pm]
Convert a picture to Gray
by
Ally
[
Today
at 04:49:55 pm]
Raylib4.0 don't work eith...
by
Guva
[
Today
at 04:00:39 pm]
TFPHTTPClient debugging
by
SymbolicFrank
[
Today
at 03:09:33 pm]
Frame reception problem i...
by
avra
[
Today
at 01:42:55 pm]
The declaration of WriteF...
by
PascalDragon
[
Today
at 01:32:04 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: LAMW : Is there a way to use xml shape in jImageView? (Read 4228 times)
MFP
Newbie
Posts: 4
LAMW : Is there a way to use xml shape in jImageView?
«
on:
November 23, 2021, 08:08:57 am »
hi,
Is there a way to use xml shape in jImageView?
For example something like this xml file :
Code: Pascal
[Select]
[+]
[-]
<?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
Logged
jmpessoa
Hero Member
Posts: 2111
Re: LAMW : Is there a way to use xml shape in jImageView?
«
Reply #1 on:
November 28, 2021, 08:38:42 pm »
Hi, MFP!
Can you, please, point up some android/java example?
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
jmpessoa
Hero Member
Posts: 2111
Re: LAMW : Is there a way to use xml shape in jImageView?
«
Reply #2 on:
November 29, 2021, 08:29:29 am »
Done!
New demo "AppApplyDrawableXMLDemo1"
added method "ApplyDrawableXML" to components:
jTextView, jEditText, jImageView, jButton (others coming soon!)
Thank you!
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
MFP
Newbie
Posts: 4
Re: LAMW : Is there a way to use xml shape in jImageView?
«
Reply #3 on:
November 29, 2021, 03:56:02 pm »
Exactly what i needed and works great!
Thank you very much!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
LAMW : Is there a way to use xml shape in jImageView?
TinyPortal
© 2005-2018