こんにちは、TextView で設定カテゴリ (下線などを含む) スタイルを使用したいのですが、どのスタイル/設定を xml に実装する必要がありますか?
ありがとうございました
こんにちは、TextView で設定カテゴリ (下線などを含む) スタイルを使用したいのですが、どのスタイル/設定を xml に実装する必要がありますか?
ありがとうございました
できることは、Android:layoutを使用して PreferenceCategory のカスタム レイアウトを設定することです。
<PreferenceCategory android:layout="@layout/prefcat_layout">
    ...
</PreferenceCategory>
prefcat_layout.xml :
<?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:orientation="vertical" >
    <TextView 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/underlined_title"/>
</LinearLayout>
ストリングス.xml :
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="underlined_title"> <u>Underlined Application preferences title</u></string>
</resources>