码迷,mamicode.com
首页 > 移动开发 > 详细

Android指令中英文解

时间:2014-10-30 22:46:09      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:android指令中英文解   toast   radiobutton   

Android指令中英文解


北京海淀区  张俊浩

希望通过本文不断收集整理Android英文命令,让人见文知意,毕竟名字都是人起的,基本会精敲细琢,就算你给自家小狗起个名字也要想半天,何况是一个开源机制呢不是?

Toast

是Android的一种简易的消息提示(机制)框。与dialog(对话框,与用户交互的信息机制)相比不能获取焦点,即不能与用户交互,Toast显示的时间有限,Toast会根据用户设置的显示时间后自动消失。

Toast中文释义烤面包(片),不知道大家有没有见过一种面包机,面包片考好后是自动从面包机中弹出的,很形象的表达了Toast的在Android中的作用,也是弹出的一个面包片式的消息框~。

使用需引入包:importandroid.widget.Toast;

例子:在当前的activity中,为某点击事件加入下列代码:

Toast.makeText(getApplicationContext(),"你想提示的信息",Toast.LENGTH_SHORT).show();2014-10-30 

 

RadioButton

 单选框,可以向用户提供由两个或多个互斥选项组成的选项集。单选框为什么用radio表示 radio没有这个意思吧?Wiki Radio button上有这样一段解释:Radio buttons were named afterthe physical buttons used on older radios to select preset stations – when oneof the buttons was pressed, other buttons would pop out, leaving the pressedbutton the only button in the "pushed in" position.

Radio Button老式收音机用来选择预设电台的物理按钮命名——当一个按钮按下后,其他按钮会弹起,使按下的按钮成为唯一处于“推入”状态的按钮。(2014-10 -30

Android指令中英文解

标签:android指令中英文解   toast   radiobutton   

原文地址:http://blog.csdn.net/yunfenglw/article/details/40626307

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!