Open nbossard opened 7 years ago
Yeah I think this makes total sense. It's been a while since I have checked the AnkiDroid Api, so I'm not completely sure if they currently provide the information we need for S1. S2 should be possible.
I had a quick look and found following in code and logs:
04-26 23:36:54.211 15349-18009/com.yannik.wear.anki D/WearMessageListener: deckName Orange 04-26 23:36:54.212 15349-18009/com.yannik.wear.anki D/WearMessageListener: deckCounts [0,0,4]
Which is consistent with number of cards in Anki for this deck/category .So should be feasible I think using
com.ichi2.anki.FlashCardsContract.Deck.DECK_COUNTS These are the deck counts of the Deck. [learn, review, new]
Screenshot of first try (implementing S1) ok... looks ugly, but it works, suggestions are welcome :-) https://drive.google.com/open?id=0B36dbcAzxZbINk5ITlpRVG92UlU
Nice! it's a very good start. I guess we could add some colors to the numbers (blue, red, green) like in the AnkiDroid app.
ok, I will also I think :
you could also take a look at replacing the listview with a recyclerview, possibly even this: https://developer.android.com/wear/preview/features/wearable-recycler-view.html
That is a great suggestion, but I will do it in a second time due to lack of time. Here is upated screenshot of version I am about to push
As a user with many categories I would like to know which one have some cards to study So that I don't have to open each category one after the other
I see Two graphical possible solutions in caegory list screen :
Any opinion ?