首页 新闻 会员 周边

Eclipse 中Android的Graphical layout中显示的UI界面和AVD中显不一致

0
悬赏园豆:50 [已关闭问题] 关闭于 2014-06-14 21:17

我在Myeclipse中谢了这样的布局xml代码:

Activity_status.xml 如下:
<!-- Status Activity 的主布局 -->
< LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.mobile.pingo.StatusActivity"
    tools:ignore="MergeRootFrame" >
    <!-- 表示标题的 TextView -->
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:gravity="center"
        android:text="@string/titleStatus"
        android:textSize="30sp" />
   
    <!-- 状态的输入框 editText -->
    <EditText
        android:id="@+id/editText"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="top|center_horizontal"
        android:hint="@string/hintText" />
   
   
    <!-- 更新状态按钮  buttonUpdate -->
    <Button
        android:id="@+id/buttonUpdate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/buttonUpdate"
        android:textSize="20sp" />
   
< /LinearLayout>

 

在Graphical layout 视图中显示如下:

《见下面的截图》

但是当我启动AVD后显示的界面却是如下:

《见下面的截图》

在整个工程中没有错误呀?
工程的最低Android版本是4.0 , 目标版本是4.3 , 编译使用的Android_4.4.2
使用的AVD是基于Android_4.3

这是什么原因 , 而且写过的很多布局代码在AVD中都不和Graphical layout视图中一致 , 这是为什么呢?

 

RoperLee的主页 RoperLee | 初学一级 | 园豆:76
提问于:2014-06-14 10:05
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册