android.widget.TextView.setFreezesText()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(202)

本文整理了Java中android.widget.TextView.setFreezesText()方法的一些代码示例,展示了TextView.setFreezesText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.setFreezesText()方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:setFreezesText

TextView.setFreezesText介绍

暂无

代码示例

代码示例来源:origin: Tencent/RapidView

public void run(RapidParserObject object, Object view, Var value) {
    ((TextView)view).setFreezesText(value.getBoolean());
  }
}

代码示例来源:origin: stackoverflow.com

TextView tv = new TextView(this);
 rl.addView(tv);// Here is Your Mistake ! Remove it 
 tv.setLayoutParams(paramsSong);     
 tv.setEllipsize(TruncateAt.MARQUEE);
 tv.setFocusableInTouchMode(true);
 tv.setFreezesText(true);
 tv.setSingleLine(true);
 tv.setMarqueeRepeatLimit(-1);
 tv.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
 tv.setSelected(true);
     rl.addView(tv);// Adding view Here is Absolutely Right ! 
 DigitalClock dg = new DigitalClock(this);
 dg.setHeight(setHeightHere);
 dg.setWidth(setWidthHere);
     rl.addView(dg);

代码示例来源:origin: stackoverflow.com

textrootname.setEllipsize(TruncateAt.MARQUEE);
textrootname.setFocusableInTouchMode(true);
textrootname.setFreezesText(true);
textrootname.setMarqueeRepeatLimit(-1);
textrootname.setFocusable(true);

代码示例来源:origin: DingMouRen/DingDingMap

text.setFocusable(true);
text.setFocusableInTouchMode(true);
text.setFreezesText(true);
post(new Runnable() {
  @Override

代码示例来源:origin: DingMouRen/DingDingMap

subText.setFocusable(true);
subText.setFocusableInTouchMode(true);
subText.setFreezesText(true);
post(new Runnable() {
  @Override

代码示例来源:origin: jelic98/dynamico

textView.setFreezesText(attributes.getBoolean("freezesText"));

代码示例来源:origin: samlss/TimoMenu

private void initTextView(){
  setNormalTextState();
  mTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, mTimoItemViewParameter.getTextSize());
  mTextView.setEllipsize(mTimoItemViewParameter.getEllipsize());
  mTextView.setGravity(Gravity.CENTER);
  if (mTimoItemViewParameter.getEllipsize() == null
      || mTimoItemViewParameter.getEllipsize() == TextUtils.TruncateAt.MARQUEE) {
    mTextView.setSingleLine(true);
    mTextView.setMarqueeRepeatLimit(-1);
    mTextView.setHorizontallyScrolling(true);
    mTextView.setFocusable(true);
    mTextView.setFocusableInTouchMode(true);
    mTextView.setFreezesText(true);
  }
  LayoutParams layoutParams = new LayoutParams(mTimoItemViewParameter.getTextWidth(), mTimoItemViewParameter.getTextHeight());
  if (mTimoItemViewParameter.getTextMargin() != null) {
    layoutParams.leftMargin = mTimoItemViewParameter.getTextMargin().left;
    layoutParams.topMargin = mTimoItemViewParameter.getTextMargin().top;
    layoutParams.rightMargin = mTimoItemViewParameter.getTextMargin().right;
    layoutParams.bottomMargin = mTimoItemViewParameter.getTextMargin().bottom;
  }
  if (mTimoItemViewParameter.getTextPadding() != null) {
    mTextView.setPadding(mTimoItemViewParameter.getTextPadding().left,
        mTimoItemViewParameter.getTextPadding().top,
        mTimoItemViewParameter.getTextPadding().right,
        mTimoItemViewParameter.getTextPadding().bottom);
  }
  addView(mTextView, layoutParams);
}

相关文章

TextView类方法