优化出行动态展示·

This commit is contained in:
董宏宇
2020-08-07 19:47:50 +08:00
parent ad2a68f9df
commit 77e2f29037
6 changed files with 86 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tvMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/dp_60"
android:paddingTop="@dimen/dp_30"
android:paddingEnd="@dimen/dp_60"
android:paddingBottom="@dimen/dp_30"
android:text="今日出行遇到的交通事件"
android:textColor="#FFFFFF"
android:textSize="@dimen/dp_36"
android:textStyle="bold" />

View File

@@ -17,7 +17,7 @@
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_150"
android:layout_height="@dimen/dp_130"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
@@ -38,6 +38,19 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tabLayout" />
<ImageView
android:id="@+id/btnHidePanels"
android:layout_width="@dimen/dp_88"
android:layout_height="@dimen/dp_88"
android:layout_marginEnd="@dimen/dp_40"
android:background="@drawable/v2x_icon_event_live_close"
android:textColor="#000"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="@+id/tabLayout"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@+id/tabLayout" />
</com.mogo.module.v2x.view.RoundConstraintLayout>
<Button

View File

@@ -1,8 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFF"
tools:listitem="@layout/module_v2x_event_share_item" />
android:orientation="vertical">
<TextView
android:id="@+id/tvMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/dp_60"
android:paddingTop="@dimen/dp_30"
android:paddingEnd="@dimen/dp_60"
android:paddingBottom="@dimen/dp_30"
android:text="今日出行遇到的交通事件"
android:textColor="#FFFFFF"
android:textSize="@dimen/dp_36"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="@dimen/dp_40"
android:paddingEnd="@dimen/dp_40"
tools:listitem="@layout/item_v2x_illegal_parking" />
</LinearLayout>