Some radios had buttons that illuminated when they were depressed and
that is what I believe the designers of radio button graphics had in
mind when they put that green circle the in the middle of each
button. Actually, the radio buttons in earlier GUIs have a thin
horizontal bar at the bottom of a rectangular button and they look
more like the illuminated buttons on the radios to which I refer.
Google corrupted the metaphor in this and other ways, not that it
matters.
You are also wrong about simple_list_item_single_choice, the row
template I cited in my post. If you don't believe me, run the
ApiDemos example and choose View in the first list that appears, List
in the one that follows, then 10. Single Choice List in the one that
follows that. As I am sure you know, those round do-hickeys on the
right side of every item in the list are Google's version of radio
buttons. Notice that in the code for this activity, which follows,
the row template ID is simple_list_item_single_choice, as I indicated.
public class List10 extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_single_choice,
GENRES));
final ListView listView = getListView();
listView.setItemsCanFocus(false);
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
}
private static final String[] GENRES = new String[] {
"Action", "Adventure", "Animation", "Children", "Comedy",
"Documentary", "Drama",
"Foreign", "History", "Independent", "Romance", "Sci-Fi",
"Television", "Thriller"
};
}
On Apr 8, 4:53 pm, Bob Kerns <[email protected]> wrote:
> Apology definitely accepted.
>
> Just to illustrate the difficulty -- and why I don't fault you for
> failing to be clear:
>
> None off my car radios EVER had lights that lit up for the buttons.
> They had buttons that would stay depressed. To set a station, you'd
> tune to the station, and then PULL OUT the button, and press it back
> in.
>
> So I think the buttons don't light up, they depress. I think they
> light up when they are selected, because that's what it looks like.
> But I don't think ever seen "lit up" in this context, just depressed.
>
> To really, seriously add to the confusion, the layout you said you
> were using doesn't use a radio button at all! It uses a
> CheckedTextView. That didn't really affect your question or answer,
> but it sure added to the uncertainty in trying to disambiguate. (And
> you can see how "checked" makes more sense as the terminology, when
> you consider it as being generic across this category of widget
> types).
>
> It's a wonder people manage to communicate at all, sometimes. We think
> we speak the same language, but we're not even on the same planet!
>
> On Apr 8, 9:16 am, DonFrench <[email protected]> wrote:
>
>
>
> > FWIW, I used the light metaphor because that is exactly what a radio
> > button group is supposed to portray: a set of buttons on a old-style
> > car radio that have lights behind them that illuminate when you press
> > them (as well as change the station).
> > It turns out
> > that the term in Android for "lighting up" a radio button is "check",
> > which is a violation of the radio button metaphor. And since the one
> > thing that I wanted to do but could not was to create the visual
> > effect of lighting up a radio button, the term "check" would have been
> > inappropriate in that context.
>
> > So anyway, the answer to the question as to how does one light up a
> > specific radio button is to use:
> > getListView().setItemChecked(mClickedItem, true);
>
> > Again, sorry to have upset you and Bob.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.