<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/BtnRecipe"
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="net.androidbootcamp.healthyrecipes.MainActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="19dp"
android:text="Guacamole Recipe"
android:textSize="34sp" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="92dp"
android:text="View Recipe"
android:textSize="30sp" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/button1"
android:layout_below="@+id/textView1"
android:layout_marginTop="48dp"
android:src="@drawable/Guacamole" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:src="@drawable/guacamole" />
這是我的主要活動。我在Windows 8.1上運行Juno。
我知道「R無法解決」已經被問過很多次了,我找不到可以幫助我的答案。我在第14,21和31行有「R」錯誤。
我也有錯誤:找不到與給定名稱匹配的資源('src'中值爲'@ drawable/Guacamole')。 activity_main.xml line 32
我有一個項目,因爲明天,任何幫助非常感謝,如果有任何提示在8.1中運行Eclispe也將不勝感激。
我已經嘗試清理我的項目,並且這些錯誤未得到解決。 – 2014-09-06 21:12:01
這應該不是用Windows 8.1標記的。 – 2014-09-06 21:16:57
我的教授曾表示預計Windows 8.1的併發症,我不知道這個錯誤是否涉及8.1。抱歉。 – 2014-09-06 21:20:22