我在layout
中有一個簡單的ScrollView
,它以對話格式顯示About Box
。所以它只是在對話框中彈出在電話屏幕上。用戶關閉方框的唯一方法是點擊後退按鈕(這是一個意圖)。是否可以將按鈕添加到滾動視圖?
我有辦法在箱子上添加一個關閉button
,或者我可以讓用戶用手指敲擊屏幕上的方框並關閉它嗎?
這裏是我的xml
:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:screenOrientation="portrait"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip" >
<TextView
android:id="@+id/about_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about_text" />
</ScrollView>
你忘了你的xml文件 – 2010-11-22 04:08:17
哎呀,對不起 - 固定 – Sapp 2010-11-22 04:13:46
順便說一句...剛剛收到你的電子郵件...希望你已經修復了一切XD – Cristian 2010-11-22 04:17:38