大家还是去:http://rubyrails.iteye.com/blog/289967

他那边的代码有排板过.

按钮:

<Button android:id="@+id/jump"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    android:text="button to"    />

显示文本

<TextView android:id="@+id/result"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    android:text=""    />

编辑框:

<EditText android:id="@+id/height"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    android:numeric="integer"    android:text=""    />

支持多行:

<EditText id="@+id/Text1"android:layout_width="200sp"android:layout_height="24sp"android:text="Text1"android:singleLine="True"/><EditText id="@+id/text3"android:layout_width="180px"android:layout_height="80px"android:text="Text3 width='180px' android:singleLine='False'"android:singleLine="False"/>

多看帮助文档

两种小提示信看

    第一种: Toast.makeText(Calculator.this, "The buttonface was 1.", Toast.LENGTH_SHORT).show();第二种 private void openOptionsDialog() {     new AlertDialog.Builder(this)     .setTitle("weight / (height * height) is :" + BMI)     .setMessage("Android BMI Calc")     .show(); }   openOptionsDialog();

    更多相关文章

    1. C#开发微信门户及应用(三)之文本消息和图文消息应答
    2. C#实现添加Word文本与图片超链接的方法
    3. 如何快速生成数据的文本路径呢?C++实现文本路径生成
    4. C++实现逐行读取txt文件中的字符串以及文件文本的复制
    5. c语言中文本输出的函数名称是什么?
    6. golang读取文本乱码解决方法
    7. Go语言使用正则表达式提取网页文本
    8. xml模版,自定义按钮背景
    9. XSL将XML中的CDATA注释输出为HTML文本的代码实例

    随机推荐

    1. 重拾Android之路之Android签名及打包
    2. 配置ionic+Android开发环境
    3. Android(安卓)Wifi BT的工作流程和portin
    4. Android(安卓)Toolbar的详细使用步骤
    5. Android(安卓)RecyclerView —— 适配器
    6. Android:真机调试遇到的问题(INSTALL_FAILE
    7. android tv盒子播放器控制 监听上下左右
    8. CMake相关问题解决记录
    9. Android(安卓)7.0 Audio :通话中的音频调
    10. weex run android 时 gradle 下载缓慢