**android studio 编写淘宝界面## 标题**

本文档展示了作者作为新手使用Android Studio设计的一个基本页面布局。XML代码包含了一个LinearLayout,设置了填充和尺寸属性,用于创建全屏界面。虽然简单,但这是构建Android应用的基础步骤。
摘要由CSDN通过智能技术生成

下面是本人写的一个页面布局,作者是一个小白,如果有错误,请见谅
layout:activity_main.xml:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:app=“http://schemas.android.com/apk/res-auto
xmlns:tools=“http://schemas.android.com/tools
android:id="@+id/activity_main"
android:layout_width=“match_parent”
android:layout_height=“match_parent”
android:paddingBottom=“0dp”
android:paddingLeft=“0dp”
android:paddingRight=“0dp”
android:paddingTop=“0dp”

tools:context="com.example.administrator.taobao.MainActivity"
android:weightSum="1"
android:orientation="vertical"
>
 
<LinearLayout
    android:orientation="horizontal"
    android:layout_width="wrap_content"
    android:layout_height="50dp"
    >
    <ImageButton

        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@mipmap/saoyisao"/>

    <EditText
        android:layout_width="283dp"
        android:layout_height="50dp"
        android:background="@mipmap/shousuokuang"

/>

    <Button
        android:layout_width="50dp"
        android:layout_height="52dp"
        android:background="@mipmap/huiyuanma"
        android:id="@+id/button1" />

</LinearLayout>



<LinearLayout

    android:layout_width="wrap_content"
    android:layout_height="50dp"
    android:layout_weight="0.05"
    android:background="
  • 6
    点赞
  • 61
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值