com.coorchice.library.SuperTextView Java Examples

The following examples show how to use com.coorchice.library.SuperTextView. 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: TorrentInfoAdapter.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public TaskHolder(View itemView) {
    super(itemView);
    fileNameText = (TextView) itemView.findViewById(R.id.file_name);
    fileIcon = (ImageView) itemView.findViewById(R.id.file_icon);
    fileCheckBox = (ImageView) itemView.findViewById(R.id.file_check_box);
    fileSize = (SuperTextView)itemView.findViewById(R.id.file_size);
    fileType = (SuperTextView)itemView.findViewById(R.id.file_type);
    filePlayer = (SuperTextView)itemView.findViewById(R.id.file_play);
}
 
Example #2
Source File: DownloadingListAdapter.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public TaskHolder(View itemView) {
    super(itemView);
    fileNameText = (TextView) itemView.findViewById(R.id.file_name);
    downSize = (TextView) itemView.findViewById(R.id.down_size);
    downSpeed = (TextView) itemView.findViewById(R.id.down_speed);
    downCDNSpeed = (TextView) itemView.findViewById(R.id.down_cdnspeed);
    RemainingTime = (TextView) itemView.findViewById(R.id.remaining_time);
    startTask = (ImageView) itemView.findViewById(R.id.start_task);
    deleTask = (ImageView) itemView.findViewById(R.id.dele_task);
    fileIcon = (ImageView) itemView.findViewById(R.id.file_icon);
    fileIcon2 = (ImageView) itemView.findViewById(R.id.file_icon2);
    progressBar = (NumberProgressBar)itemView.findViewById(R.id.number_progress_bar);
    downStatus = (SuperTextView)itemView.findViewById(R.id.down_status);
}
 
Example #3
Source File: DownloadSuccessListAdapter.java    From AndroidDownload with Apache License 2.0 5 votes vote down vote up
public TaskHolder(View itemView) {
    super(itemView);
    fileNameText = (TextView) itemView.findViewById(R.id.file_name);
    downSize = (TextView) itemView.findViewById(R.id.down_size);
    fileIcon = (ImageView) itemView.findViewById(R.id.file_icon);
    deleTask = (ImageView) itemView.findViewById(R.id.dele_task);
    btnOpen = (SuperTextView)itemView.findViewById(R.id.btn_open);
    fileIsDele = (SuperTextView)itemView.findViewById(R.id.file_is_dele);
}
 
Example #4
Source File: Type2Adapter.java    From MultiTypeRecyclerViewAdapter with Apache License 2.0 5 votes vote down vote up
@Override
protected void convert(BaseViewHolder helper, ItemEntity2 item) {
    helper.setImageResource(R.id.item_2_img, item.getImg());
    helper.setText(R.id.item_2_title, item.getTitle());
    helper.setText(R.id.item_2_content, item.getContent());
    helper.setText(R.id.item_2_price, item.getPrice());
    LinearLayout tagParent = helper.getView(R.id.item_2_tags);
    tagParent.removeAllViews();
    List<String> tags = item.getTags();
    for (String tag : tags) {
        SuperTextView view = (SuperTextView) mLayoutInflater.inflate(R.layout.label_tag, tagParent, false);
        view.setText(tag);
        tagParent.addView(view);
    }
}
 
Example #5
Source File: MyHelperAdapter.java    From MultiTypeRecyclerViewAdapter with Apache License 2.0 5 votes vote down vote up
private void renderEntity2(BaseViewHolder helper, ItemEntity2 item) {
    helper.setImageResource(R.id.item_2_img, item.getImg());
    helper.setText(R.id.item_2_title, item.getTitle());
    helper.setText(R.id.item_2_content, item.getContent());
    helper.setText(R.id.item_2_price, item.getPrice());
    LinearLayout tagParent = helper.getView(R.id.item_2_tags);
    tagParent.removeAllViews();
    List<String> tags = item.getTags();
    for (String tag : tags) {
        SuperTextView view = (SuperTextView) mLayoutInflater.inflate(R.layout.label_tag, tagParent, false);
        view.setText(tag);
        tagParent.addView(view);
    }
}
 
Example #6
Source File: BaseActivity.java    From AndroidMagnetSearch with Apache License 2.0 4 votes vote down vote up
protected SuperTextView getRightView(){
    if(rightView==null) {
        rightView = findViewById(R.id.right_view);
    }
    return rightView;
}
 
Example #7
Source File: BaseActivity.java    From AndroidDownload with Apache License 2.0 4 votes vote down vote up
protected SuperTextView getRightView(){
    if(rightView==null) {
        rightView = findViewById(R.id.right_view);
    }
    return rightView;
}
 
Example #8
Source File: HeadAdapter.java    From MultiTypeRecyclerViewAdapter with Apache License 2.0 4 votes vote down vote up
@Override
public void onBindViewHolder(BaseViewHolder holder, int position) {
    SuperTextView item = holder.getView(R.id.item_head_home);
    item.setText(sTitles[position]);
    item.setDrawable(sImgs[position]);
}