功能效果展示:
目标分析:
上述界面分为两个部分,前面是新闻列表页,后面是新闻详情页,新闻列表页中可以使用recyclerView实现,详情页则用一个简单的布局文件实现即可。
详情页:
bottom部分:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="100dp"
android:layout_gravity="bottom"
android:baselineAligned="false"
android:orientation="horizontal">
<ImageButton
android:id="@+id/yuyin"
android:layout_width="84dp"
android:layout_height="match_parent"
android:background="#EAFAEB"
android:src="@drawable/yuyin"
tools:ignore="SpeakableTextPresentCheck"
tools:src="@drawable/yuyin" />
<ImageButton
android:id="@+id/duihua"
android:layout_width="145dp"
android:layout_height="match_parent"
android:background="#36F4C8"
android:src="@drawable/duihyakuang"
tools:ignore="SpeakableTextPresentCheck"
tools:src="@drawable/duihyakuang" />
<ImageButton
android:id="@+id/biaoqin"
android:layout_width="82dp"
android:layout_height="match_parent"
android:background=<