第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Android攻城獅的第二門(mén)課(第2季)

邦蜀黍 移動(dòng)開(kāi)發(fā)工程師
難度入門(mén)
時(shí)長(zhǎng) 3小時(shí)50分
學(xué)習(xí)人數(shù)
綜合評(píng)分9.70
133人評(píng)價(jià) 查看評(píng)價(jià)
9.9 內(nèi)容實(shí)用
9.8 簡(jiǎn)潔易懂
9.4 邏輯清晰
MenuItem item = menu.add(1, BITCH, 1, "豬隊(duì)友");
item.setTitle("實(shí)在是坑");
item.setIcon(R.mipmap.fuck);

case BITCH:
Toast.makeText(MainActivity.this, item.getText().toString()+"bitch").show();
startActivity(new Intent(MainActivity.this, SecondActivity.class));
onCreateOptionsMenu(Menu menu){
getInflater().inflate(R.menu.menu_main, menu);
return true;
}

public boolean onOptionsItemSelected(MenuItem item){
int id = item.getItemId();
switch(id){
case R.id.one:
break;
default:
break;
}
}
manager.notify(id, notification);

manager.cancel(id);
NotificationManager manager;
int notification_ID = 007;

manager =(NotificationManager)getSystemService(Context.NOTIFICATION_MANAGER);

manager.notify(notification_ID, notification);
Intent intent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent);
builder.setContentIntent(pendingIntent);
private void sendNotification(){
Builder builder = new Notification.Builder(this);
builder.setSmallIcon(R.drawable.smallIcon);
builder.setTicker("hello");
builder.setWhen(System.currentTimeMillis());
builder.setContentTitle("通知欄通知");
builder.setContentText("我來(lái)自阿爾莫多瓦星球");
}
1.獲取NotificationManager
2.顯示通知欄notify
3.取消通知欄cancel
4.構(gòu)造Notification并顯示內(nèi)容
5.通知欄可以設(shè)置聲音提示,指示燈以及震動(dòng)效果等
LayoutInflater inflater = LayoutInflater.from(this);
View view = inflater.inflate(R.layout.dialog_layout, null);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("");
builder.setIcon(R.drawable.icon);
builder.setView(view);

AlertDialog dialog = builder.create().show();
builder.setItems(item_list, new DialogInterface.OnClickListener(){
public void onClick(DialogInterface dialog, int which){
Toast.makeText(MainActivity.this, item_list[which]+"", 2000).show();
}
});
AlertDialog dialog = builder.create().show();//顯示對(duì)話
builder.setNegativeButton("取消", new DialogInterface.OnClickListner(){
public void onClick(DialogInterface dialog, int which){
dialog.dismiss();
}
});
AlertDialog.Builder buider = new AlertDialog.Builder(this);
builder.setMultiChoiceItems(multi_list, null, new DialogInterface.OnMultiChoiceListener(){
public void onClick(dialog, int which, boolear isChecked){
if(isChecked){

}else{

}
}
});
builder.setSingleChoiceItems(single_list, 0, new DialogInterface.OnClickListener(){
public void onClick(DialogInterface dialog, int which){
String s = single_list[which];
Toast.maketext(MainActivity.this,s,1000).show();
}
});
private void showDialog(){
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("確認(rèn)對(duì)話框");
builder.setIcon(R.drawable.ic_launcher);
builder.setMessage("確認(rèn)對(duì)話框提示內(nèi)容");
builder.setPositiveButton("確定", new DialogInterface.OnClickListener(){
});
}
老師好萌啊
測(cè)試容易嗎人家
課程須知
本課程是進(jìn)階課程的第2季,將講解Android應(yīng)用必備的菜單、對(duì)話框和動(dòng)畫(huà)等的使用,對(duì)于不熟悉Android開(kāi)發(fā)的童鞋來(lái)說(shuō)會(huì)有一定的難度,所以,建議在學(xué)習(xí)本門(mén)課程之前,首先必須掌握J(rèn)ava基礎(chǔ)語(yǔ)法和面向?qū)ο缶幊蹋浯芜€要熟悉Android開(kāi)發(fā)環(huán)境,了解控件的使用就更好了
老師告訴你能學(xué)到什么?
1、Android調(diào)試程序 2、Android提示對(duì)話框 3、Android常用菜單 4、Android常用動(dòng)畫(huà)效果

微信掃碼,參與3人拼團(tuán)

微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

友情提示:

您好,此課程屬于遷移課程,您已購(gòu)買(mǎi)該課程,無(wú)需重復(fù)購(gòu)買(mǎi),感謝您對(duì)慕課網(wǎng)的支持!

本次提問(wèn)將花費(fèi)2個(gè)積分

你的積分不足,無(wú)法發(fā)表

為什么扣積分?

本次提問(wèn)將花費(fèi)2個(gè)積分

繼續(xù)發(fā)表請(qǐng)點(diǎn)擊 "確定"

為什么扣積分?

舉報(bào)

0/150
提交
取消