T TLD Member Licensed User Jan 5, 2017 #1 In the Designer Properties Option How can i add a Custom Properties? In the image-1 there is option to add a Properties to the View but in my case there is no option is available(check image-2.png) ... I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer
In the Designer Properties Option How can i add a Custom Properties? In the image-1 there is option to add a Properties to the View but in my case there is no option is available(check image-2.png) ... I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer
DonManfred Expert Licensed User Longtime User Jan 5, 2017 #2 TLD said: I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer Click to expand... additional properties must be declared in the java-library to be listed here Additional it will only work with libs made for B4A 5.8+ Upvote 0
TLD said: I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer Click to expand... additional properties must be declared in the java-library to be listed here Additional it will only work with libs made for B4A 5.8+
T TLD Member Licensed User Jan 5, 2017 #3 DonManfred said: additional properties must be declared in the java-library to be listed here Additional it will only work with libs made for B4A 5.8+ Click to expand... oky i got it Sir and one more thing sir please check the image -2, Views tree panel and it's the correct way to declare a image in cardView or i m doing something wrong? And secound thing if i am doing right so how can i declare these properties to the cardView Please help me Upvote 0
DonManfred said: additional properties must be declared in the java-library to be listed here Additional it will only work with libs made for B4A 5.8+ Click to expand... oky i got it Sir and one more thing sir please check the image -2, Views tree panel and it's the correct way to declare a image in cardView or i m doing something wrong? And secound thing if i am doing right so how can i declare these properties to the cardView Please help me
DonManfred Expert Licensed User Longtime User Jan 5, 2017 #4 TLD said: wrong? Click to expand... I dont know. I´m not familar with this lib (never used it), sorry TLD said: how can i declare these properties to the cardView Click to expand... Ask the libs author to update the lib. Or to get the sourcecode from the lib and then you can extend it. Without the source of the lib you are not able to do Upvote 0
TLD said: wrong? Click to expand... I dont know. I´m not familar with this lib (never used it), sorry TLD said: how can i declare these properties to the cardView Click to expand... Ask the libs author to update the lib. Or to get the sourcecode from the lib and then you can extend it. Without the source of the lib you are not able to do
T TLD Member Licensed User Jan 5, 2017 #5 DonManfred said: I dont know. I´m not familar with this lib (never used it), sorry Ask the libs author to update the lib. Or to get the sourcecode from the lib and then you can extend it. Without the source of the lib you are not able to do Click to expand... So is there any another library is der to create a cardView easily? Upvote 0
DonManfred said: I dont know. I´m not familar with this lib (never used it), sorry Ask the libs author to update the lib. Or to get the sourcecode from the lib and then you can extend it. Without the source of the lib you are not able to do Click to expand... So is there any another library is der to create a cardView easily?
DonManfred Expert Licensed User Longtime User Jan 5, 2017 #6 TLD said: So is there any another library is der to create a cardView easily? Click to expand... Search the forum. I dont know any other Upvote 0
TLD said: So is there any another library is der to create a cardView easily? Click to expand... Search the forum. I dont know any other
T TLD Member Licensed User Jan 5, 2017 #7 DonManfred said: Search the forum. I dont know any other Click to expand... forum is too confusing for the Beginner Upvote 0
DonManfred said: Search the forum. I dont know any other Click to expand... forum is too confusing for the Beginner
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2017 #8 Note that you can also add properties to custom views created with B4A: https://www.b4x.com/android/forum/t...with-enhanced-designer-support.62488/#content Upvote 0
Note that you can also add properties to custom views created with B4A: https://www.b4x.com/android/forum/t...with-enhanced-designer-support.62488/#content
DonManfred Expert Licensed User Longtime User Jan 5, 2017 #9 Erel said: Note that you can also add properties to custom views created with B4A Click to expand... in this case the TO asked how to add them to an available library TLD said: I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer Click to expand... Upvote 0
Erel said: Note that you can also add properties to custom views created with B4A Click to expand... in this case the TO asked how to add them to an available library TLD said: I used the MSCarView and i want to implement the MaxElevation, Elevation, Radius, setPadding on the CardView in the Designer Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2017 #10 Missed that. As you wrote you must modify the library source code in order to support custom properties. Upvote 0
Missed that. As you wrote you must modify the library source code in order to support custom properties.
T TLD Member Licensed User Jan 6, 2017 #11 DonManfred said: additional properties must be declared in the java-library to be listed here Click to expand... This is a basic Question... Actually i have a knowledge of Android Studio and in the Studio if we define any button/Edittext or any thing in XML Layout we have to provide a unique id which can be used in the java code.... But in the B4a if i define a panel or label so how can i used in the .bas file because i don't think there is any id feaure is there so in .bas file how can i define the action on the panel/label Note:I read the guide.pdf but i think in the whole docs there is no point who clear my question or maybe i miss it Last edited: Jan 6, 2017 Upvote 0
DonManfred said: additional properties must be declared in the java-library to be listed here Click to expand... This is a basic Question... Actually i have a knowledge of Android Studio and in the Studio if we define any button/Edittext or any thing in XML Layout we have to provide a unique id which can be used in the java code.... But in the B4a if i define a panel or label so how can i used in the .bas file because i don't think there is any id feaure is there so in .bas file how can i define the action on the panel/label Note:I read the guide.pdf but i think in the whole docs there is no point who clear my question or maybe i miss it
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2017 #12 Load the layout inside the class module and add Class_Global variables with the names of the views you want to access. See this example: https://www.b4x.com/android/forum/threads/27548/#content Upvote 0
Load the layout inside the class module and add Class_Global variables with the names of the views you want to access. See this example: https://www.b4x.com/android/forum/threads/27548/#content