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 screen animations

razeeman (May 28, 2023, 5:19 PM +0300) 04f42f00 3c562e1e

+114 -62
+7
app/src/main/res/anim/slide_in_left.xml
··· 1 + <set xmlns:android="http://schemas.android.com/apk/res/android" 2 + android:interpolator="@android:anim/accelerate_decelerate_interpolator"> 3 + <translate 4 + android:duration="@integer/screen_animation_time" 5 + android:fromXDelta="-100%p" 6 + android:toXDelta="0" /> 7 + </set>
+7
app/src/main/res/anim/slide_in_right.xml
··· 1 + <set xmlns:android="http://schemas.android.com/apk/res/android" 2 + android:interpolator="@android:anim/accelerate_decelerate_interpolator"> 3 + <translate 4 + android:duration="@integer/screen_animation_time" 5 + android:fromXDelta="100%p" 6 + android:toXDelta="0" /> 7 + </set>
+7
app/src/main/res/anim/slide_out_left.xml
··· 1 + <set xmlns:android="http://schemas.android.com/apk/res/android" 2 + android:interpolator="@android:anim/accelerate_decelerate_interpolator"> 3 + <translate 4 + android:duration="@integer/screen_animation_time" 5 + android:fromXDelta="0" 6 + android:toXDelta="-100%p" /> 7 + </set>
+7
app/src/main/res/anim/slide_out_right.xml
··· 1 + <set xmlns:android="http://schemas.android.com/apk/res/android" 2 + android:interpolator="@android:anim/accelerate_decelerate_interpolator"> 3 + <translate 4 + android:duration="@integer/screen_animation_time" 5 + android:fromXDelta="0" 6 + android:toXDelta="100%p" /> 7 + </set>
+82 -62
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 16 <action 17 17 android:id="@+id/action_mainFragment_to_changeRecordFragment" 18 - app:destination="@id/changeRecordFragment"/> 18 + app:destination="@id/changeRecordFragment" 19 + app:enterAnim="@anim/slide_in_right" 20 + app:exitAnim="@anim/slide_out_left" 21 + app:popEnterAnim="@anim/slide_in_left" 22 + app:popExitAnim="@anim/slide_out_right" /> 19 23 <action 20 24 android:id="@+id/action_mainFragment_to_changeRunningRecordFragment" 21 - app:destination="@id/changeRunningRecordFragment"/> 25 + app:destination="@id/changeRunningRecordFragment" /> 22 26 <action 23 27 android:id="@+id/action_mainFragment_to_changeActivityFilterFragment" 24 - app:destination="@+id/changeActivityFilterFragment"/> 28 + app:destination="@+id/changeActivityFilterFragment" /> 25 29 <action 26 30 android:id="@+id/action_mainFragment_to_statisticsDetailFragment" 27 - app:destination="@id/statisticsDetailFragment"/> 31 + app:destination="@id/statisticsDetailFragment" /> 28 32 <action 29 33 android:id="@+id/action_mainFragment_to_categoriesFragment" 30 - app:destination="@id/categoriesFragment"/> 34 + app:destination="@id/categoriesFragment" 35 + app:enterAnim="@anim/slide_in_right" 36 + app:exitAnim="@anim/slide_out_left" 37 + app:popEnterAnim="@anim/slide_in_left" 38 + app:popExitAnim="@anim/slide_out_right" /> 31 39 <action 32 40 android:id="@+id/action_mainFragment_to_archiveFragment" 33 - app:destination="@id/archiveFragment"/> 41 + app:destination="@id/archiveFragment" 42 + app:enterAnim="@anim/slide_in_right" 43 + app:exitAnim="@anim/slide_out_left" 44 + app:popEnterAnim="@anim/slide_in_left" 45 + app:popExitAnim="@anim/slide_out_right" /> 34 46 <action 35 47 android:id="@+id/action_mainFragment_to_dataEditFragment" 36 - app:destination="@id/dataEditFragment"/> 48 + app:destination="@id/dataEditFragment" 49 + app:enterAnim="@anim/slide_in_right" 50 + app:exitAnim="@anim/slide_out_left" 51 + app:popEnterAnim="@anim/slide_in_left" 52 + app:popExitAnim="@anim/slide_out_right" /> 37 53 </fragment> 38 54 <fragment 39 55 android:id="@+id/changeRecordTypeFragment" 40 56 android:name="com.example.util.simpletimetracker.feature_change_record_type.view.ChangeRecordTypeFragment" 41 57 android:label="ChangeRecordTypeFragment" 42 - tools:layout="@layout/change_record_type_fragment" > 58 + tools:layout="@layout/change_record_type_fragment"> 43 59 <action 44 60 android:id="@+id/action_changeRecordTypeFragment_to_changeCategoryFragment" 45 - app:destination="@id/changeCategoryFragment"/> 61 + app:destination="@id/changeCategoryFragment" /> 46 62 </fragment> 47 63 <fragment 48 64 android:id="@+id/changeRecordFragment" 49 65 android:name="com.example.util.simpletimetracker.feature_change_record.view.ChangeRecordFragment" 50 66 android:label="ChangeRecordFragment" 51 - tools:layout="@layout/change_record_fragment" > 67 + tools:layout="@layout/change_record_fragment"> 52 68 <action 53 69 android:id="@+id/action_changeRecordFragment_to_changeRecordTagFragment" 54 - app:destination="@id/changeRecordTagFragment"/> 70 + app:destination="@id/changeRecordTagFragment" /> 55 71 </fragment> 56 72 <fragment 57 73 android:id="@+id/changeRunningRecordFragment" 58 74 android:name="com.example.util.simpletimetracker.feature_change_running_record.view.ChangeRunningRecordFragment" 59 75 android:label="ChangeRunningRecordFragment" 60 - tools:layout="@layout/change_running_record_fragment" > 76 + tools:layout="@layout/change_running_record_fragment"> 61 77 <action 62 78 android:id="@+id/action_changeRunningRecordFragment_to_changeRecordTagFragment" 63 - app:destination="@id/changeRecordTagFragment"/> 79 + app:destination="@id/changeRecordTagFragment" /> 64 80 </fragment> 65 81 <fragment 66 82 android:id="@+id/statisticsDetailFragment" ··· 69 85 tools:layout="@layout/statistics_detail_fragment"> 70 86 <action 71 87 android:id="@+id/action_statisticsDetailFragment_to_recordsAllFragment" 72 - app:destination="@id/recordsAllFragment"/> 88 + app:destination="@id/recordsAllFragment" 89 + app:enterAnim="@anim/slide_in_right" 90 + app:exitAnim="@anim/slide_out_left" 91 + app:popEnterAnim="@anim/slide_in_left" 92 + app:popExitAnim="@anim/slide_out_right" /> 73 93 </fragment> 94 + <fragment 95 + android:id="@+id/recordsAllFragment" 96 + android:name="com.example.util.simpletimetracker.feature_records_all.view.RecordsAllFragment" 97 + android:label="RecordsAllFragment" 98 + tools:layout="@layout/records_all_fragment"> 99 + <action 100 + android:id="@+id/action_recordsAllFragment_to_changeRecordFragment" 101 + app:destination="@id/changeRecordFragment" /> 102 + </fragment> 103 + <fragment 104 + android:id="@+id/categoriesFragment" 105 + android:name="com.example.util.simpletimetracker.feature_categories.view.CategoriesFragment" 106 + android:label="CategoriesFragment" 107 + tools:layout="@layout/categories_fragment"> 108 + <action 109 + android:id="@+id/action_categoriesFragment_to_changeCategoryFragment" 110 + app:destination="@id/changeCategoryFragment" /> 111 + <action 112 + android:id="@+id/action_categoriesFragment_to_changeRecordTagFragment" 113 + app:destination="@id/changeRecordTagFragment" /> 114 + </fragment> 115 + <fragment 116 + android:id="@+id/changeCategoryFragment" 117 + android:name="com.example.util.simpletimetracker.feature_change_category.view.ChangeCategoryFragment" 118 + android:label="ChangeCategoryFragment" 119 + tools:layout="@layout/change_category_fragment" /> 120 + <fragment 121 + android:id="@+id/changeRecordTagFragment" 122 + android:name="com.example.util.simpletimetracker.feature_change_record_tag.view.ChangeRecordTagFragment" 123 + android:label="ChangeRecordTagFragment" 124 + tools:layout="@layout/change_record_tag_fragment" /> 125 + <fragment 126 + android:id="@+id/archiveFragment" 127 + android:name="com.example.util.simpletimetracker.feature_archive.view.ArchiveFragment" 128 + android:label="ArchiveFragment" 129 + tools:layout="@layout/archive_fragment" /> 130 + <fragment 131 + android:id="@+id/dataEditFragment" 132 + android:name="com.example.util.simpletimetracker.feature_data_edit.view.DataEditFragment" 133 + android:label="DataEditFragment" 134 + tools:layout="@layout/data_edit_fragment" /> 135 + <fragment 136 + android:id="@+id/changeActivityFilterFragment" 137 + android:name="com.example.util.simpletimetracker.feature_change_activity_filter.view.ChangeActivityFilterFragment" 138 + android:label="ChangeActivityFilterFragment" 139 + tools:layout="@layout/change_activity_filter_fragment" /> 74 140 <dialog 75 141 android:id="@+id/dateTimeDialog" 76 142 android:name="com.example.util.simpletimetracker.feature_dialogs.dateTime.DateTimeDialogFragment" ··· 139 205 android:id="@+id/helpDialogFragment" 140 206 android:name="com.example.util.simpletimetracker.feature_dialogs.helpDialog.HelpDialogFragment" 141 207 android:label="HelpDialogFragment" 142 - tools:layout="@layout/help_dialog_fragment"/> 208 + tools:layout="@layout/help_dialog_fragment" /> 143 209 <dialog 144 210 android:id="@+id/dataEditTypeSelectionDialogFragment" 145 211 android:name="com.example.util.simpletimetracker.feature_data_edit.dialog.DataEditTypeSelectionDialogFragment" ··· 155 221 android:name="com.example.util.simpletimetracker.feature_records_filter.view.RecordsFilterFragment" 156 222 android:label="RecordsFilterFragment" 157 223 tools:layout="@layout/records_filter_fragment" /> 158 - <fragment 159 - android:id="@+id/recordsAllFragment" 160 - android:name="com.example.util.simpletimetracker.feature_records_all.view.RecordsAllFragment" 161 - android:label="RecordsAllFragment" 162 - tools:layout="@layout/records_all_fragment"> 163 - <action 164 - android:id="@+id/action_recordsAllFragment_to_changeRecordFragment" 165 - app:destination="@id/changeRecordFragment"/> 166 - </fragment> 167 - <fragment 168 - android:id="@+id/categoriesFragment" 169 - android:name="com.example.util.simpletimetracker.feature_categories.view.CategoriesFragment" 170 - android:label="CategoriesFragment" 171 - tools:layout="@layout/categories_fragment"> 172 - <action 173 - android:id="@+id/action_categoriesFragment_to_changeCategoryFragment" 174 - app:destination="@id/changeCategoryFragment"/> 175 - <action 176 - android:id="@+id/action_categoriesFragment_to_changeRecordTagFragment" 177 - app:destination="@id/changeRecordTagFragment"/> 178 - </fragment> 179 - <fragment 180 - android:id="@+id/changeCategoryFragment" 181 - android:name="com.example.util.simpletimetracker.feature_change_category.view.ChangeCategoryFragment" 182 - android:label="ChangeCategoryFragment" 183 - tools:layout="@layout/change_category_fragment" /> 184 - <fragment 185 - android:id="@+id/changeRecordTagFragment" 186 - android:name="com.example.util.simpletimetracker.feature_change_record_tag.view.ChangeRecordTagFragment" 187 - android:label="ChangeRecordTagFragment" 188 - tools:layout="@layout/change_record_tag_fragment" /> 189 - <fragment 190 - android:id="@+id/archiveFragment" 191 - android:name="com.example.util.simpletimetracker.feature_archive.view.ArchiveFragment" 192 - android:label="ArchiveFragment" 193 - tools:layout="@layout/archive_fragment" /> 194 - <fragment 195 - android:id="@+id/dataEditFragment" 196 - android:name="com.example.util.simpletimetracker.feature_data_edit.view.DataEditFragment" 197 - android:label="DataEditFragment" 198 - tools:layout="@layout/data_edit_fragment" /> 199 - <fragment 200 - android:id="@+id/changeActivityFilterFragment" 201 - android:name="com.example.util.simpletimetracker.feature_change_activity_filter.view.ChangeActivityFilterFragment" 202 - android:label="ChangeActivityFilterFragment" 203 - tools:layout="@layout/change_activity_filter_fragment" /> 204 224 </navigation>
+4
app/src/main/res/values/integers.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?> 2 + <resources> 3 + <integer name="screen_animation_time">300</integer> 4 + </resources>