I’m hoping this will come to the attention of WK devs as well as technically proficient WK人.
The API documentation states that where a unicode equivalent of a radical exists, the response will contain said character and the image field will be set to null. However, when one does not exist, the character field is set to null and the image field is a URL to the image.
To WK devs:
Do the images for radicals which have a unicode equivalent exist? If they do, could they be exposed in the API too? (ie. if image is null, just let them link be set even if character is non-null).
If they don’t, what has been the process some of you have used to juggle between images and characters in your applications? Would one send the characters that have unicode to jisho to get an image out and use only images? Or would one juggle around with the interface to populate an image where one exists or a character otherwise?
I ask because I am building an android XML layout right now for a which would take in the character (which is fine for Kanji, Vocab, and some Radicals), but if I need to juggle the interface to adapt to whether it is in an image instead of text, I need to either a) inflate and deflate Views accordingly, or b) switch from a simple LinearLayout to a RelativeLayout and mess around with the View’s visibility as needed. Neither of these are ideal.