Friday, July 8, 2011

Setting Background Image and xml Resource

Use Layer List and Item tag for setting Image and use solid tag and set the color as #AA000000 for transparent as shown below 

   <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  <item>
    <shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle" android:padding="10dp">
        <solid android:color="#AA000000"/>
        <corners android:bottomRightRadius="30dp"
            android:bottomLeftRadius="30dp" android:topLeftRadius="30dp"
            android:topRightRadius="30dp" />
    </shape>
    </item>
  <item> <bitmap android:src="@drawable/yourfilename"/>
</item>
 </layer-list>

Notification in Android Using AlarmManager, BoradCastReceiver & Services

    Our aim is to show notification message to user in a specific time.     Say For example , I have planned to show Notification ...