A fork of Simple Time Tracker with WearOS support. (Now integrated upstream)
0

Configure Feed

Select the types of activity you want to include in your feed.

add slide screen transition to more screens

razeeman (Jul 22, 2023, 2:26 PM +0300) cde4cbbb 0b7e5094

+36 -7
+35 -7
app/src/main/res/navigation/nav_graph.xml
··· 12 12 tools:layout="@layout/main_fragment"> 13 13 <action 14 14 android:id="@+id/action_mainFragment_to_changeRecordTypeFragment" 15 - app:destination="@id/changeRecordTypeFragment" /> 15 + app:destination="@id/changeRecordTypeFragment" 16 + app:enterAnim="@anim/slide_in_right" 17 + app:exitAnim="@anim/slide_out_left" 18 + app:popEnterAnim="@anim/slide_in_left" 19 + app:popExitAnim="@anim/slide_out_right" /> 16 20 <action 17 21 android:id="@+id/action_mainFragment_to_changeRecordFragment" 18 22 app:destination="@id/changeRecordFragment" ··· 25 29 app:destination="@id/changeRunningRecordFragment" /> 26 30 <action 27 31 android:id="@+id/action_mainFragment_to_changeActivityFilterFragment" 28 - app:destination="@+id/changeActivityFilterFragment" /> 32 + app:destination="@+id/changeActivityFilterFragment" 33 + app:enterAnim="@anim/slide_in_right" 34 + app:exitAnim="@anim/slide_out_left" 35 + app:popEnterAnim="@anim/slide_in_left" 36 + app:popExitAnim="@anim/slide_out_right" /> 29 37 <action 30 38 android:id="@+id/action_mainFragment_to_statisticsDetailFragment" 31 39 app:destination="@id/statisticsDetailFragment" /> ··· 58 66 tools:layout="@layout/change_record_type_fragment"> 59 67 <action 60 68 android:id="@+id/action_changeRecordTypeFragment_to_changeCategoryFragment" 61 - app:destination="@id/changeCategoryFragment" /> 69 + app:destination="@id/changeCategoryFragment" 70 + app:enterAnim="@anim/slide_in_right" 71 + app:exitAnim="@anim/slide_out_left" 72 + app:popEnterAnim="@anim/slide_in_left" 73 + app:popExitAnim="@anim/slide_out_right" /> 62 74 </fragment> 63 75 <fragment 64 76 android:id="@+id/changeRecordFragment" ··· 67 79 tools:layout="@layout/change_record_fragment"> 68 80 <action 69 81 android:id="@+id/action_changeRecordFragment_to_changeRecordTagFragment" 70 - app:destination="@id/changeRecordTagFragment" /> 82 + app:destination="@id/changeRecordTagFragment" 83 + app:enterAnim="@anim/slide_in_right" 84 + app:exitAnim="@anim/slide_out_left" 85 + app:popEnterAnim="@anim/slide_in_left" 86 + app:popExitAnim="@anim/slide_out_right" /> 71 87 </fragment> 72 88 <fragment 73 89 android:id="@+id/changeRunningRecordFragment" ··· 76 92 tools:layout="@layout/change_running_record_fragment"> 77 93 <action 78 94 android:id="@+id/action_changeRunningRecordFragment_to_changeRecordTagFragment" 79 - app:destination="@id/changeRecordTagFragment" /> 95 + app:destination="@id/changeRecordTagFragment" 96 + app:enterAnim="@anim/slide_in_right" 97 + app:exitAnim="@anim/slide_out_left" 98 + app:popEnterAnim="@anim/slide_in_left" 99 + app:popExitAnim="@anim/slide_out_right" /> 80 100 </fragment> 81 101 <fragment 82 102 android:id="@+id/statisticsDetailFragment" ··· 110 130 tools:layout="@layout/categories_fragment"> 111 131 <action 112 132 android:id="@+id/action_categoriesFragment_to_changeCategoryFragment" 113 - app:destination="@id/changeCategoryFragment" /> 133 + app:destination="@id/changeCategoryFragment" 134 + app:enterAnim="@anim/slide_in_right" 135 + app:exitAnim="@anim/slide_out_left" 136 + app:popEnterAnim="@anim/slide_in_left" 137 + app:popExitAnim="@anim/slide_out_right"/> 114 138 <action 115 139 android:id="@+id/action_categoriesFragment_to_changeRecordTagFragment" 116 - app:destination="@id/changeRecordTagFragment" /> 140 + app:destination="@id/changeRecordTagFragment" 141 + app:enterAnim="@anim/slide_in_right" 142 + app:exitAnim="@anim/slide_out_left" 143 + app:popEnterAnim="@anim/slide_in_left" 144 + app:popExitAnim="@anim/slide_out_right"/> 117 145 </fragment> 118 146 <fragment 119 147 android:id="@+id/changeCategoryFragment"
+1
features/feature_change_record_tag/src/main/java/com/example/util/simpletimetracker/feature_change_record_tag/view/ChangeRecordTagFragment.kt
··· 66 66 setPreview() 67 67 68 68 setSharedTransitions( 69 + additionalCondition = { params !is ChangeTagData.New }, 69 70 transitionName = (params as? ChangeTagData.Change)?.transitionName.orEmpty(), 70 71 sharedView = previewChangeRecordTag, 71 72 )