Android界面设计之个人资料界面

这篇博客主要记录了Android界面设计的过程,聚焦于个人资料界面的实现。通过学习,你可以掌握如何在Android应用中创建和布局个人资料页面,包括使用TextView等组件。
摘要由CSDN通过智能技术生成

这是一个个人学习记录

这几天忙着做一个Android项目,我被分配到了写一个类似于微信个人资料的界面任务。其他的都还好,就是头像和呢称那一块无法用简单的方法使用Button做出来,最后被其他人说了一下才绕过只有Button才能被点击这个弯,使用了线性布局来完成了界面代码。还是被Java影响太深,线性布局只要有id就可以在Java代码证设置监听器来令其出现点击效果。

activity_main.xml代码
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#C0C0C0"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:layout_marginBottom="20dp"
        android:background="#FFFFFF"
        android:orientation="horizontal" >

        <ImageView
            android:id="@+id/touxiang"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10dp"
            android:layout_marginLeft="10dp"
            
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值