mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
2662e8b937
* animate FAB * remove all instances of add note layout * update animations for `create deck` and `get shared deck` * fix FAB to show completely during Rise animation Add `8dp` margin top to make the FAB show completely when it undergoes Rise Animation where we increase the size of FAB on pressed. Also decreases the translation values for Create Deck and Get Shared Decks after removal of Add Note Layout * pressing fab opens the add note also removed unwanted closing of FAB upon choosing Add Note, Create Deck or GetShared Deck * function for closing FAB when chosen `Create Deck` option This new function is same to the already present closeFloatingActionMenu() function but the only difference is that this function does not scale the FAB due to which we don't see the scaling up/down animation on FAB which makes the FAB animation smooth. Otherwise when we click `Create Deck` the FAB undergoes the scaling up/down animation in the background which does not looks nice. * fixes abrupt closing of FAB upon choosing `Get Shared Decks` * add label for add note * add colors by accessing them from attributes * hide `add` label when choosing create deck * fix unit test crash Remove instances of add_note_layout from DeckPickerFloatingActionMenuTest.kt because it has been removed as a layout from DeckPickerFloatingActionMenu.kt * fix: FAB animation when opening side drawer As we were using closeFloatingActionMenu in DeckPicker while overriding onCreateOptionsMenu we were doing the rise and shrink animation of FAB which looks weird. To avoid that we use the new function `closeFloatingActionMenuCaseTwo` which doesn't do the rise and shrink animation * refactor: remove extra function for closing FAB * remove un-necessary else-if condition * improve animation Improved the movement of animation for FAB by changing animation values for translations and alphas. Also matching the duration of different layouts to make the animation more smoother. * make add note drawable animation smooth rotate the add note drawable icon by 180 (basically inverting the image to X-axis) and while rotating the icon in FAB just rotate it 180f instead of 360f which makes the rotation animation more smooth and clean * fix: halogen shadow artifact inside FAB on plain themes * fix: unit test crash Fixed unit test crash and updated addNoteLabel to follow the lifecycle of FAB in DeckPickerFloatingActionMenu * pressing on Add Label opens AddNote screen * fix color of FAB on pressing Get Shared Deck label Color of FAB was changing to blue on pressing Add Shared deck label which will now sync with the color of theme * fix : failing instrumented test * fix: lint error Lint error "Declarations and declarations with comments should have an empty space between." * fix: maintain FAB color and functionality if safe display mode in on If we are using the app in Safe display mode then clicking the fab would change the icon to note icon but there won't be any change in the color of the button as in case of (when animation is enabled). Secondly on pressing back button or choosing any options we make the icon to change back to (add icon) without any animations * fix: prevents FAB from changing color if any of the system animation is disabled * add comment for the function and remove unnecessary testing code * fix: abrupt changes in FAB icon when selecting an option |
||
---|---|---|
.github | ||
.idea | ||
AnkiDroid | ||
annotations | ||
api | ||
docs | ||
gradle/wrapper | ||
lint-rules | ||
tools | ||
.codecov.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
build.gradle | ||
CONTRIBUTING.md | ||
COPYING | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
lint-release.xml | ||
lint.gradle | ||
pre-commit | ||
README.md | ||
settings.gradle |
AnkiDroid
A semi-official port of the open source Anki spaced repetition flashcard system to Android. Memorize anything with AnkiDroid!
Features
- night mode
- whiteboard
- progress widget
- detailed statistics
- syncing with AnkiWeb
- write answers (optional)
- text-to-speech integration
- more than 6000 premade decks
- spaced repetition (supermemo 2 algorithm)
- supported contents: text, images, sounds, MathJax
- add cards by intent from other applications like dictionaries
Install
Wiki
View Wiki
Help
Check the user manual and the wiki for usage instructions. See the help page for how to submit a bug report or contact a project member, etc.
Contribute
You can contribute to AnkiDroid by beta testing, translating, or submitting code. See the contribution wiki page for more info.
Join Us On
Credits
Code Contributors
Thanks to these awesome code contributors who keep this project going
Sponsors
Backers
Thank you to all our backers! 🙏
Translators
Thanks to our 1400 translators, for allowing us to be available, partially or totally, in 99 languages as of July 2022.
License
- GPL-3.0 License
- AGPL-3.0 Licence for some part of the back-end