XtraViews

Thraka

Member
Licensed User
Longtime User
Since you have a Dismiss method that your view hooks, it would be nice to be able to cancel it some how. Sender.CancelDismiss = True or something.

Also, I seem to be able to click on the outside of the dialog popup, and it closes with -3. How can I disable that functionality?

Thanks a bunch for this!
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
@Periklis Koutsogiannis look your lib on my game
7.jpg


thx man great work *-*

try add ballons i go use too in the game xD


another sugestion is add on
Dialog.ShowDefault

a change to change only the title and the text but the same layout and icon


i want to call the dialog many times, but only change the title and text

the same of the last image here
 
Last edited:

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
@dune3000 It will be possible in the next version
@Douglas Farias It is a little bit tricky but I am working on it.
@Thraka It will be possible in the next version

Peace! :D
 

boten

Active Member
Licensed User
Longtime User
tried your lib, run of sample1 in movieview (MovieView1) got this error:
B4X:
** Activity (main) Create, isFirst = true **


java.lang.RuntimeException: java.lang.reflect.InvocationTargetException


   at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
   at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:208)
   at com.datasteam.b4a.xtraviews.movieview.sample1.main._activity_create(main.java:303)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
   at com.datasteam.b4a.xtraviews.movieview.sample1.main.afterFirstLayout(main.java:98)
   at com.datasteam.b4a.xtraviews.movieview.sample1.main.access$100(main.java:16)
   at com.datasteam.b4a.xtraviews.movieview.sample1.main$WaitForLayout.run(main.java:76)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:123)
   at android.app.ActivityThread.main(ActivityThread.java:4627)


   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
   at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
   at com.datasteam.b4a.xtraviews.MovieViewControl._initialize(MovieViewControl.java:19)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:54)
   at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
   ... 17 more
Caused by: java.lang.NoSuchMethodError: com.datasteam.b4a.xtraviews.MovieView.setLayerType
   at com.datasteam.b4a.xtraviews.MovieView.<init>(MovieView.java:25)
   at com.datasteam.b4a.xtraviews.MovieViewWrapper.innerInitialize(MovieViewWrapper.java:31)
   at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:53)
   at com.datasteam.b4a.xtraviews.MovieViewWrapper.Initialize(MovieViewWrapper.java:23)
   ... 22 more
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
@Informatix: There is a part of the code that currently supports api level 14 and higher. I am testing a replacement code which supports api level 4 and higher and will be (hopefully) introduced in version 1.3 of the library.
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
@Douglas Farias :

In the designer, set the tag of the Label you want to use as a Title to "title" and the tag of the label you want to use as a content to "content".

Then call this:
B4X:
Dialog.LoadLayout("dialog1").ShowDefault("my title", "my content")

Check sample3.
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
@dune3000: Check sample3 for the listview event.
@Thraka: You can set the Cancelable and other options by using the Dialog.Options.Set method.

upload_2014-7-15_21-1-49.png
 

Douglas Farias

Expert
Licensed User
Longtime User
@Douglas Farias :

In the designer, set the tag of the Label you want to use as a Title to "title" and the tag of the label you want to use as a content to "content".

Then call this:
Code:
Dialog.LoadLayout("dialog1").ShowDefault("my title", "my content")
Check sample3.

i go use when i go to home , thx man
and about the ballons i think i can make with this lib

only change the panel image to ballon. the harder is put this on the position on screen *-*

for exemple if the hero in game is on 10%x and 30%y

and need fint a way to ballon dont go out of the screnn
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
Redownload the latest package and you will find a new class inside:

CheatSheetView

Long press on an element and a 'cheat sheet' (tooltip toast) will appear describing the action.

Usage:
B4X:
Dim CheatSheet as CheatSheetView
CheatSheet.Setup(Button1, "this is a button!")

Original code: https://plus.google.com/ RomanNurik/posts/QrMMFNck5MA
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
Top