B bluedude Well-Known Member Licensed User Longtime User Jun 3, 2013 #1 Hi, Which of the B4A controls looks like the one used in Android for WIFI on/off? See attached screenshot. Cheers, Attachments settings.png 36.8 KB · Views: 547
Hi, Which of the B4A controls looks like the one used in Android for WIFI on/off? See attached screenshot. Cheers,
moster67 Expert Licensed User Longtime User Jun 3, 2013 #2 I believe the view concerned is a Switch. I think Erel showed the library-code for the Switch-view in this tutorial: http://www.b4x.com/forum/libraries-developers-questions/28980-custom-view-designer-support-java-library.html but oddly enough he did not add the Switch-view to the standard B4A-views I might be mistaken since I don't have the latest version of B4A here at work. Upvote 0
I believe the view concerned is a Switch. I think Erel showed the library-code for the Switch-view in this tutorial: http://www.b4x.com/forum/libraries-developers-questions/28980-custom-view-designer-support-java-library.html but oddly enough he did not add the Switch-view to the standard B4A-views I might be mistaken since I don't have the latest version of B4A here at work.
Informatix Expert Licensed User Longtime User Jun 3, 2013 #3 Switch You'll find it in a compiled form in this post. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2013 #4 Note that Switch view is only supported by Android 4+. Upvote 0
moster67 Expert Licensed User Longtime User Jun 3, 2013 #5 Ahhh... That was the reason. Now I understand. Sent from my GT-I9300 using Tapatalk 2 Upvote 0
CapReed Member Licensed User Longtime User Aug 27, 2013 #6 Good morning, I've been watching this interesting post http://www.b4x.com/forum/libraries-...ustom-view-designer-support-java-library.html and I like is the button switch. I already checked and include it in my application through the designer, but, how could include through the code without using the designer? Thank you! Upvote 0
Good morning, I've been watching this interesting post http://www.b4x.com/forum/libraries-...ustom-view-designer-support-java-library.html and I like is the button switch. I already checked and include it in my application through the designer, but, how could include through the code without using the designer? Thank you!
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2013 #7 Are you targeting Android 4+? If not then it will fail. Upvote 0
CapReed Member Licensed User Longtime User Aug 27, 2013 #8 Yes, Android 4+ . A small code example would be great ... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2013 #9 I'm not sure how Informatix has implemented the library. The code I posted can only be added from the designer... Upvote 0
I'm not sure how Informatix has implemented the library. The code I posted can only be added from the designer...
CapReed Member Licensed User Longtime User Aug 27, 2013 #10 Ok, I understand. Maybe Informatix may have some solution to implement the inclusion of the switch via code. Thanks Erel! Upvote 0
Ok, I understand. Maybe Informatix may have some solution to implement the inclusion of the switch via code. Thanks Erel!
Informatix Expert Licensed User Longtime User Aug 27, 2013 #11 The source code is attached to one of the posts. Upvote 0
I Inman Well-Known Member Licensed User Longtime User Mar 18, 2014 #12 Informatix said: The source code is attached to one of the posts. Click to expand... I checked the B4A example provided but it is done using Designer. Is it possible to implement it using code alone? I would like to add a Switch to the actionbar using Standard Action Bar library (project is only for Android 4+ devices). Last edited: Mar 18, 2014 Upvote 0
Informatix said: The source code is attached to one of the posts. Click to expand... I checked the B4A example provided but it is done using Designer. Is it possible to implement it using code alone? I would like to add a Switch to the actionbar using Standard Action Bar library (project is only for Android 4+ devices).
Erel B4X founder Staff member Licensed User Longtime User Mar 18, 2014 #13 Here: http://www.b4x.com/android/forum/threads/switch-view-android-4.38971/ Upvote 0