0
我有一個LinearLayout
包含一張圖片和3 Buttons
。ImageView尺寸似乎比它小
圖片只需要在屏幕的一小部分,然後他們3個按鈕
的問題是,我必須真正向下滾動才能看到的3個按鍵。
圖片是這麼多地方。
如何讓它在一個屏幕上顯示所有內容?
下面的代碼
<ScrollView 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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:scaleType="fitXY"
android:maxHeight="40dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/logooutlast" />
<Button
android:layout_marginTop="20dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/buttonWalktrough" />
<Button
android:layout_marginTop="20dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/buttonFullCompletion" />
<Button
android:layout_marginTop="20dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/buttonInsaneMode" />
</LinearLayout>
這裏是我的應用程序
目前看,我想只是出現下面的圖片我的按鈕。
有沒有辦法解決這個問題?