LinearLayout的介绍:
https://blog.youkuaiyun.com/YoNow/article/details/117672856
LineraLayout实现微信底部

使用四个LineraLayout来实现(由于图片大小没找的太好,所以看起来有点丑)
<?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="vertical"
android:layout_gravity="bottom">
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="45dp">
<ImageView
android:layout_width="10dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="@drawable/wechat"
android:layout_weight="1">
</ImageView>
<ImageView
android:layout_width="10dp"
android:layout_height="match_parent"
android:background="@drawable/tel"
android:layout_weight="1">
</ImageView>
<ImageV

本文介绍了如何使用LinearLayout在Android中实现微信底部导航栏和登录界面的UI设计,通过创建四个LinearLayout来构建底部栏,并展示了仿写微信登录界面过程中遇到的线性布局限制。
最低0.47元/天 解锁文章
1805

被折叠的 条评论
为什么被折叠?



