<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/info"
android:text="您经常浏览的网站是:"
android:textSize="20px"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<!-- 默认选中了CheckBox2 -->
<CheckBox
android:id="@+id/url1"
android:text="www.baidu.com"
android:layout_width="fill_parent"
android:checked="true"
android:layout_height="wrap_content"/>
<CheckBox
android:id="@+id/url2"
android:text="www.xyc.edu.com"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<CheckBox
android:id="@+id/url3"
android:text="www.google.com"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
效果图