Text 需要制作应用程序';s文本样式粗体

Text 需要制作应用程序';s文本样式粗体,text,fonts,Text,Fonts,我通过将android:textStyle=“bold”添加到我的xml文件的所有部分,即EditText、Button、TextView等,成功地生成了粗体文本。但是有没有办法使其成为全局文本,从而影响整个应用程序?还是必须始终指定要加粗的字段?我希望这是有道理的。多谢各位 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res

我通过将android:textStyle=“bold”添加到我的xml文件的所有部分,即EditText、Button、TextView等,成功地生成了粗体文本。但是有没有办法使其成为全局文本,从而影响整个应用程序?还是必须始终指定要加粗的字段?我希望这是有道理的。多谢各位

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#b5b3b3"
android:textStyle="bold"
android:orientation="vertical" >

<EditText
    android:id="@+id/editText1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:ems="10"
    android:textStyle="bold"
    android:hint="Enter Text Here" >

    <requestFocus />
</EditText>

<Button
    android:id="@+id/button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textStyle="bold"
    android:text="Show Items" />

<TextView
    android:id="@+id/textView1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Items will display here" 
    android:color="#FFF8AA"
    android:textStyle="bold"
    android:orientation="vertical" />

<Button
    android:id="@+id/button2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textStyle="bold"
    android:text="SaveText" />

<TextView
    android:id="@+id/textView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textStyle="bold"
    android:text="Number of Items in Array" />

</LinearLayout>

如果应用程序正在使用PhoneGap,则可以在.css文件中指定字体大小。只需使用以下代码将css附加到所有页面

body
{
    font-weight:bold;
}

如果您没有使用PhoneGap,恐怕我帮不了您。

我实际上使用的是EclipseJuno和Java编码。我明白了,同样的方法行吗。谢谢你的时间和努力。