android.support.v7.widget.AppCompatRatingBar Java Examples

The following examples show how to use android.support.v7.widget.AppCompatRatingBar. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BookDetailAdapter.java    From youqu_master with Apache License 2.0 6 votes vote down vote up
public BookInfoHolder(View itemView) {
    super(itemView);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_comment_num = (TextView) itemView.findViewById(R.id.tv_comment_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    iv_more_info = (ImageView) itemView.findViewById(R.id.iv_more_info);
    progressBar = (ProgressBar) itemView.findViewById(R.id.progressBar);
    rl_more_info = (RelativeLayout) itemView.findViewById(R.id.rl_more_info);
    ll_publish_info = (LinearLayout) itemView.findViewById(R.id.ll_publish_info);

    tv_author = (TextView) itemView.findViewById(R.id.tv_author);
    tv_publisher = (TextView) itemView.findViewById(R.id.tv_publisher);
    tv_subtitle = (TextView) itemView.findViewById(R.id.tv_subtitle);
    tv_origin_title = (TextView) itemView.findViewById(R.id.tv_origin_title);
    tv_translator = (TextView) itemView.findViewById(R.id.tv_translator);
    tv_publish_date = (TextView) itemView.findViewById(R.id.tv_publish_date);
    tv_pages = (TextView) itemView.findViewById(R.id.tv_pages);
    tv_price = (TextView) itemView.findViewById(R.id.tv_price);
    tv_binding = (TextView) itemView.findViewById(R.id.tv_binding);
    tv_isbn = (TextView) itemView.findViewById(R.id.tv_isbn);
}
 
Example #2
Source File: BookDetailAdapter.java    From MaterialHome with Apache License 2.0 6 votes vote down vote up
public BookInfoHolder(View itemView) {
    super(itemView);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_comment_num = (TextView) itemView.findViewById(R.id.tv_comment_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    iv_more_info = (ImageView) itemView.findViewById(R.id.iv_more_info);
    progressBar = (ProgressBar) itemView.findViewById(R.id.progressBar);
    rl_more_info = (RelativeLayout) itemView.findViewById(R.id.rl_more_info);
    ll_publish_info = (LinearLayout) itemView.findViewById(R.id.ll_publish_info);

    tv_author = (TextView) itemView.findViewById(R.id.tv_author);
    tv_publisher = (TextView) itemView.findViewById(R.id.tv_publisher);
    tv_subtitle = (TextView) itemView.findViewById(R.id.tv_subtitle);
    tv_origin_title = (TextView) itemView.findViewById(R.id.tv_origin_title);
    tv_translator = (TextView) itemView.findViewById(R.id.tv_translator);
    tv_publish_date = (TextView) itemView.findViewById(R.id.tv_publish_date);
    tv_pages = (TextView) itemView.findViewById(R.id.tv_pages);
    tv_price = (TextView) itemView.findViewById(R.id.tv_price);
    tv_binding = (TextView) itemView.findViewById(R.id.tv_binding);
    tv_isbn = (TextView) itemView.findViewById(R.id.tv_isbn);
}
 
Example #3
Source File: EBookDetailAdapter.java    From MaterialHome with Apache License 2.0 6 votes vote down vote up
public BookInfoHolder(View itemView) {
    super(itemView);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_words_num = (TextView) itemView.findViewById(R.id.tv_words_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    iv_more_info = (ImageView) itemView.findViewById(R.id.iv_more_info);
    progressBar = (ProgressBar) itemView.findViewById(R.id.progressBar);
    rl_more_info = (RelativeLayout) itemView.findViewById(R.id.rl_more_info);
    ll_publish_info = (LinearLayout) itemView.findViewById(R.id.ll_publish_info);

    tv_author = (TextView) itemView.findViewById(R.id.tv_author);
    tv_followers = (TextView) itemView.findViewById(R.id.tv_followers);
    retention = (TextView) itemView.findViewById(R.id.tv_retention);
    tv_day_words = (TextView) itemView.findViewById(R.id.tv_day_words);
    tv_chapters = (TextView) itemView.findViewById(R.id.tv_chapters);
    tv_publish_date = (TextView) itemView.findViewById(R.id.tv_publish_date);
    tv_last_hapter = (TextView) itemView.findViewById(R.id.tv_last_hapter);
    tv_serial = (TextView) itemView.findViewById(R.id.tv_serial);
    tv_minor_cate = (TextView) itemView.findViewById(R.id.tv_minor_cate);
    tv_creater = (TextView) itemView.findViewById(R.id.tv_creater);

    flow_layout = (FlowLayout) itemView.findViewById(R.id.flow_layout);
}
 
Example #4
Source File: BookReviewsAdapter.java    From youqu_master with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
}
 
Example #5
Source File: BookDetailAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
    tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
}
 
Example #6
Source File: BookDetailAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookInfoHolder(View itemView) {
    super(itemView);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_comment_num = (TextView) itemView.findViewById(R.id.tv_comment_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    iv_more_info = (ImageView) itemView.findViewById(R.id.iv_more_info);
    rl_more_info = (RelativeLayout) itemView.findViewById(R.id.rl_more_info);

    tv_subtitle = (TextView) itemView.findViewById(R.id.tv_subtitle);
    tv_origin_title = (TextView) itemView.findViewById(R.id.tv_origin_title);
    tv_translator = (TextView) itemView.findViewById(R.id.tv_translator);

}
 
Example #7
Source File: BookListAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookListHolder(View itemView) {
    super(itemView);
    iv_book_img = (ImageView) itemView.findViewById(R.id.iv_book_img);
    tv_book_title = (TextView) itemView.findViewById(R.id.tv_book_title);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    tv_book_description = (TextView) itemView.findViewById(R.id.tv_book_description);
}
 
Example #8
Source File: MyViewHolder.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public MyViewHolder setRating(int viewId, float rating){
    AppCompatRatingBar rb = getView(viewId);
    if(rb != null){
        rb.setRating(rating);
    }
    return this;
}
 
Example #9
Source File: BookSeriesCeilHolder.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
private void initView(){
    mContentView = LayoutInflater.from(mContext).inflate(R.layout.item_book_series_ceil, null, false);
    iv_book_img = (ImageView) mContentView.findViewById(R.id.iv_book_img);
    tv_title = (TextView) mContentView.findViewById(R.id.tv_title);
    ratingBar_hots = (AppCompatRatingBar) mContentView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) mContentView.findViewById(R.id.tv_hots_num);
}
 
Example #10
Source File: BookDetailAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
    tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
}
 
Example #11
Source File: BookReviewsAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
            super(itemView);
//            tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
            iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
            tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
            ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
            tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
//            iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
            tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
            tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
//            tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
        }
 
Example #12
Source File: BookListAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public BookListHolder(View itemView) {
    super(itemView);
    iv_book_img = (ImageView) itemView.findViewById(R.id.iv_book_img);
    tv_book_title = (TextView) itemView.findViewById(R.id.tv_book_title);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    tv_book_description = (TextView) itemView.findViewById(R.id.tv_book_description);
}
 
Example #13
Source File: EBookDetailAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
    tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
}
 
Example #14
Source File: EBookListAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public EBookListHolder(View itemView) {
    super(itemView);
    iv_book_img = (ImageView) itemView.findViewById(R.id.iv_book_img);
    tv_book_title = (TextView) itemView.findViewById(R.id.tv_book_title);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    tv_book_description = (TextView) itemView.findViewById(R.id.tv_book_description);
}
 
Example #15
Source File: EBookReviewsAdapter.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
            super(itemView);
//            tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
            iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
            tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
            ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
            tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
//            iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
            tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
            tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
//            tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
        }
 
Example #16
Source File: BookSeriesCeilHolder.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
private void initView() {
    mContentView = LayoutInflater.from(UIUtils.getContext()).inflate(R.layout.item_book_series_ceil, null, false);
    iv_book_img = (ImageView) mContentView.findViewById(R.id.iv_book_img);
    tv_title = (TextView) mContentView.findViewById(R.id.tv_title);
    ratingBar_hots = (AppCompatRatingBar) mContentView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) mContentView.findViewById(R.id.tv_hots_num);
}
 
Example #17
Source File: EBookSeriesCeilHolder.java    From MaterialHome with Apache License 2.0 5 votes vote down vote up
private void initView() {
    mContentView = LayoutInflater.from(UIUtils.getContext()).inflate(R.layout.item_book_series_ceil, null, false);
    iv_book_img = (ImageView) mContentView.findViewById(R.id.iv_book_img);
    tv_title = (TextView) mContentView.findViewById(R.id.tv_title);
    ratingBar_hots = (AppCompatRatingBar) mContentView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) mContentView.findViewById(R.id.tv_hots_num);
}
 
Example #18
Source File: BookDetailAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
    tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
}
 
Example #19
Source File: BookDetailAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookInfoHolder(View itemView) {
    super(itemView);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_comment_num = (TextView) itemView.findViewById(R.id.tv_comment_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    iv_more_info = (ImageView) itemView.findViewById(R.id.iv_more_info);
    rl_more_info = (RelativeLayout) itemView.findViewById(R.id.rl_more_info);

    tv_subtitle = (TextView) itemView.findViewById(R.id.tv_subtitle);
    tv_origin_title = (TextView) itemView.findViewById(R.id.tv_origin_title);
    tv_translator = (TextView) itemView.findViewById(R.id.tv_translator);

}
 
Example #20
Source File: BookListAdapter.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public BookListHolder(View itemView) {
    super(itemView);
    iv_book_img = (ImageView) itemView.findViewById(R.id.iv_book_img);
    tv_book_title = (TextView) itemView.findViewById(R.id.tv_book_title);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) itemView.findViewById(R.id.tv_hots_num);
    tv_book_info = (TextView) itemView.findViewById(R.id.tv_book_info);
    tv_book_description = (TextView) itemView.findViewById(R.id.tv_book_description);
}
 
Example #21
Source File: MyViewHolder.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
public MyViewHolder setRating(int viewId, float rating){
    AppCompatRatingBar rb = getView(viewId);
    if(rb != null){
        rb.setRating(rating);
    }
    return this;
}
 
Example #22
Source File: BookSeriesCeilHolder.java    From ReadMark with Apache License 2.0 5 votes vote down vote up
private void initView(){
    mContentView = LayoutInflater.from(mContext).inflate(R.layout.item_book_series_ceil, null, false);
    iv_book_img = (ImageView) mContentView.findViewById(R.id.iv_book_img);
    tv_title = (TextView) mContentView.findViewById(R.id.tv_title);
    ratingBar_hots = (AppCompatRatingBar) mContentView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) mContentView.findViewById(R.id.tv_hots_num);
}
 
Example #23
Source File: BookDetailAdapter.java    From youqu_master with Apache License 2.0 5 votes vote down vote up
public BookCommentHolder(View itemView) {
    super(itemView);
    tv_comment_title = (TextView) itemView.findViewById(R.id.tv_comment_title);
    iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
    tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
    ratingBar_hots = (AppCompatRatingBar) itemView.findViewById(R.id.ratingBar_hots);
    tv_comment_content = (TextView) itemView.findViewById(R.id.tv_comment_content);
    iv_favorite = (ImageView) itemView.findViewById(R.id.iv_favorite);
    tv_favorite_num = (TextView) itemView.findViewById(R.id.tv_favorite_num);
    tv_update_time = (TextView) itemView.findViewById(R.id.tv_update_time);
    tv_more_comment = (TextView) itemView.findViewById(R.id.tv_more_comment);
}
 
Example #24
Source File: BookSeriesCeilHolder.java    From youqu_master with Apache License 2.0 5 votes vote down vote up
private void initView() {
    mContentView = LayoutInflater.from(BaseApplication.getAppContext()).inflate(R.layout.item_book_series_ceil, null, false);
    iv_book_img = (ImageView) mContentView.findViewById(R.id.iv_book_img);
    tv_title = (TextView) mContentView.findViewById(R.id.tv_title);
    ratingBar_hots = (AppCompatRatingBar) mContentView.findViewById(R.id.ratingBar_hots);
    tv_hots_num = (TextView) mContentView.findViewById(R.id.tv_hots_num);
}
 
Example #25
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult appCompatRatingBar() {
  return BaseDSL.v(AppCompatRatingBar.class);
}
 
Example #26
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void appCompatRatingBar(Anvil.Renderable r) {
  return BaseDSL.v(AppCompatRatingBar.class, r);
}