In 'list_selector_background' you can set your default background image with no state
and set highlight image with state_pressed or state_focused. http://developer.android.com/reference/android/widget/ImageButton.html On Feb 5, 8:40 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote: > Thank U Haric. > > I got it. > > But one more thing is, > I need to set a image to that Layout background. > Then how can i set these background too...? Pls ?.. > > > > On Fri, Feb 5, 2010 at 4:58 PM, haric zhu <haric....@gmail.com> wrote: > > HI Sasikumar.S, you can set a xml file as it's background like ListView > > default action > > add this --> > > android:background="@android:drawable/list_selector_background" > > to your layout file > > > 2010/2/5 Sasikumar.S <sasikumar.it1...@gmail.com> > > >> Hi, > > >> Can any one know how to highlight when we touch the layout?.... > > >> In my program i'm adding adding a textview to Linear Layout. > >> When user touchs the Linear Layout it should perform some action. > >> Its all working. > >> But when user touches the screen. Its not highlighting. > >> So it is not looking good.. > > >> Any one know how to highlight?.. > > >> -- > >> Thanks & Regards > >> Sasikumar.S > > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Android Developers" group. > >> To post to this group, send email to android-developers@googlegroups.com > >> To unsubscribe from this group, send email to > >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > >> For more options, visit this group at > >>http://groups.google.com/group/android-developers?hl=en > > > -- > > Best Regards > > > Haric > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Thanks & Regards > Sasikumar.S -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en