Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法查看虚拟设备的图形显示_Android_Eclipse_Android Layout - Fatal编程技术网

Android 无法查看虚拟设备的图形显示

Android 无法查看虚拟设备的图形显示,android,eclipse,android-layout,Android,Eclipse,Android Layout,所以我正在开发一款Android应用程序。现在我尝试进入res-menu-layout-activity\u main来设计虚拟设备。但当我打开它时,id并没有显示虚拟设备。有什么想法需要做什么吗?下面是它的截图 这是它的XML文件。看起来有点凌乱和混乱。实际上,我只希望所有四个字段都左对齐,列为viewLats、view4、viewLongs和view1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/a

所以我正在开发一款Android应用程序。现在我尝试进入res-menu-layout-activity\u main来设计虚拟设备。但当我打开它时,id并没有显示虚拟设备。有什么想法需要做什么吗?下面是它的截图

这是它的XML文件。看起来有点凌乱和混乱。实际上,我只希望所有四个字段都左对齐,列为viewLats、view4、viewLongs和view1

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.oldimagereveal.MainActivity" >

    <TextView
        android:id="@+id/textLats"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView1"
        android:layout_marginTop="29dp"
        android:linksClickable="true"
        android:longClickable="true"
        android:text=""
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textLongs"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView4"
        android:layout_marginLeft="33dp"
        android:layout_marginTop="33dp"
        android:layout_toRightOf="@+id/textView1"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textView4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/textLongs"
        android:layout_marginTop="103dp"
        android:text="Longitude"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textLongs"
        android:layout_alignTop="@+id/textLats"
        android:text="Latitude"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</RelativeLayout>

因为我不知道如何解决这个问题。我转到布局XML文件并删除了之前设置的所有Textview字段。现在它提供了原始屏幕,我可以回去重新设置它。

我在pat中遇到了一些类似的奇怪问题。完全删除eclipse并重新安装似乎是唯一的解决方案。错误消息中明确说明了原因:不能在RelativeLayout@ghostbust555在提出类似建议之前,请先看一下错误消息。我正试图用XML修复布局,但因为我没有视觉效果屏幕的显示,有点混乱。我能以某种方式撤销图形布局的所有设置吗?@Droidman,这很公平。在我放大之前,我一开始看不到它