C chhtest Member Licensed User Longtime User Jun 25, 2015 #1 Hi, I have XML layout file, include Button. B4X: ............ <Button android:tag="btnColorCtrlSend" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Send" /> ............ use XmlLayoutBuilder load this layout to panel, than use AddView method to Activity. How can I use Button Click Event? any suggestion or sample code? thanks. Frederick.
Hi, I have XML layout file, include Button. B4X: ............ <Button android:tag="btnColorCtrlSend" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Send" /> ............ use XmlLayoutBuilder load this layout to panel, than use AddView method to Activity. How can I use Button Click Event? any suggestion or sample code? thanks. Frederick.
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2015 #2 See the tutorial: https://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add the event name to android:tag. Upvote 0
See the tutorial: https://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add the event name to android:tag.