From 8e262c320bca1a58c1725d13628dfa1e2498df92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Fri, 14 Aug 2020 15:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=BC=80=E9=9D=A2=E6=9D=BF=E5=87=BA=E8=A1=8C=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=B2=A1=E6=9C=89=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/commons/mvp/MvpFragment.java | 4 + .../v2x/fragment/V2XEventPanelFragment.kt | 19 +- ...e_v2x_event_panel_fragment_event_panel.xml | 166 +++++++++--------- 3 files changed, 97 insertions(+), 92 deletions(-) diff --git a/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java b/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java index be7f2bac04..0e788e140a 100644 --- a/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java +++ b/foudations/mogo-commons/src/main/java/com/mogo/commons/mvp/MvpFragment.java @@ -83,6 +83,10 @@ public abstract class MvpFragment> exten @NonNull protected abstract P createPresenter(); + public P getPresenter() { + return mPresenter; + } + @Nullable protected T findViewById(int id) { if (mRootView == null) { diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt index ff0cfbf53c..016d087b53 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XEventPanelFragment.kt @@ -29,12 +29,16 @@ class V2XEventPanelFragment : MvpFragment? = null private var mediator: TabLayoutMediator? = null private var mV2XEventPanelHistoryCountView: V2XEventPanelHistoryCountView? = null + private val mV2XScenarioHistoryFragment = V2XScenarioHistoryFragment() + companion object { private val fragment = V2XEventPanelFragment() fun getInstance(): V2XEventPanelFragment { @@ -86,7 +90,7 @@ class V2XEventPanelFragment : MvpFragment - + android:layout_height="match_parent" + android:background="#10121E" + android:clickable="true" + android:paddingStart="@dimen/dp_30" + android:paddingEnd="@dimen/dp_30" + android:visibility="gone" + app:roundLayoutRadius="@dimen/dp_40" + tools:visibility="visible"> - + android:layout_height="@dimen/dp_154" + android:gravity="center_vertical" + android:orientation="horizontal"> - + - + - + - + - + + - - + - + - - - - - \ No newline at end of file +