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

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

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

      maybug

      導航

      Android開發之ProgressBar控件的使用

      ProgressBar用于顯示程序進行的進度

      <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:paddingBottom="@dimen/activity_vertical_margin"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"
          android:paddingTop="@dimen/activity_vertical_margin"
          tools:context=".MainActivity" >
      
          <ProgressBar 
              android:id="@+id/ProgressBar"
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
             
              style="?android:attr/progressBarStyleHorizontal"
              />
          <Button
              android:id="@+id/firstButton"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/ProgressBar"
              android:text="增加第一進度"/>
              <Button
              android:id="@+id/secondButton"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/firstButton"
              android:text="增加第二進度"/> 
              
      
      </RelativeLayout>
      package com.hhc.progressbar;
      
      import android.app.Activity;
      import android.os.Bundle;
      import android.view.Menu;
      import android.view.View;
      import android.view.View.OnClickListener;
      import android.widget.Button;
      import android.widget.ProgressBar;
      
      public class MainActivity extends Activity {
      
          private ProgressBar progressBar;
          private Button firstButton;
          private Button secondButton;
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
              
              progressBar = (ProgressBar)findViewById(R.id.ProgressBar);
              firstButton = (Button)findViewById(R.id.firstButton);
              secondButton =(Button)findViewById(R.id.secondButton);
              progressBar.setMax(100);
              //progressBar.setProgress(20);
              //progressBar.setSecondaryProgress(50);
              firstButton.setOnClickListener(new firstListener());
              secondButton.setOnClickListener(new secondListener());
          }
          class firstListener implements OnClickListener{
      
              @Override
              public void onClick(View arg0) {
                  // TODO Auto-generated method stub
                  progressBar.incrementProgressBy(10);
              }
              
          }
          class secondListener implements OnClickListener{
      
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  progressBar.incrementSecondaryProgressBy(10);;
              }
              
          }
      
          @Override
          public boolean onCreateOptionsMenu(Menu menu) {
              // Inflate the menu; this adds items to the action bar if it is present.
              getMenuInflater().inflate(R.menu.main, menu);
              return true;
          }
      
      }

       

      posted on 2013-11-21 21:45  maybug  閱讀(299)  評論(0)    收藏  舉報

      主站蜘蛛池模板: 噜噜综合亚洲av中文无码| 狠狠亚洲色一日本高清色| 午夜精品区| 无码国内精品久久人妻蜜桃| 欧美亚洲综合久久偷偷人人 | 米脂县| 久久中文字幕av第二页| 亚洲人成电影在线天堂色| 天堂mv在线mv免费mv香蕉| 丁香花成人电影| 国产精品女在线观看| 竹菊影视欧美日韩一区二区三区四区五区 | 国产一区日韩二区三区| 中文字幕日韩精品亚洲一区| 亚洲国产高清精品线久久| 99精品视频在线观看免费蜜桃| 亚洲综合一区二区三区| 国产睡熟迷奷系列网站| 欧美另类精品xxxx人妖| 国产亚洲精品第一综合另类无码无遮挡又大又爽又黄的视频 | 日韩熟女乱综合一区二区| 人妻少妇偷人一区二区| 国产一二三五区不在卡| 加勒比中文字幕无码一区| 东京热av无码电影一区二区| 风韵丰满熟妇啪啪区老熟熟女| 国产口爆吞精在线视频2020版| 午夜精品一区二区三区成人| 中文字幕日韩人妻一区| 少妇办公室好紧好爽再浪一点| 国产精品国产三级国产午| 一个人免费观看WWW在线视频| 免费国产一级 片内射老| 粗大的内捧猛烈进出小视频| 亚洲天堂男人的天堂在线| 在线免费成人亚洲av| 漂亮人妻中文字幕丝袜| 国内精品自产拍在线播放| 久久久精品人妻一区二区三区 | 石原莉奈日韩一区二区三区| 97久久综合亚洲色hezyo|