我需要一点帮助来自定义复选框的外观。 我的XML文件是如何更改Android复选框样式
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin" >
<TextView
android:id="@+id/titleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="10dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="@string/preferances_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="26sp" />
<CheckBox
android:id="@+id/soundCheckBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:paddingBottom="10dp"
android:text="@string/soundEnabled"
android:textSize="20sp" />
</LinearLayout>
它看起来像这样
我希望我的复选框看起来像这样(有标题和描述)
我怎么能去做?
在Android上设置屏幕的官方文档是在这里:http://developer.android.com/guide/topics/ UI/settings.html –