内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

android創(chuàng)建單選對(duì)話框

鄭州app開發(fā)android創(chuàng)建單選對(duì)話框?qū)嵗?/p>

為興文等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計(jì)制作服務(wù),及興文網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)、興文網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會(huì)得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠(yuǎn)!

以下是創(chuàng)建單選對(duì)話框java代碼

package cn.xhhkj.cyd;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;

import android.app.AlertDialog;

import android.app.pendingIntent;

import android.content.broadcastReceiver;

import android.content.Context;

import android.content.DialogInterface;

import android.content.Intent;

import android.content.IntentFilter;

import android.content.Sharedpreferences;

import android.os.bundle;

import android.os.Handler;

import android.telephony.SmsManager;

import android.text.TextUtils;

import android.util.Log;

import android.view.View;

import android.widget.button;

import android.widget.EditText;

import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private button btn;

    @Override

    protected void onCreate(bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

        btn=findViewbyId(R.id.btn);

    }

    public void test(View view) {

        AlertDialog.builder builder = new AlertDialog.builder(this);

        builder.setTitle("鄭州做app需要多少錢");

        final String[] items = {"5000","10000","15000","20000","30000"};

        builder.setSingleChoiceItems(items, 4, new DialogInterface.OnClickListener() {

            @Override

            public void onClick(DialogInterface dialog, int which) {

                Toast.makeText(getApplicationContext(), items[which], Toast.LENGTH_SHORT).show();

                dialog.dismiss();

            }

        });

        builder.show();

    }

}

分享題目:android創(chuàng)建單選對(duì)話框
文章出自:http://www.rwnh.cn/article4/scscie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、網(wǎng)站收錄、軟件開發(fā)、商城網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營
军事| 鄂温| 尚义县| 马尔康县| 张家港市| 石泉县| 通海县| 义马市| 富阳市| 西林县| 阳泉市| 崇左市| 玉田县| 渑池县| 英超| 太湖县| 沙洋县| 渭南市| 石家庄市| 桐梓县| 台东市| 普兰县| 黎平县| 昌邑市| 临泉县| 佛学| 新邵县| 凌海市| 南郑县| 绥中县| 赤水市| 泰顺县| 湟中县| 乌什县| 万源市| 嵊泗县| 大余县| 蓬安县| 湾仔区| 文化| 苏州市|