加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

Android 线性布局 计算器

发布时间:2020-12-15 07:17:31 所属栏目:Java 来源:网络整理
导读:? xml version="1.0" encoding="utf-8" ? LinearLayout xmlns:android ="http://schemas.android.com/apk/res/android" android:layout_width ="match_parent" android:layout_height android:background ="#FFFFFF" android:orientation ="vertical" Linear
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height
    android:background="#FFFFFF"
    android:orientation="vertical" >

    LinearLayout
        android:layout_width
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        EditText
            android:id="@+id/data"
            android:layout_width
            android:layout_height="wrap_content" />
    </LinearLayoutButton
            
            android:layout_weight="1"
            android:text="mc" />

        ="m+" ="m-" ="mr" ="C" ="+/-" ="/" ="*" ="7" ="8" ="9" ="-" ="4" ="5" ="6" ="+" LinearLayout
            
            android:orientation>

            LinearLayout
                
                android:layout_height
                android:orientation>

                Button
                    
                    android:layout_height
                    android:layout_weight
                    android:text="1" />

                ="2" ="3" />
            ="0" ="2"="." >
        Button
                
                android:text="=" />
        >
    >

>

image

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读