2011-07-27 2 views
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의 일부? 감사!

+0

"픽셀"을 android:fillViewport="true"를 추가하려고

android:layout_width="fillparent" android:layout_height="fillparent" 

및 안드로이드 표준에 따라, 사용하는 것이 바람직하지 않다. 여러 화면을 지원하려면 "dp"또는 "dip"을 사용해야합니다. –

답변

3
android:layout_width="312px" 
android:layout_height="429px" 

...이 table 폭과 높이가 화면의 크기보다 작은 특정 값으로 설정 수단. 이 같은

fillparent를 설정해야합니다 : 당신의 ScrollView

+0

죄송합니다. 이것은 작동하지 않았습니다. 여전히 동일합니다. – TheGag96