zoukankan      html  css  js  c++  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="match_parent"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <ImageView
                android:id="@+id/touxiang"
                android:layout_width="75dp"
                android:layout_height="75dp"
                android:layout_marginStart="50dp"
                android:layout_marginTop="50dp"
                android:scaleType="fitXY"
                android:background="@mipmap/ic_launcher_round"/>
            <TextView
                android:id="@+id/nowid"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="70dp"
                android:layout_marginStart="50dp"
                android:textSize="20sp" />
    
        </LinearLayout>
    
        <Button
            android:id="@+id/editbutton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="50dp"
            android:background="@drawable/button"
            android:text="修改密码"/>
    
        <Button
            android:id="@+id/myreservebutton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            android:background="@drawable/button"
            android:text="我的预定"/>
    
        <Button
            android:id="@+id/lookbutton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            android:background="@drawable/button"
            android:text="关于酒店"/>
    
        <Button
            android:id="@+id/outbutton"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="250dp"
            android:background="@drawable/backbutton"
            android:text="退出登录"/>
    
    </LinearLayout>
  • 相关阅读:
    hihocoder #1467 : 2-SAT·hihoCoder音乐节 2-SAT
    hihoCoder#1185 : 连通性·三 tarjan求强联通分量 缩点 dfs/拓扑排序求路径和最大值
    hihoCoder1175 拓扑排序·二 拓扑排序
    012 列表的一些常用操作符
    011,列表2
    010 列表1
    009,分支和循环3
    008,分支和循环2
    006 Python的操作符
    005 Python的数值类型
  • 原文地址:https://www.cnblogs.com/20193925zxt/p/14910591.html
Copyright © 2011-2022 走看看