use of net.osmand.plus.widgets.multistatetoggle.RadioItem.OnRadioItemClickListener in project Osmand by osmandapp.
the class SelectIndexesHelper method createSrtmRadioBtn.
private RadioItem createSrtmRadioBtn(final boolean useMeters) {
int titleId = useMeters ? R.string.shared_string_meters : R.string.shared_string_feet;
String title = Algorithms.capitalizeFirstLetter(app.getString(titleId));
RadioItem radioItem = new TextRadioItem(title);
radioItem.setOnClickListener(new OnRadioItemClickListener() {
@Override
public boolean onRadioItemClick(RadioItem radioItem, View view) {
setUseMetersForAllItems(useMeters);
updateListItems();
updateSize();
return true;
}
});
return radioItem;
}
Aggregations