0
방금 Android 개발을 시작했으며 앱이 화면의 일부에서만 실행되는이 문제를 겪고 있습니다. 분명히 이것은 다른 사람들에게도 일어 났지만 해결책을 찾지 못했습니다.앱은 화면의 일부에서만 실행됩니까?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:id="@+id/scrollview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/gaben"
>
<TableLayout
android:id="@+id/tablelayout1"
android:layout_width="312px"
android:layout_height="429px"
android:orientation="vertical"
>
<Button
android:id="@+id/welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to TF2"
android:onClick="welcome"
>
</Button>
...
누군가가 도와 드릴까요 :
은 여기 내 XML의 일부? 감사!
"픽셀"을
android:fillViewport="true"
를 추가하려고및 안드로이드 표준에 따라, 사용하는 것이 바람직하지 않다. 여러 화면을 지원하려면 "dp"또는 "dip"을 사용해야합니다. –