本文整理汇总了Java中com.ms.square.android.expandabletextview.ExpandableTextView类的典型用法代码示例。如果您正苦于以下问题:Java ExpandableTextView类的具体用法?Java ExpandableTextView怎么用?Java ExpandableTextView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExpandableTextView类属于com.ms.square.android.expandabletextview包,在下文中一共展示了ExpandableTextView类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ViewHolder
import com.ms.square.android.expandabletextview.ExpandableTextView; //导入依赖的package包/类
private ViewHolder(View itemView) {
super(itemView);
title = (TextView) itemView.findViewById(R.id.title);
description = (ExpandableTextView) itemView.findViewById(R.id.expand_text_view);
firebase_image = (ImageView) itemView.findViewById(R.id.banner);
// likeButton = (ButtonAnimationView) itemView.findViewById(R.id.btnLike);
// bookmarkButton = (ImageButton) itemView.findViewById(R.id.btnBookmark);
shareButton = (ImageButton) itemView.findViewById(R.id.btnShare);
// likeButton.setOnClickListener(this);
// bookmarkButton.setOnClickListener(this);
shareButton.setOnClickListener(this);
}
开发者ID:mangoblogger,项目名称:MangoBloggerAndroidApp,代码行数:15,代码来源:FirebaseDataAdapter.java
示例2: onCreateView
import com.ms.square.android.expandabletextview.ExpandableTextView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_episode_detail, container, false);
tvOverView = (ExpandableTextView) v.findViewById(R.id.tv_overview)
.findViewById(R.id.expand_text_view);
tvTitle = (TextView) v.findViewById(R.id.title);
tvDetails = (TextView) v.findViewById(R.id.details);
ratingBar = (RatingBar) v.findViewById(R.id.rating);
tvVoters = (TextView) v.findViewById(R.id.voters);
tvRating = (TextView) v.findViewById(R.id.tv_rating);
tvAirDate = (TextView) v.findViewById(R.id.aired);
seenButton = (Button) v.findViewById(R.id.button_seen);
collectionButton = (Button) v.findViewById(R.id.button_collection);
buttonLayout = (LinearLayout) v.findViewById(R.id.button_layout);
mainLinearLayout = (LinearLayout) v.findViewById(R.id.episode_linear_layout);
tvEpisodeError = (TextView) v.findViewById(R.id.tv_episode_error);
episodeID = getArguments().getInt("episode_id", -1);
showID = getArguments().getInt("showID", -1);
LayerDrawable stars = (LayerDrawable) ratingBar.getProgressDrawable();
stars.getDrawable(2).setColorFilter(Color.parseColor("#FF5252"), PorterDuff.Mode.SRC_ATOP); // for filled stars
stars.getDrawable(1).setColorFilter(Color.parseColor("#616161"), PorterDuff.Mode.SRC_ATOP); // for half filled stars
stars.getDrawable(0).setColorFilter(Color.parseColor("#616161"), PorterDuff.Mode.SRC_ATOP); // for empty stars
return v;
}
开发者ID:chashmeetsingh,项目名称:TrackIt-Android,代码行数:29,代码来源:EpisodeDetailFragment.java
示例3: initialise
import com.ms.square.android.expandabletextview.ExpandableTextView; //导入依赖的package包/类
private void initialise() {
setContentView(R.layout.activity_add_show);
wheel = (ProgressBar) findViewById(R.id.progress_wheel);
poster = (ImageView) findViewById(R.id.poster);
year = (TextView) findViewById(R.id.tv_year);
status = (TextView) findViewById(R.id.tv_status);
overview = (ExpandableTextView) findViewById(R.id.tv_overview)
.findViewById(R.id.expand_text_view);
show_name = (AutoResizeTextView) findViewById(R.id.tv_show_name);
coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinatorLayout);
fab = (FabButton) findViewById(R.id.fab_add_show);
mSlidingUpPanel = (RelativeLayout) findViewById(R.id.dragView);
ImageView backButton = (ImageView) findViewById(R.id.back);
backButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
Bundle bundle = getIntent().getExtras();
show_id = bundle.getInt("id");
mShowName = bundle.getString("title", "Not Available");
mOverview = bundle.getString("overview", "No information available at this time.");
mYear = bundle.getString("year");
mStatus = bundle.getString("status", "Unknown");
mPoster = bundle.getString("poster", "");
mTMDBShow = bundle.getBoolean("tmdb", false);
helper = new ProgressHelper(fab, this);
if (mOverview.equals("null")) {
mOverview = "No information available at this time.";
}
if (mYear.equals("0")) {
mYear = "Unknown";
}
}
开发者ID:chashmeetsingh,项目名称:TrackIt-Android,代码行数:39,代码来源:AddShowActivity.java
注:本文中的com.ms.square.android.expandabletextview.ExpandableTextView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论