本文介绍了在java中加入一个字符串(android studio)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 Hi people. im new in Java. so thats why im here. im in my first Java App with Android Studio, But i wondering if there exists something to put a string in BOLD im mean, i was trying this: Quote: txtSaludo =(TextView) findViewById(R.id.txtNombre); txtSaludo.setTypeface(null,Typeface.BOLD); txtSaludo = (TextView)findViewById(R.id.txtNombre);txtSaludo.setTypeface(null, Typeface.BOLD); 工作正常.. 结果是: hi world 但如果我只想喜欢我的意思是:你好世界 我该怎么办? 我尝试了什么: 到目前为止,只有我正在尝试,才是字体,但它适用于所有容器(textview或EditText) )And Works fine..The result is : hi Worldbut if i wanna only the "hi" i mean: hi Worldwhats should i do?What I have tried:so far, only that i was trying, was put typeface, but it is for all the container (textview or EditText)推荐答案 希望你能在这里找到你的问题的答案: android - 如何在Tex上制作特定文本tView BOLD - Stack Overflow [ ^ ] Hope you will find answer to your question here:android - how to make a specific text on TextView BOLD - Stack Overflow[^] 这篇关于在java中加入一个字符串(android studio)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 15:03