jjzjj

StackedTextView

全部标签

android - 在自定义 View 中设置 textSize 会产生巨大的文本

我在自定义View的构造函数中调用了以下内容:privatevoidstyle(Resources.Themetheme,AttributeSetattrs){TypedArraya=theme.obtainStyledAttributes(attrs,R.styleable.StackedTextView,0,0);try{DebugTool.assertTrue(holdr!=null,"Viewholderhasnotbeenproperlyintialized.");Stringline1=a.getString(R.styleable.StackedTextView_line

android - 在自定义 View 中设置 textSize 会产生巨大的文本

我在自定义View的构造函数中调用了以下内容:privatevoidstyle(Resources.Themetheme,AttributeSetattrs){TypedArraya=theme.obtainStyledAttributes(attrs,R.styleable.StackedTextView,0,0);try{DebugTool.assertTrue(holdr!=null,"Viewholderhasnotbeenproperlyintialized.");Stringline1=a.getString(R.styleable.StackedTextView_line