공지사항 다 읽었습니다..
이클립스로 안드로이드 2.2를 사용하고 잇고요
갤럭시탭 에뮬레이터로 동작시키고 있습니다
프레임레이아웃으로 두개를 겹치는데(한개는 그림파일, 한개는 테이블레이아웃)
그림파일은 화면에 제대로 나오는데
버튼두개가 제대로 안나오네요..
오른쪽에 있는 버튼이 화면바깥으로 삐져나가서 에뮬에는 절반정도밖에 안나와요..
어디서 설정을 잘못한건가요??
처음 질문하는거라서 사진을 올리고 싶은데 방법을 잘모르겟네요..
기본자바코드
package exam.NTest2;
import android.app.Activity;
import android.os.Bundle;
public class NTest2_Page1 extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
레이아웃 xml코드
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/main"
/>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TableRow>
<Button
android:id="@+main/main_btn_01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/main_btn_01"
/>
<Button
android:id="@+main/main_btn_02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/main_btn_02"
/>
</TableRow>
</TableLayout>
</FrameLayout>
매니패스트
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="exam.NTest2"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".NTest2_Page1"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
<supports-screens android:largeScreens="true"
android:normalScreens="ture"
android:smallScreens="true"
android:anyDensity="true" />
</manifest>
공지사항을 다 읽었음




android:layout_orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TableLayout
android:layout_orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
이렇게 하면 뭔가 좀 보이지 않을까요?