<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      printemps1707

      安卓作業(yè)跳轉(zhuǎn)

       界面

      <TextView

          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="2"
          android:gravity="center"
          android:id="@+id/textv2"/>
      
      <LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"
          android:orientation="horizontal">
      
          <Button
              android:id="@+id/btn3"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/btn3"
              android:onClick="onclick"/>
          <Button
              android:id="@+id/btn4"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/btn4"
              android:onClick="onclick"/>
      
      </LinearLayout>
      <?xml version="1.0" encoding="utf-8"?>
      <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:id="@+id/activity_pinggu"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context="com.example.messi.tiaozhuanapplication.pingguActivity">

          <LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">

              <TextView
                  android:id="@+id/wenti"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:textSize="18sp"
                  android:textAlignment="center"
                  android:layout_marginTop="200dp"/>

              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal">
                  <Button
                      android:id="@+id/btn_yes"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:text="@string/btn_yes"
                      android:textSize="30dp"
                      android:onClick="onClick"/>
                  <Button
                      android:id="@+id/btn_no"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:text="@string/btn_no"
                      android:textSize="30dp"
                      android:onClick="onClick" />
      </LinearLayout>
      </LinearLayout>


      JAVA代碼

      package com.example.messi.tiaozhuanapplication;

      import android.content.Intent;
      import android.support.v7.app.AppCompatActivity;
      import android.os.Bundle;
      import android.view.View;
      import android.widget.Button;
      import android.widget.TextView;

      public class pingguActivity extends AppCompatActivity {

          private TextView wenti;
          private Button btn_yes;
          private Button btn_noe
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_pinggu);
              wenti = (TextView)findViewById(R.id.wenti);
              btn_yes = (Button)findViewById(R.id.btn_yes);
              btn_no = (Button)findViewById(R.id.btn_no);

              String data="";
              Intent intent=getIntent();
              String jg=intent.getStringExtra("name");
              TextView question=(TextView)findViewById(R.id.wenti);
              data = jg;
              question.setText(data);
          }
          public void onClick(View view){
              switch (view.getId()){
                  case R.id.btn_yes:
                      result1();
                      break;
                  case R.id.btn_no:
                      result2();
                      break;
              }
          }

          private void result2() {
              Intent intent = new Intent();
              intent.setClass(pingguActivity.this,Tiaozhuan.class);
              String btn2=btn_no.getText().toString();
              intent.putExtra("result","評估結(jié)果:"+btn2);
              intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
              startActivity(intent);
          }

          private void result1() {
              Intent intent = new Intent();
              intent.setClass(pingguActivity.this,Tiaozhuan.class);
              String btn1=btn_yes.getText().toString();
              intent.putExtra("result","評估結(jié)果:"+btn1);
              intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
              startActivity(intent);
          }
      }

       

      posted on 2017-04-18 19:59  愛情的槍  閱讀(99)  評論(0)    收藏  舉報

      主站蜘蛛池模板: 无码专区 人妻系列 在线| 亚洲性日韩精品一区二区三区| 国产熟女一区二区三区四区| 九九热在线精品免费视频| 大尺度国产一区二区视频 | 内射人妻视频国内| 一区二区三区四区黄色片| 国产乱子伦无套一区二区三区 | 天天做天天爱夜夜爽女人爽| 亚洲av影院一区二区三区| 国产亚洲精品久久久久婷婷瑜伽| 日本国产精品第一页久久| 资阳市| 蜜臀av一区二区国产精品| 欧美乱妇高清无乱码免费| 91精品久久一区二区三区| 国产线播放免费人成视频播放| 国产综合色在线精品| 狠狠v日韩v欧美v| 日韩放荡少妇无码视频| 国产亚洲欧美日韩俺去了| 精品无码一区二区三区的天堂| 国产v综合v亚洲欧美大天堂| 伊人久久大香线蕉综合影院首页| 综合色综合色综合色综合| 国产午夜精品福利91| 中文字幕国产在线精品| 亚洲国产日韩a在线播放| 日本一区二区国产在线| 色宅男看片午夜大片啪啪| 国模少妇无码一区二区三区| 伊人春色激情综合激情网| 武冈市| 91精品久久一区二区三区| 亚洲国产天堂久久综合226114| 国产精品一区在线蜜臀| 黑人猛精品一区二区三区| 青柠影院免费观看高清电视剧丁香| 色悠久久网国产精品99| 人妻少妇久久中文字幕| 日韩中文字幕综合第二页|