【发布时间】:2011-04-06 19:16:52
【问题描述】:
我正在显示移动应用程序的条款和条件屏幕作为第一个屏幕。
我正在使用布局文件来显示屏幕。
在布局文件中,我有两个按钮,一个用于接受,一个用于拒绝
<Button android:id="@+id/acceptBtn" android:text="@string/accept"
android:background="@drawable/buttons" android:textColor="@color/white"
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
<Button android:id="@+id/rejecttBtn" android:text="@string/reject"
android:background="@drawable/buttons" android:textColor="@color/white"
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
默认要求是,拒绝按钮应处于选中状态。此外,目前,由于 android:background="@drawable/buttons" 是图像,因此按钮没有获得焦点。
请提供您的输入/示例代码/xml 以解决问题。
提前致谢。
【问题讨论】:
标签: android