mirror of
https://github.com/dzeiocom/OpenHealth.git
synced 2025-06-22 04:59:18 +00:00
feat(app): Add weight goal #88
This commit is contained in:
@ -4,6 +4,10 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/mobile_navigation"
|
||||
android:label="@string/app_name"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right"
|
||||
app:startDestination="@+id/nav_home">
|
||||
|
||||
<fragment
|
||||
@ -13,18 +17,10 @@
|
||||
tools:layout="@layout/fragment_home">
|
||||
<action
|
||||
android:id="@+id/action_nav_home_to_nav_list_weight"
|
||||
app:destination="@id/nav_list_weight"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right" />
|
||||
app:destination="@id/nav_list_weight" />
|
||||
<action
|
||||
android:id="@+id/action_nav_home_to_nav_water_home"
|
||||
app:destination="@id/nav_water_home"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right" />
|
||||
app:destination="@id/nav_water_home" />
|
||||
<action
|
||||
android:id="@+id/action_nav_home_to_nav_add_weight_dialog"
|
||||
app:destination="@id/nav_add_weight_dialog" />
|
||||
@ -47,14 +43,13 @@
|
||||
tools:layout="@layout/fragment_list_weight">
|
||||
<action
|
||||
android:id="@+id/action_nav_list_weight_to_nav_edit_weight"
|
||||
app:destination="@id/nav_edit_weight"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right" />
|
||||
app:destination="@id/nav_edit_weight" />
|
||||
<action
|
||||
android:id="@+id/action_nav_list_weight_to_nav_add_weight_dialog"
|
||||
app:destination="@id/nav_add_weight_dialog" />
|
||||
<action
|
||||
android:id="@+id/action_nav_list_weight_to_nav_weight_dialog"
|
||||
app:destination="@id/nav_weight_dialog" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
@ -76,27 +71,15 @@
|
||||
tools:layout="@layout/fragment_main_water_home">
|
||||
<action
|
||||
android:id="@+id/action_nav_water_home_to_nav_water_edit"
|
||||
app:destination="@id/nav_water_edit"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right" />
|
||||
app:destination="@id/nav_water_edit" />
|
||||
<action
|
||||
android:id="@+id/action_nav_water_home_to_nav_water_size_dialog"
|
||||
app:destination="@id/nav_water_size_dialog"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right" />
|
||||
app:destination="@id/nav_water_size_dialog" />
|
||||
</fragment>
|
||||
|
||||
<dialog
|
||||
android:id="@+id/nav_water_size_dialog"
|
||||
android:name="com.dzeio.openhealth.ui.water.WaterSizeSelectorDialog"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right"
|
||||
tools:layout="@layout/dialog_water_size_selector">
|
||||
|
||||
</dialog>
|
||||
@ -104,10 +87,6 @@
|
||||
<dialog
|
||||
android:id="@+id/nav_add_weight_dialog"
|
||||
android:name="com.dzeio.openhealth.ui.weight.AddWeightDialog"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right"
|
||||
tools:layout="@layout/dialog_water_size_selector">
|
||||
|
||||
</dialog>
|
||||
@ -115,21 +94,13 @@
|
||||
<fragment
|
||||
android:id="@+id/nav_settings"
|
||||
android:name="com.dzeio.openhealth.ui.settings.SettingsFragment"
|
||||
android:label="@string/page_settings"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right">
|
||||
android:label="@string/page_settings">
|
||||
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/nav_water_edit"
|
||||
android:name="com.dzeio.openhealth.ui.water.EditWaterDialog"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right"
|
||||
tools:layout="@layout/dialog_water_edit_water">
|
||||
|
||||
<argument
|
||||
@ -141,10 +112,6 @@
|
||||
<fragment
|
||||
android:id="@+id/nav_extension"
|
||||
android:name="com.dzeio.openhealth.ui.extension.ExtensionFragment"
|
||||
app:enterAnim="@android:anim/slide_in_left"
|
||||
app:exitAnim="@android:anim/slide_out_right"
|
||||
app:popEnterAnim="@android:anim/slide_in_left"
|
||||
app:popExitAnim="@android:anim/slide_out_right"
|
||||
tools:layout="@layout/fragment_extension">
|
||||
|
||||
<argument
|
||||
@ -184,4 +151,15 @@
|
||||
android:name="com.dzeio.openhealth.ui.steps.StepsHomeFragment"
|
||||
android:label="@string/menu_steps"
|
||||
tools:layout="@layout/fragment_steps_home" />
|
||||
|
||||
<dialog
|
||||
android:id="@+id/nav_weight_dialog"
|
||||
android:name="com.dzeio.openhealth.ui.weight.WeightDialog"
|
||||
tools:layout="@layout/dialog_weight"
|
||||
>
|
||||
|
||||
<argument
|
||||
android:name="dialog_type"
|
||||
app:argType="integer" />
|
||||
</dialog>
|
||||
</navigation>
|
||||
|
Reference in New Issue
Block a user