Android Question Problem with Dialog(please help)(dialog using xtraviews...)[Not Solved yet]

marab

Member
Licensed User
Longtime User
Hi Guys
I need your help too much!
in Xtras LIB i used Dialogs!
its my code:
B4X:
    Dim dialog As DialogView
    dialog.Options.Set(Gravity.CENTER  ,0,0,0,0,"slide_top_and_back",True,True)

    dialog.Options.Dimensions.Set(100%x, 100%y)
    dialog.LoadLayout("about").ShowDefault("q","q")


in "about" layout i have an panel and a image view in them
image view have a png transparent picture
now when dialog showed!
panel is not transparent so png transparent in imageview dosent show good!
i tried these ways for became panel hide but none of them didn't worked:
set panel color to transparent
set alpha of panel to 0
but nothing changed
how to make panel transparent to show imageview better?
tnx for reading and sorry for my terrible English
example:
Screenshot.png


if you know a better way for my work please say
 
Last edited:

marab

Member
Licensed User
Longtime User
please help me i need it toooo much :(
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I don't know that library but ain't there something like

B4X:
dialog.Options.Backgroundcolor(colors.transparent)
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
go to the designer

file > dialog

click panel

change alpha to 0


maybe that solves it


but if you do this what is the point of using this dialog library?

you can just use a normal image view instead.
 
Upvote 0

marab

Member
Licensed User
Longtime User
go to the designer

file > dialog

click panel

change alpha to 0


maybe that solves it
my friend please read the post better i writed what ways i tried
and i tried this way
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
It seems that it has an underlaying panel that you can't reach through code nor the designer.

Request by the author an extra option to allow changes of it.
 
Upvote 0

marab

Member
Licensed User
Longtime User
It seems that it has an underlaying panel that you can't reach through code nor the designer.

Request by the author an extra option to allow changes of it.
i didn't know a good sing like this
if you or any another friend here knows a better way for doing this i will became happy ;)
 
Upvote 0

marab

Member
Licensed User
Longtime User
no idea?
no answere!?
please help a bit more!!
i realy need it please.... :(
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Upvote 0

marab

Member
Licensed User
Longtime User
a) aks the author (we did not write the lib). Maybe "dialog.panel.Options.Backgroundcolor(colors.transparent)"
b) just make an own layout with a transparent panel
c) be patient. Sorex answered 3 times.
for a and b: thanks but i tried tease before asking here but didn't worked

for c: i thanked sorex for answering and liked but i mean i didn't got a working solution yet...
and thanks for your answering
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
that author might be on holiday as I haven't seen him posting here the last few days.

he usually responds fast to his stuff tho.
 
Upvote 0

marab

Member
Licensed User
Longtime User
that author might be on holiday as I haven't seen him posting here the last few days.

he usually responds fast to his stuff tho.
yeah Erel answeres very useful and i hope he turn back soon:)
 
Upvote 0

marab

Member
Licensed User
Longtime User
I'm not the author of this library and not deeply familiar with it. Sorry.
TNX for answering have you know a better way that works better for me?!
i mean i want a dialog that show png like this:
Screenshot.png

i want to show that transparent part of picture transparent
if you know a library that can do this for me please say to me !


and sorry for my too bad English :D
 
Upvote 0

marab

Member
Licensed User
Longtime User
Can't you post your project (or at least a small one showing the problem) as a zip file, so we could have a look at it trying to find what's wrong.
tnx ...
sure i can give a sample project for finding problem tnx for helping
quickapp.ir/sample3.rar
this project have a Button(Button10) that shows the dialog from "about" layout
tnx for helping
my problem is that the picture in dialog(imgae view) have some transparent parts that it show white
 
Upvote 0

marab

Member
Licensed User
Longtime User
i opend this project on my phone now
and it works with no errors
do you have xtraviews library?!
what errors you saw!?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
i opend this project on my phone now
Did you download it from the forum to be sure they are the same ?

do you have xtraviews library?!
Sure.
what errors you saw!?
This line is wrong dialog.Options.Dimensions.Set(100%x, 100%y)
Error: missing parameter !
This line is wrong dialog.LoadLayout("about").ShowDefault("q","q")
Error: Array expected.
This line is wrong Dialog.Options.Title.Set(Typeface.CreateNew(Typeface.SANS_SERIF,...
Error: Unknown member: title
Then I stopped !
XtraViews library version 2.60.

In the meantime I made some further investigations.
The problem with the transparent Panel seems to be internal of the library and therefore I cannot help here.

What exactly do you want to display on the about screen ?
Why not using an Activity for that ?
 
Upvote 0
Top