下面就是结果图(每种状态用一个表情图片表示):
一、主页面的布局文件如下:
<RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
xmlns:tools=http://schemas.android.com/tools
android:layout_width=match_parent
android:layout_height=match_parent
tools:context=.MainActivity
xmlns:app=http://schemas.and