綁定帳號登入

Android 台灣中文網

打印 上一主題 下一主題

[求助] 請大家幫我看程式碼

[複製連結] 查看: 2860|回覆: 30|好評: 0
21
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-24 23:59
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:tools="http://schemas.android.com/tools"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent"
  5.     android:paddingBottom="@dimen/activity_vertical_margin"
  6.     android:paddingLeft="@dimen/activity_horizontal_margin"
  7.     android:paddingRight="@dimen/activity_horizontal_margin"
  8.     android:paddingTop="@dimen/activity_vertical_margin"
  9.     tools:context=".MoonActivity" >

  10.     <TextView
  11.         android:id="@+id/textView1"
  12.         android:layout_width="wrap_content"
  13.         android:layout_height="wrap_content"
  14.         android:layout_alignParentLeft="true"
  15.         android:layout_alignParentTop="true"
  16.         android:text="五月天 「諾亞方舟」世界巡迴演唱會"
  17.         android:textAppearance="?android:attr/textAppearanceMedium" />

  18.     <TextView
  19.         android:id="@+id/textView2"
  20.         android:layout_width="wrap_content"
  21.         android:layout_height="wrap_content"
  22.         android:layout_alignLeft="@+id/textView1"
  23.         android:layout_below="@+id/button1"
  24.         android:layout_marginTop="19dp"
  25.         android:text="地點:台中地區"
  26.         android:textSize="16sp" />

  27.     <TextView
  28.         android:id="@+id/textView3"
  29.         android:layout_width="wrap_content"
  30.         android:layout_height="wrap_content"
  31.         android:layout_alignLeft="@+id/textView2"
  32.         android:layout_below="@+id/textView2"
  33.         android:text="日期:2013-11-03 至 2013-11-15"
  34.         android:textSize="16sp" />

  35.     <TextView
  36.         android:id="@+id/textView4"
  37.         android:layout_width="wrap_content"
  38.         android:layout_height="wrap_content"
  39.         android:layout_alignLeft="@+id/textView3"
  40.         android:layout_below="@+id/textView3"
  41.         android:text="TextView"
  42.         android:textSize="16sp" />

  43.     <Button
  44.         android:id="@+id/button2"
  45.         android:layout_width="wrap_content"
  46.         android:layout_height="wrap_content"
  47.         android:layout_above="@+id/textView2"
  48.         android:layout_alignLeft="@+id/textView2"
  49.         android:layout_marginLeft="30dp"
  50.         android:text="分享至FB" />

  51.     <Button
  52.         android:id="@+id/button1"
  53.         android:layout_width="wrap_content"
  54.         android:layout_height="wrap_content"
  55.         android:layout_alignRight="@+id/textView1"
  56.         android:layout_below="@+id/textView1"
  57.         android:layout_marginRight="35dp"
  58.         android:layout_marginTop="24dp"
  59.         android:text="官方網站" />

  60.     <TextView
  61.         android:id="@+id/textView6"
  62.         android:layout_width="wrap_content"
  63.         android:layout_height="wrap_content"
  64.         android:layout_alignLeft="@+id/textView4"
  65.         android:layout_below="@+id/textView5"
  66.         android:layout_marginTop="14dp"
  67.         android:text="10月25日11:00-20:00 凡購買兩杯相同容量/冰熱/口味皆一致的飲料 其中一杯由星巴克招待
  68. 用一杯咖啡的時間
  69. 與好朋友保持聯絡吧~" />

  70.     <TextView
  71.         android:id="@+id/textView5"
  72.         android:layout_width="wrap_content"
  73.         android:layout_height="wrap_content"
  74.         android:layout_centerHorizontal="true"
  75.         android:layout_centerVertical="true"
  76.         android:text="已經開始   剩餘21天 囉 !!!"
  77.         android:textAppearance="?android:attr/textAppearanceMedium" />

  78. </RelativeLayout>
複製代碼
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

22
lkk47 | 收聽TA | 只看該作者
發表於 2013-10-24 23:59
成功了嗎 ?  不能的話把xml貼出來我看一下
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

23
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-25 00:02
有貼出來了唷!!!
已經不早了,您有需要先休息了嗎?
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

24
lkk47 | 收聽TA | 只看該作者
發表於 2013-10-25 00:04
本帖最後由 lkk47 於 2013-10-25 00:06 編輯

有成功嗎?  看似沒問題  不然把檔案再傳給我看看  我在逛網站  逛完就要休息了
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

25
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-25 00:05
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

26
lkk47 | 收聽TA | 只看該作者
發表於 2013-10-25 00:18
我這邊跑是沒問題 指示AndroidManifest.xml 要修改
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3.     package="com.example.study"
  4.     android:versionCode="1"
  5.     android:versionName="1.0" >

  6.     <uses-sdk
  7.         android:minSdkVersion="8"
  8.         android:targetSdkVersion="17" />

  9.     <application
  10.         android:allowBackup="true"
  11.         android:icon="@drawable/ic_launcher"
  12.         android:label="@string/app_name"
  13.         android:theme="@style/AppTheme" >
  14.         <activity
  15.             android:name="com.example.study.page2"
  16.             android:label="@string/app_name" >
  17.             <intent-filter>
  18.                 <action android:name="android.intent.action.MAIN" />

  19.                 <category android:name="android.intent.category.LAUNCHER" />
  20.             </intent-filter>
  21.         </activity>
  22.         
  23.         <activity
  24.             android:name="com.example.study.data"
  25.             android:label="@string/app_name" >
  26.         </activity>
  27.     </application>

  28. </manifest>
複製代碼
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

27
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-25 00:23
跑是可以,但是點擊下去無法跳頁

會顯示錯誤

有試過點擊嗎??
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

28
lkk47 | 收聽TA | 只看該作者
發表於 2013-10-25 00:27
五月天...這個我點下去就跑到data頁面了  沒什麼問題  你在重拍一次問題給我看
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

29
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-25 00:30
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

30
 樓主| ckacle789 | 收聽TA | 只看該作者
發表於 2013-10-25 00:30
千百個不願意點下去五月天第一個馬上跳出地一個圖
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則