Layout for an icon widget


Last Updated:

  1. vittochan

    vittochan New Member This Topic's Starter

    Joined:
    Jun 10, 2010
    Messages:
    4
    Likes Received:
    0
    Hi,
    I want to develop a widget to have an icon similar to the "email" (not gmail) icon and add to it the unread count.
    I'm not able to reproduce a layout similar to the email icon (with similar dimension and alignment) with similar label (with similar round corners).

    [​IMG]

    Is there someone that can help me?

    Thanks
    Vittochan
     

    Advertisement
  2. IanGClifton

    IanGClifton Well-Known Member

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    I'm not sure what your problem exactly is. Are you just creating a 72x72 widget for this or is this being embedded in another widget?
     
  3. vittochan

    vittochan New Member This Topic's Starter

    Joined:
    Jun 10, 2010
    Messages:
    4
    Likes Received:
    0
    No, sorry for my bad english.
    I want create a widget with the same layout of an "application shortcut": icon and label
     
  4. IanGClifton

    IanGClifton Well-Known Member

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    No worries on the language :)

    It sounds like you should create a 72x72 widget. Inside of it would be an ImageView that uses the email icon:
    MDPI version
    HDPI version

    Then you'd have a TextView for the application name with a ShapeDrawable as the background image (2D Graphics | Android Developers).
     

Share This Page

Loading...