安卓eclipse activity_main 的界面问题

图片说明
图片说明

第一个 是我的界面,第二个是老师的界面,
在那个安卓上,我比老师少了 两个工具,导致我两张图片显示在一起!
寻求老师帮助

可以看看你的布局文件的代码吗?这效果看不出问题原因啊!

吧你的布局贴出来啊。。。不然怎么看、

用线性布局横着

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"

android:orientation="horizontal" >

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" />

<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" />

用线性布局横着

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"

android:orientation="horizontal" >

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" />

<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" />

感觉应该是你的布局错了,你的是FrameLayout,图片当然会重叠在一起,而老师的布局估计就是linearLayout,如楼上所说