Search in sources :

Example 6 with RatingBar

use of android.widget.RatingBar in project SmartAndroidSource by jaychou2012.

the class AbstractAQuery method rating.

/**
	 * Set the rating of a RatingBar.
	 *
	 * @param rating the rating
	 * @return self
	 */
public T rating(float rating) {
    if (view instanceof RatingBar) {
        RatingBar rb = (RatingBar) view;
        rb.setRating(rating);
    }
    return self();
}
Also used : RatingBar(android.widget.RatingBar)

Example 7 with RatingBar

use of android.widget.RatingBar in project RoboBinding by RoboBinding.

the class AbstractRatingBarAttributeTest method initializeViewAndListeners.

@Before
public void initializeViewAndListeners() {
    view = new RatingBar(RuntimeEnvironment.application);
    viewAddOn = new MockRatingBarAddOn(view);
}
Also used : RatingBar(android.widget.RatingBar) Before(org.junit.Before)

Example 8 with RatingBar

use of android.widget.RatingBar in project Android-Skin-Loader by fengjundev.

the class CommonViewHolder method setRating.

public CommonViewHolder setRating(int viewId, float rate) {
    RatingBar ratingBar = getView(viewId);
    ratingBar.setRating(rate);
    return this;
}
Also used : RatingBar(android.widget.RatingBar)

Example 9 with RatingBar

use of android.widget.RatingBar in project baseAdapter by hongyangAndroid.

the class ViewHolder method setRating.

public ViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
Also used : RatingBar(android.widget.RatingBar)

Example 10 with RatingBar

use of android.widget.RatingBar in project baseAdapter by hongyangAndroid.

the class ViewHolder method setRating.

public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
Also used : RatingBar(android.widget.RatingBar)

Aggregations

RatingBar (android.widget.RatingBar)24 TextView (android.widget.TextView)10 View (android.view.View)8 ImageView (android.widget.ImageView)3 OnRatingBarChangeListener (android.widget.RatingBar.OnRatingBarChangeListener)3 AlertDialog (android.app.AlertDialog)2 Intent (android.content.Intent)2 CompoundButton (android.widget.CompoundButton)2 Before (org.junit.Before)2 ContentValues (android.content.ContentValues)1 Paint (android.graphics.Paint)1 MediaMetadataRetriever (android.media.MediaMetadataRetriever)1 NonNull (android.support.annotation.NonNull)1 KeyEvent (android.view.KeyEvent)1 LayoutInflater (android.view.LayoutInflater)1 OnClickListener (android.view.View.OnClickListener)1 OnKeyListener (android.view.View.OnKeyListener)1 OnLongClickListener (android.view.View.OnLongClickListener)1 ViewGroup (android.view.ViewGroup)1 AdapterView (android.widget.AdapterView)1