首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
首页标签textview

#textview

专门用来显示字符串的 view 子类

Android studio 怎么把数组放到textview中?

加固之后在部分9.0手机上安装后打不开?

不要太暴躁新手上路

从日志看,可能和应用引入的360插件有关;

可以提工单反馈;

FragmentTransaction.replace()不起作用应如何解决?

嗨喽你好摩羯座

为childFragment的主布局提供背景颜色。

像android:background =“#FFFFFF”。

怎么当UItextfield更改时检查?

hyper_smurf2012软件工程师
可以在接口生成器中建立此连接。 单击屏幕顶部的辅助编辑器(中间有两个圆圈)。 [4FH37.png] ​ Ctrl+单击界面生成器中的Textfield。 从EditingChanged拖动到辅助视图中的视图控制器类中。 [MfpD3.png] ​ 命名您的函数(例如“textDidChange”)并单击Connection。 [H74o7.png] ​... 展开详请

如何限制TextView的长度?

wsnbb203天人合一
使用maxLength属性,然后使用android:ellipsize="marquee"自动将“...”添加到已被截断的任何行的末尾: <TextView android:id="@+id/txtView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:maxLength="10" android:ellipsize="marquee"/> ... 展开详请

Android:如何实现点击TextView时从原始资源播放mp3文件?

创建mPlayer对象,您应该将上下文传递给它,这在您的情况下是这样的:PlayWord.this。

如何在Android TextView中将字体样式设置为粗体,斜体和下划线?

如此逝水流年普通程序员老宋的日常读书学习笔记
应该使TextView在同一时间使用粗体,下划线和斜体。 strings.xml <resources> <string name="register"><u><b><i>Copyright</i></b></u></string> </resources> main.xml <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/textview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/register" /> or In JAVA TextView textView = new TextView(this); textView.setText(R.string.register); 有时上述方法可能在你使用动态文本时不会有帮助。 所以在这种情况下,SpannableString开始运行。 String tempString="Copyright"; TextView text=(TextView)findViewById(R.id.text); SpannableString spanString = new SpannableString(tempString); spanString.setSpan(new UnderlineSpan(), 0, spanString.length(), 0); spanString.setSpan(new StyleSpan(Typeface.BOLD), 0, spanString.length(), 0); spanString.setSpan(new StyleSpan(Typeface.ITALIC), 0, spanString.length(), 0); text.setText(spanString);... 展开详请

如何在UITextView中损失保证金/填充?

这个解决方法是在2009年IOS 3.0发布时编写的。它不再适用。 我遇到了同样的问题,最后我不得不结束使用 nameField.contentInset = UIEdgeInsetsMake(-4,-8,0,0); nameField是一个UITextView。我碰巧使用的字体是Helvetica 16点。它是我绘制的特定字段大小的唯一定制解决方案。这使得左侧的偏移量与左侧齐平,并且顶部偏移量在我们希望盒子被吸引的地方。 此外,这似乎只适用于UITextViews你使用默认的对齐方式,即。 nameField.textAlignment = NSTextAlignmentLeft; 例如,右对齐,UIEdgeInsetsMake似乎对右边没有任何影响。 至少,使用.contentInset属性可以让你的字段的“正确”的立场,并容纳偏差而不会抵消你的UITextViews。... 展开详请

如何在Android的textview中添加边框?

HERO坑货深漂程序猿
使用可绘制的形状 将以下内容保存为可绘制文件夹中的XML文件(例如,my_border.xml): <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <!-- View background color --> <solid android:color="@color/background_color" > </solid> <!-- View border color and width --> <stroke android:width="1dp" android:color="@color/border_color" > </stroke> <!-- The radius makes the corners rounded --> <corners android:radius="2dp" > </corners> </shape> 然后将其设置为TextView的背景: <TextView android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/my_border" />... 展开详请

UILabel中有多行文本?

秋之夕颜清念念不忘,必有回响
在IB中,将行数设置为0(允许无限行) 当使用IB在文本字段中键入内容时,使用“alt-return”插入一个返回并转到下一行(或者可以复制已经由行分隔的文本)。... 展开详请

如何在Android中更改TextView的fontFamily?

Tabor

Tencent · Content Operation (已认证)

一个会花式跑脚本的boy~
从android 4.1 / 4.2 / 5.0开始,下列Roboto字体系列可用: android:fontFamily="sans-serif" // roboto regula android:fontFamily="sans-serif-light" // roboto light android:fontFamily="sans-serif-condensed" // roboto condensed android:fontFamily="sans-serif-black" // roboto black android:fontFamily="sans-serif-thin" // roboto thin (android 4.2) android:fontFamily="sans-serif-medium" // roboto medium (android 5.0) 在这里输入图像说明 与...结合 android:textStyle="normal|bold|italic" 这16个变种是可能的: Roboto经常 Roboto斜体 Roboto大胆 Roboto粗体斜体 的Roboto光强 Roboto-Light斜体 的Roboto薄 Roboto薄斜体 的Roboto冷凝 Roboto-Condensed斜体 Roboto-Condensed bold Roboto-Condensed粗斜体 的Roboto黑 Roboto黑色斜体 的Roboto介质 Roboto中等斜体 fonts.xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="font_family_light">sans-serif-light</string> <string name="font_family_medium">sans-serif-medium</string> <string name="font_family_regular">sans-serif</string> <string name="font_family_condensed">sans-serif-condensed</string> <string name="font_family_black">sans-serif-black</string> <string name="font_family_thin">sans-serif-thin</string> </resources>... 展开详请

如何设置TextView样式(粗体或斜体)?

嗝屁软件工程
试试这个设置TextView为粗体或斜体 textView.setTypeface(textView.getTypeface(), Typeface.BOLD); textView.setTypeface(textView.getTypeface(), Typeface.ITALIC); textView.setTypeface(textView.getTypeface(), Typeface.BOLD_ITALIC);... 展开详请

Xcode 6:键盘不显示在模拟器中?

在ios8 beta模拟器中进行测试时,您可以使用⌘K在“软件键盘”和“硬件键盘”之间切换。

iOS模拟器8.0,快捷方式是⇧⌘K。

如何在Android上使背景20%透明?

Dust资深服务器虚拟化工程师。
使用下面的黑色代码: <color name="black">#000000</color> 现在,如果我想使用不透明度,那么你可以使用下面的代码: <color name="black">#99000000</color> 以下为不透明代码: 十六进制不透明度值 100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C 50% — 80 45% — 73 40% — 66 35% — 59 30% — 4D 25% — 40 20% — 33 15% — 26 10% — 1A 5% — 0D 0% — 00... 展开详请
领券