Android 类似微信底部导航条的简单实现
微信底部图片是这样的可以使用4个textview直接实现
主要是用drawableTop(上),drawableButtom(下),drawableLeft(左),drawableRight(右)四个属性来控制图片对于文字的位置
1 xml代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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=".MainActivity2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"