Skip to content
Snippets Groups Projects
Commit 1278c06c authored by Amirhossein Naghshzan's avatar Amirhossein Naghshzan Committed by Adrien Béraud
Browse files

tv: force card title shows 2 lines

Change-Id: I8316952881511a2b22a1cf129f6cd38d04d8487a
parent c5bdefaa
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,8 @@ public class CardView extends BaseCardView {
mTitleView = (TextView) inflater.inflate(R.layout.lb_image_card_view_themed_title, mInfoArea, false);
mTitleView.setTextSize(12);
mTitleView.setTypeface(mulishBold);
mTitleView.setMaxLines(2);
mTitleView.setEllipsize(TextUtils.TruncateAt.END);
mInfoArea.addView(mTitleView);
}
......
......@@ -32,7 +32,6 @@ import cx.ring.tv.cards.CardView
class IconCardPresenter(context: Context) : AbstractCardPresenter<CardView>(ContextThemeWrapper(context, R.style.ContactCardTheme)) {
override fun onCreateView(): CardView {
val cardView = CardView(context)
cardView.setTitleSingleLine(false)
cardView.setBackgroundColor(context.resources.getColor(R.color.tv_transparent))
cardView.setInfoAreaBackgroundColor(context.resources.getColor(R.color.transparent))
val image = cardView.mainImageView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment