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

The following are Jave code examples for showing how to use setStepSize() 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.
+ Save this method
Example 1
Project: B4A_ViewsEx   File: RatingBarWrapper.java   View Source Code Vote up 5 votes
@Override
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;
	rb.setIsIndicator((Boolean)props.Get("Indicator"));
	rb.setNumStars((Integer)props.Get("NumberOfStars"));
	rb.setRating((Float)props.Get("Rating"));
	rb.setStepSize((Float)props.Get("StepSize"));
}