[問題] eclipse android的hello world改不掉
抱歉不會使用圖片,
使用的是android4.1 level 16 API,
我已經修改res/layout/activity_main.xml裡的
android:text="@string/has_been_changed",
也在res/values/strings.xml定義了has_been_changed文字變數,
基本上他都是產生好的,我只是把他的hello world改成
has been changed !!!
以下是改好的res/layout/activity_main.xml
<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:background="@drawable/test" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/has_been_changed"
android:textColor="#FF0000"
android:background="#FFFFFF"
tools:context=".MainActivity" />
</RelativeLayout>
但我跑模擬器Run As Android Application
執行MainActivity(?,程式卻跑出hello world,
而且我的名稱叫做app而不是MainActivity,
希望各位大大能幫忙debug。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.193.68.232
推
08/03 22:35, , 1F
08/03 22:35, 1F
→
08/03 22:36, , 2F
08/03 22:36, 2F
→
08/03 22:36, , 3F
08/03 22:36, 3F
→
08/03 22:37, , 4F
08/03 22:37, 4F
→
08/03 22:38, , 5F
08/03 22:38, 5F
→
08/03 22:38, , 6F
08/03 22:38, 6F
→
08/04 00:53, , 7F
08/04 00:53, 7F
→
08/04 00:53, , 8F
08/04 00:53, 8F
→
08/04 00:54, , 9F
08/04 00:54, 9F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):