RadioButtons

126 views
Skip to first unread message

Hossein Amerkashi

unread,
Aug 15, 2017, 11:55:06 PM8/15/17
to MIT App Inventor Forum
Equivalent of President's Quiz using RadioButtons extension



radiobutton.png

Tim Carter

unread,
Aug 16, 2017, 9:11:19 AM8/16/17
to MIT App Inventor Forum
Tantalising !!

Hossein Amerkashi

unread,
Aug 16, 2017, 9:14:45 AM8/16/17
to MIT App Inventor Forum
@Tim I had to look up that word :)

See here: https://help.appybuilder.com/using-radiobuttons.html

Hossein.

Tim Carter

unread,
Aug 16, 2017, 9:20:54 AM8/16/17
to MIT App Inventor Forum
Many confabibrulations :)  (don't try to look that one up!!)

Hossein Amerkashi

unread,
Aug 16, 2017, 9:57:38 AM8/16/17
to MIT App Inventor Forum

Not sure what you really meant and what you wanted to relay.

Tim Carter

unread,
Aug 19, 2017, 8:00:35 PM8/19/17
to MIT App Inventor Forum
Hi Hossein

Tried it out, using exactly the same setup as your linked example but get

android.widget.RadioButton.setButtonTintList  error and no radio buttons displayed ?

Hossein Amerkashi

unread,
Aug 19, 2017, 8:13:35 PM8/19/17
to MIT App Inventor Forum
@Tim,

What device do you have and what is its API level?
I just tried the RadioButton sample .aia (with included extension link in thread), imported successfully into MIT AI2 and worked  on companion with no problem. Next, I generated .apk and that worked without any issues.

-Hossein.



Tim Carter

unread,
Aug 20, 2017, 6:39:53 AM8/20/17
to MIT App Inventor Forum
Ah that sorted it, using Genymotion was on API17. Moved up to API22 and all is well.

Next questions:

Is it possible to have multi-select with this extension?

Is it possible to "save the state" so that one can re-open a session and still have radio buttons checked? (e.g. if two buttons are checked, session saved, then on return, two buttons are still checked)

Is it possible to remove the check if you click on a button again?

Thanks

Tim

Hossein Amerkashi

unread,
Aug 20, 2017, 9:21:41 AM8/20/17
to MIT App Inventor Forum
Ah that sorted it, using Genymotion was on API17. Moved up to API22 and all is well.
Great. Glad to know that

Is it possible to have multi-select with this extension?
You should be using Checkbox for multi-select

Is it possible to "save the state" so that one can re-open a session and still have radio buttons checked? (e.g. if two buttons are checked, session saved, then on return, two buttons are still checked)
You can save the state using TinyDB.  Future version will include to setup initial state

Is it possible to remove the check if you click on a button again?
Maybe in future version

Reply all
Reply to author
Forward
0 new messages