摘要:
效果图展示: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> ul, h2 { padding: 0; margin: 0; } li { list-style: none; } #list { 阅读全文
摘要:
1TextView tv=(TextView)findViewById(R.id.TV); 2 tv.setMovementMethod(ScrollingMovementMethod.getInstance());//滚动文本 3 SeekBar sb=(SeekBar)findViewById( 阅读全文
摘要:
Toast信息提示框 1Button bt1=(Button)findViewById(R.id.Tbt01); 2 Button bt2=(Button)findViewById(R.id.Tbt02); 3 bt1.setOnClickListener(new OnClickListener() 阅读全文
摘要:
OnKeyListener(键盘事件) 1TextView tv=(TextView) findViewById(R.id.keyTV02); 2 EditText input=(EditText) findViewById(R.id.keyET01); 3 ImageView img=(Image 阅读全文
摘要:
OnTimeChangedListener(日期和时间的事件处理) DatePicker /*取得DatePicker对象,以init()设置初始值与OnDateChangedListener()*/ DatePicker dp= (DatePicker)findViewById(R.id.Date 阅读全文
摘要:
视图: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> p { margin: 0; } body { text-align: center; } #box { width: 400px; he 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script> window.onload = function(){ var aBtn = document.getElementsByTagName('in 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> li { width: 100px; height: 150px; float: left; margin-right: 30px; backgr 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script> window.onload = function(){ var aBtn = document.getElementsByTagName('in 阅读全文
摘要:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> li { list-style:none; w 阅读全文