Android Question Using CustomView

MarcoRome

Expert
Licensed User
Longtime User
I add in new project the library Clocks.
To use Addview ... "CustomView" within the Designer.

After adding the view, the "CustomType" and i dont see nothing. Any ideas re where I am going wrong?



Thank you
 

LucaMs

Expert
Licensed User
Longtime User
This is because Clocks is not a view that you can add via the designer.

In the example attached:
B4X:
    Activity.AddView(Chrono, 60dip, 30dip, 100dip, 40dip)

Non è una custom view che puoi aggiungere tramite il Designer.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
ok, thanks.

B4X:
I found this documentation:
"A custom view allows you to create your own type of view which you implement either as class or in a libray. First add it to your project. now use the Designer menu Add -> View -> Custom View. The custom type will be automatically added to the Custom Type List."

Pensavo che invece di costruirla dinamicamente fosse possible inserire una customview.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Infatti si può creare una custom view adatta al designer e anche crearla sotto forma di libreria, solo che quella in particolare, non lo è.

Puoi chiedere all'autore di modificarla in modo che possa essere utilizzata col Designer
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…