Java Code Examples for android.widget.RatingBar.setIsIndicator()

The following are Jave code examples for showing how to use setIsIndicator() of the android.widget.RatingBar class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: B4A_ViewsEx   File:   Source Code and License Vote up 5 votes
public void DesignerCreateView(PanelWrapper base, LabelWrapper lw, Map props) {
	RatingBar rb = getObject();
	CustomViewWrapper.replaceBaseWithView2(base, rb);
	LayoutParams lp = rb.getLayoutParams();
	lp.width = LayoutParams.WRAP_CONTENT;
	lp.height = LayoutParams.WRAP_CONTENT;
Example 2
Project: foodie   File:   Source Code and License Vote up 3 votes
private void collectLocationsAndPutOnMap(Map<String, Object> servings, View v) {

        ratingBar = (RatingBar) v.findViewById(;
        //iterate through each user, ignoring their UID
        for (Map.Entry<String, Object> entry : servings.entrySet()) {

            //Get user map
            singleUser = (Map) entry.getValue();
            //Get phone field and append to list

            numbers.add((String) singleUser.get("rating"));
        for( int i= 0; i < numbers.size(); i++ ) {

            number = Float.parseFloat(numbers.get(i));
            num = num + number;
        num= num/numbers.size();

        num = 0f;