main.xml代码<?xml version="1.0" encoding="utf-8"?><TableLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    >        <TableRow>    <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  7  "/>             <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  8  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  9  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  /  "/>        </TableRow>        <TableRow>    <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  4  "/>             <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  5  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  6  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  *  "/>        </TableRow>        <TableRow>    <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  1  "/>        <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  2  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  3  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  . "/>         </TableRow>        <TableRow>                <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  0  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  =  "/>     <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  -  "/>         <Button     android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:text="  +  "/>        </TableRow><TextView      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"    /></TableLayout>

更多相关文章

  1. android典型代码系列(四)------android全屏代码
  2. 代码设置android:icon,android:label
  3. Android 拖拽效果实现代码分享 - ORIETech
  4. android图片转换代码
  5. 一个android通信录的源代码
  6. 7个Android应用程序源代码
  7. 介绍本人的一个Android项目(附源代码)
  8. Android安卓51个开源代码

随机推荐

  1. Android仿照淘宝,京东,当当购物平台
  2. gradle常见问题解决笔记
  3. Android使edittext弹出的软键盘位于输入
  4. FFmpeg 音频 调节音量 剪切 合成 拼接 视
  5. Android中点击按钮后隐藏输入法
  6. Android事件总线 浅谈 EventBus
  7. Android(安卓)SurfaceView的使用
  8. AndroidPN测试(Android Push Notification
  9. AndroidTimer使用(二)
  10. Ubuntu下配置Android