, поэтому я работаю над Android-приложением. Теперь я пытаюсь перейти в res-menu-layout-activity_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>
У меня были некоторые странные проблемы, подобные этому в погласке. Полностью удалив затмение и переустановку, похоже, единственное решение – ghostbust555
, причина явно указана в сообщении об ошибке: вы не можете использовать круговые зависимости внутри 'RelativeLayout' – Droidman
@ ghostbust555, пожалуйста, взгляните на сообщение об ошибке, прежде чем предлагать что-то подобное – Droidman