Не найден идентификатор ресурса для атрибута "Layout_below" в пакете "android"
Я очень новичок в этом - только что начал разработку Android для начинающих - так что извините за этот глупый вопрос:(
Я попытался запустить приложение на своем телефоне и получил следующие ошибки:
C:\Users\melod\AndroidStudioProjects\CardForMelody\app\src\main\re\layout\activity_main.xml
Error:(36) No resource identifier found for attribute 'Layout_below' in package 'android'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException: Process 'command 'C:\Users\melod\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
Кто-нибудь может помочь? Мой код выглядит так:
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context="com.example.android.cardformelody.MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/rosetrim"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/Melody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="34sp"
android:fontFamily="Thin"
android:layout_marginLeft="110dp"
android:layout_marginBottom="10dp"
android:layout_marginTop="200dp"
android:text="Melody..." />
<TextView
android:id="@+id/thebest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:fontFamily="cursive"
android:layout_below="@id/Melody"
android:layout_marginLeft="170dp"
android:text="You're the best"
/>
<TextView
android:id="@+id/lovemelody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="10sp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="120dp"
android:layout_marginRight="100dp"
android:Layout_below="id@/thebest"
android:text="LOVE MELODY" />
1 ответ
В вашем последнем TextView
<TextView
android:id="@+id/lovemelody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="10sp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="120dp"
android:layout_marginRight="100dp"
android:Layout_below="id@/thebest"
android:text="LOVE MELODY" />
Изменить эту строку
android:Layout_below="id@/thebest"
к этому
android:layout_below="id@/thebest"
ты пишешь Layout_below
но это layout_below
так что измени это.