|
|
@@ -76,28 +76,49 @@
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
|
- android:id="@+id/layoutTraining"
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rvTrain"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_marginStart="@dimen/divider_16px"
|
|
|
- android:layout_marginBottom="@dimen/divider_8px"
|
|
|
android:layout_marginTop="@dimen/divider_8px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_8px"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tvTitle" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/emptLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:orientation="vertical"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tvTitle">
|
|
|
|
|
|
- <com.scwang.smart.refresh.header.ClassicsHeader
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_empty"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/divider_85px"
|
|
|
+ android:background="@mipmap/icon_empt_data" />
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/rvTrain"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/empty_view_message"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/divider_32px"
|
|
|
+ android:paddingEnd="@dimen/divider_18px"
|
|
|
+ android:text="@string/there_is_currently_no_data_available"
|
|
|
+ android:textColor="@color/coloe_D8D8D8"
|
|
|
+ android:textSize="@dimen/divider_42px" />
|
|
|
|
|
|
- </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</androidx.cardview.widget.CardView>
|