<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    我的Blog我做主^_^

    走向一條通往JAVA的不歸路...

      BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      64 隨筆 :: 68 文章 :: 77 評(píng)論 :: 0 Trackbacks

    在LinearLayout外面包一層ScrollView即可,如下代碼

    Apidemo 中關(guān)于如何使用ScrollView說(shuō)明,請(qǐng)參考:
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:scrollbars="none">

    <LinearLayout
           android:id="@+id/layout"
           android:orientation="vertical"
           android:layout_width="fill_parent" android:layout_height="wrap_content">

           <TextView
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="@string/scroll_view_1_text_1"/>

           <Button
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="@string/scroll_view_1_button_1"/>
    <TextView
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="@string/scroll_view_1_text_6"/>

           <Button
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="@string/scroll_view_1_button_6"/>

    </LinearLayout>
    </ScrollView>
    2:頁(yè)面跳轉(zhuǎn)的實(shí)現(xiàn)(不同activity間的切換)

    java代碼 加在button哪里同時(shí)在AndroidManifest.xml 哪里加上一句話,放在第一個(gè)activity 的下面

    xml:代碼:

    <activity android:name="BCD" android:label="@string/bcd_title"></activity>

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="
    http://schemas.android.com/apk/res/android"
          android:versionCode="1"
          android:versionName="1.0" package="com.demo.android.AutoGnosis">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
            <activity android:name=".AutoGnosis"
                      android:label="@string/app_name">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity android:name="BCD" android:label="@string/bcd_title"></activity> //添加標(biāo)簽屬性與values/report.xml對(duì)應(yīng)

        </application>
        <uses-sdk android:minSdkVersion="3" />

    </manifest>

     

     

     

    跳轉(zhuǎn)代碼:

    private void setListensers() {
        Log.d(TAG,"set Listensers");
       button_next.setOnClickListener(bt_next);
    }
        private Button.OnClickListener bt_next = new Button.OnClickListener(){
        public void onClick(View v){
          //switch to BDC page跳轉(zhuǎn)到BDC.class
          Intent intent = new Intent();
           intent.setClass(AutoGnosis.this, BCD.class);
           startActivity(intent);    
           Intent intent = new Intent();
           intent.setClass(Bmi.this, Report.class);
           Bundle bundle = new Bundle();   //bundle帶參數(shù)跳轉(zhuǎn)
           bundle.putString("KEY_HEIGHT",field_height.getText().toString());
           bundle.putString("KEY_WEIGHT",field_weight.getText().toString());
           intent.putExtras(bundle);
           startActivity(intent);
        }
        };



    posted on 2011-05-06 16:28 java_蟈蟈 閱讀(7472) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Android
    主站蜘蛛池模板: 免费人成视频在线观看不卡| 国产V亚洲V天堂无码| 一级黄色免费毛片| 亚洲AV无码日韩AV无码导航 | 拍拍拍无挡免费视频网站| 亚洲AV电影院在线观看| 成年在线网站免费观看无广告| 黄页网站在线免费观看| 99人中文字幕亚洲区| 免费很黄很色裸乳在线观看| 91免费国产精品| 一级白嫩美女毛片免费| 亚洲AV无码乱码在线观看代蜜桃| 亚洲成?Ⅴ人在线观看无码| 国产精彩免费视频| 国产精品免费视频观看拍拍| 天天爽亚洲中文字幕| 亚洲av永久无码制服河南实里| 永久免费AV无码网站在线观看| 国产无遮挡无码视频免费软件 | 96免费精品视频在线观看| 一区二区免费国产在线观看 | 久久久久久亚洲精品中文字幕 | 亚洲精品福利视频| 免费成人黄色大片| 在线免费视频一区二区| 99久9在线|免费| a毛片全部免费播放| 黄页视频在线观看免费| 亚洲色欲色欲www在线播放| 亚洲福利视频网站| 国产aⅴ无码专区亚洲av| 亚洲精品97久久中文字幕无码| 成年人免费视频观看| 99热这里只有精品免费播放| 国产精品极品美女自在线观看免费 | 亚洲精品美女久久久久久久| 91亚洲国产在人线播放午夜| 欧洲亚洲国产清在高| 亚洲中文字幕无码永久在线 | 毛片A级毛片免费播放|