Share My Creation Demo + Sauce: MSIconicDrawable + CardView + DynamicGrid

2h5tgus.jpg


This is a small demo to show how to list all GoogleMaterialDrawable icons from a font ttf file, and displays them. It uses MSDynamicGrid to show them and shows them as cards using the MSCardView.

I would like to know if it works ok on your devices.

Mainly this demos some frustrations about the app compat cardview.
Currently is it tuned for <API21. It will look a little off on lollipop devices.
The borders and padding are different in these versions, it is a bit annoying to use on < API21 as the card itself will not clip the borders, but you much clip the borders of the view yourself. I did it by using klaus' setCornerRadii method.

Demo APK (too big for forum)
https://www.dropbox.com/s/wx6ls8fcvt4s99n/MSIconicDrawableDemo.apk?dl=0

Sauce Code (not well commented)
Requires the following libs:
72ws3n.jpg

https://www.dropbox.com/s/demf0mlupz4hx98/MSIconicDrawable.zip?dl=0
 

eurojam

Well-Known Member
Licensed User
Longtime User
jep, it works on my nexus 5 (android 5.1)

this app is the world of scrolling:)
 

thedesolatesoul

Expert
Licensed User
Longtime User
Kit kat Genymotion - Moto G2 ok
Otherwise, what's the problem with cardview ?
The padding and clipping is not consisent between API21+ or <API21.
It makes you unsure of where to place your views, and also you have the round the edges of the views inside yourself.
There are a number of options but it gets confusing which to use and which not. (setUseCompatPadding, setUsePreventCornerOverlap).

this app is the world of scrolling:)
Lol, too many icons!
 

susu

Well-Known Member
Licensed User
Longtime User
Works great on LG Optimus G Pro Android 4.1.2. Thanks!
 

desof

Well-Known Member
Licensed User
Longtime User
??Dim IconicDrawable As MSIconicDrawable

y esta librería ?
 
Top