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

Discussion in 'Share Your Creations' started by thedesolatesoul, May 21, 2015.

  1. thedesolatesoul

    thedesolatesoul Expert Licensed User


    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)

    Sauce Code (not well commented)
    Requires the following libs:
  2. eurojam

    eurojam Well-Known Member Licensed User

    jep, it works on my nexus 5 (android 5.1)

    this app is the world of scrolling:)
  3. inakigarm

    inakigarm Well-Known Member Licensed User

    Kit kat Genymotion - Moto G2 ok

    Otherwise, what's the problem with cardview ?
  4. thedesolatesoul

    thedesolatesoul Expert Licensed User

    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).

    Lol, too many icons!
  5. freedom2000

    freedom2000 Well-Known Member Licensed User


    Works well and fast with my Samsung S5 Lollipoped :)
    thedesolatesoul likes this.
  6. walt61

    walt61 Active Member Licensed User

    Works fine (and looks excellent :)) on Samsung Galaxy S3, Android 4.3

    Edit: and the same goes for a Ramos W13Pro tablet (8 inch), Android 4.0.3
    Last edited: May 22, 2015
    thedesolatesoul likes this.
  7. susu

    susu Well-Known Member Licensed User

    Works great on LG Optimus G Pro Android 4.1.2. Thanks!
    thedesolatesoul likes this.
  8. Roger Daley

    Roger Daley Well-Known Member Licensed User

    All looks good on my Note 3
  9. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Cool, I'll try to install it.
  10. nso91191

    nso91191 Member Licensed User

    thz bro
  11. desof

    desof Well-Known Member Licensed User

    ??Dim IconicDrawable As MSIconicDrawable

    y esta librería ?
  12. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice