上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: public void bt_8(View v) { final ProgressDialog progressDialog=new ProgressDialog(this); progressDialog.setTitle("提示"); progressDialog.setMessage("请等待 阅读全文
posted @ 2016-05-16 15:55 百事没事 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1-Main2Activity.java package com.example.lenovo.textapp4; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.vi 阅读全文
posted @ 2016-05-16 10:09 百事没事 阅读(862) 评论(0) 推荐(0) 编辑
摘要: public void bt_2(View v) { final View view=View.inflate(this, R.layout.shurudianhuahaoma, null); et_1=(EditText)view.findViewById(R.id.et_1); new AlertDialog.Builder(this)... 阅读全文
posted @ 2016-05-14 09:39 百事没事 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1-KehoutiActivity.java package com.example.lenovo.textapp4; import android.app.AlertDialog; import android.content.DialogInterface; import android.con 阅读全文
posted @ 2016-05-14 09:34 百事没事 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 自定义对话框 //自定义对话框 public void bt_4(View v) { //1-Layout文件加载器 //LayoutInflater layoutInflater=getLayoutInflater(); // View view=layoutInflater.inflate(R. 阅读全文
posted @ 2016-05-13 16:20 百事没事 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 一般对话框 //一般对话框 public void bt_1(View v) { //不能直接实例化 //内部提供构造器 AlertDialog alertDialog = new AlertDialog.Builder(this) .setTitle("确认对话框") .setMessage("确 阅读全文
posted @ 2016-05-13 15:43 百事没事 阅读(232) 评论(0) 推荐(0) 编辑
摘要: int -> String int i=12345; String s=""; 第一种方法:s=i+""; 第二种方法:s=String.valueOf(i); 这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢? String -> int s="12345"; int i; 第 阅读全文
posted @ 2016-05-11 10:48 百事没事 阅读(399) 评论(0) 推荐(0) 编辑
摘要: MainActivity package com.example.lenovo.myapplication; import android.provider.MediaStore; import android.support.v7.app.AppCompatActivity; import and 阅读全文
posted @ 2016-05-11 10:08 百事没事 阅读(419) 评论(0) 推荐(0) 编辑
摘要: MainActivity package com.example.lenovo.testapp1; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bu 阅读全文
posted @ 2016-05-11 10:05 百事没事 阅读(164) 评论(0) 推荐(0) 编辑
摘要: MainActivity public class MainActivity extends AppCompatActivity { CalendarView cv_1; DatePicker dp_1; TimePicker tp_1; @Override protected void onCre 阅读全文
posted @ 2016-05-11 10:03 百事没事 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页