1. Check out our companion app, Forums for Android! Download from Google Play

Layout for an icon widget

Discussion in 'Application Development' started by vittochan, Jun 15, 2010.

  1. vittochan

    vittochan New Member
    Thread Starter
    5

    Jun 10, 2010
    4
    0
    5
    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. 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
    Thread Starter
    5

    Jun 10, 2010
    4
    0
    5
    No, sorry for my bad english.
    I want create a widget with the same layout of an "application shortcut": icon and label
     
  4. 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...