wlky / AnkiDroid-Wear

Anki for Android Wear devices
GNU General Public License v2.0
48 stars 11 forks source link

category display : inform about categories with cards to be studied #17

Open nbossard opened 7 years ago

nbossard commented 7 years ago

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 ?

wlky commented 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.

nbossard commented 7 years ago

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]

nbossard commented 7 years ago

Screenshot of first try (implementing S1) ok... looks ugly, but it works, suggestions are welcome :-) https://drive.google.com/open?id=0B36dbcAzxZbINk5ITlpRVG92UlU

wlky commented 7 years ago

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.

nbossard commented 7 years ago

ok, I will also I think :

wlky commented 7 years ago

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

nbossard commented 7 years ago

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 device-2017-05-21-224420