作者 zhangji

修改答题记录显示bug

@@ -15,14 +15,12 @@ import com.br_technology.securitytrain_master.ui.bean.TrainReport @@ -15,14 +15,12 @@ import com.br_technology.securitytrain_master.ui.bean.TrainReport
15 */ 15 */
16 class LearningReportViewModel : BaseViewModel<TrainRepository>() { 16 class LearningReportViewModel : BaseViewModel<TrainRepository>() {
17 val data = MutableLiveData<BaseResponse<CommonReport<TrainReport>>>() 17 val data = MutableLiveData<BaseResponse<CommonReport<TrainReport>>>()
18 - val data = MutableLiveData<BaseResponse<CommonReport<TrainReport>>>()  
19 18
20 fun getReport(){ 19 fun getReport(){
21 mRepository.trainReport(data) 20 mRepository.trainReport(data)
22 } 21 }
23 22
24 fun getDetail(){ 23 fun getDetail(){
25 - mRepository.get(data)  
26 - TrainDetail 24 +// mRepository.get(data)
27 } 25 }
28 } 26 }
@@ -4,8 +4,7 @@ @@ -4,8 +4,7 @@
4 android:layout_width="match_parent" 4 android:layout_width="match_parent"
5 android:layout_height="wrap_content" 5 android:layout_height="wrap_content"
6 android:background="@color/white" 6 android:background="@color/white"
7 - android:layout_marginStart="16dp"  
8 - android:layout_marginEnd="16dp" 7 + android:layout_marginBottom="16dp"
9 android:orientation="vertical"> 8 android:orientation="vertical">
10 9
11 <LinearLayout 10 <LinearLayout