|
@@ -3,58 +3,23 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:id="@+id/nav_graph"
|
|
|
- app:startDestination="@id/MainFragment">
|
|
|
+ app:startDestination="@id/newsFragment">
|
|
|
|
|
|
<fragment
|
|
|
- android:id="@+id/MainFragment"
|
|
|
- android:name="com.sambath.kunkhmer.screen.main.MainFragment"
|
|
|
- android:label="@string/main_fragment_label"
|
|
|
- tools:layout="@layout/fragment_main">
|
|
|
+ android:id="@+id/newsFragment"
|
|
|
+ android:name="com.sambath.kunkhmer.screen.news.NewsFragment"
|
|
|
+ android:label="NewsFragment" >
|
|
|
<action
|
|
|
- android:id="@+id/action_MainFragment_to_SettingFragment"
|
|
|
- app:destination="@id/SettingFragment"
|
|
|
- app:enterAnim="@anim/slide_in"
|
|
|
- app:exitAnim="@anim/slide_out"
|
|
|
- app:popEnterAnim="@anim/slide_in_exit"
|
|
|
- app:popExitAnim="@anim/slide_out_exit"/>
|
|
|
-
|
|
|
- <action
|
|
|
- android:id="@+id/action_MainFragment_to_ReportFragment"
|
|
|
- app:destination="@id/ReportFragment"
|
|
|
- app:enterAnim="@anim/slide_in"
|
|
|
- app:exitAnim="@anim/slide_out"
|
|
|
- app:popEnterAnim="@anim/slide_in_exit"
|
|
|
- app:popExitAnim="@anim/slide_out_exit"/>
|
|
|
- <action
|
|
|
- android:id="@+id/action_MainFragment_to_cfResultFragment"
|
|
|
- app:destination="@id/cfResultFragment" />
|
|
|
- <action
|
|
|
- android:id="@+id/action_MainFragment_to_cfBetFragment"
|
|
|
- app:destination="@id/cfBetFragment" />
|
|
|
-
|
|
|
+ android:id="@+id/action_newsFragment_to_topNewsDetailFragment"
|
|
|
+ app:destination="@id/topNewsDetailFragment" />
|
|
|
</fragment>
|
|
|
- <fragment
|
|
|
- android:id="@+id/ReportFragment"
|
|
|
- android:name="com.sambath.kunkhmer.screen.report.StatementFragment"
|
|
|
- android:label="@string/report_fragment_label"
|
|
|
- tools:layout="@layout/fragment_report">
|
|
|
|
|
|
- </fragment>
|
|
|
<fragment
|
|
|
- android:id="@+id/SettingFragment"
|
|
|
- android:name="com.sambath.kunkhmer.screen.setting.SettingFragment"
|
|
|
- android:label="@string/setting_fragment_label"
|
|
|
- tools:layout="@layout/fragment_setting">
|
|
|
-
|
|
|
+ android:id="@+id/topNewsDetailFragment"
|
|
|
+ android:name="com.sambath.kunkhmer.screen.news.TopNewsDetailFragment"
|
|
|
+ android:label="TopNewsDetailFragment" >
|
|
|
+ <argument
|
|
|
+ android:name="newsItem"
|
|
|
+ app:argType="com.sambath.kunkhmer.remote.News" />
|
|
|
</fragment>
|
|
|
- <fragment
|
|
|
- android:id="@+id/cfBetFragment"
|
|
|
- android:name="com.sambath.kunkhmer.screen.main.cflive.Betting.CfBetFragment"
|
|
|
- android:label="fragment_cf_betting"
|
|
|
- tools:layout="@layout/fragment_cf_betting" />
|
|
|
- <fragment
|
|
|
- android:id="@+id/cfResultFragment"
|
|
|
- android:name="com.sambath.kunkhmer.screen.main.cflive.result.CfResultFragment"
|
|
|
- android:label="fragment_cf_result"
|
|
|
- tools:layout="@layout/fragment_cf_result" />
|
|
|
</navigation>
|