Re: [問題] eclipse android的hello world改不掉

看板AndroidDev作者 (CHA)時間11年前 (2012/08/04 00:09), 編輯推噓1(103)
留言4則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《jjalu (jjalu)》之銘言: : <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> res/values/strings.xml中: <string name="has_been_changed">Has been change!</string> ^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ res類型 res名稱 對應值 改好後,很重要一點:要存檔。 試試看 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.161.148 ※ 編輯: cha122977 來自: 123.193.161.148 (08/04 00:09)

08/04 00:56, , 1F
<string name="has_been_changed">has been changed!!!!</s
08/04 00:56, 1F

08/04 00:57, , 2F
>這部分小弟我有改到也有存了,雖然好像不是這部分的問題
08/04 00:57, 2F

08/04 00:57, , 3F
還是很謝謝你的回答^_^
08/04 00:57, 3F

08/04 10:18, , 4F
推一個
08/04 10:18, 4F
文章代碼(AID): #1G6_UZR5 (AndroidDev)
文章代碼(AID): #1G6_UZR5 (AndroidDev)