1

I want to open an overlay window when clicking a button on Android.

I don't know where should I begin. Any hints please?

EDIT: What I want is an overlaying window like the WhatsApp app when clicking the emoticon button.

user1471575
  • 731
  • 2
  • 15
  • 23
  • do you struggle to get the overlay window, or to get hold of a button click event in the first place? – herom Jun 27 '12 at 12:02
  • I want to get the overlay window please. – user1471575 Jun 27 '12 at 12:03
  • 1
    it is possible to start a new `Activity` and set the background as transparent (from within the xml file), see: http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android – herom Jun 27 '12 at 12:07
  • In fact what I want to do is something like the WhatsApp app when clicking the emoticon button. – user1471575 Jun 27 '12 at 12:19
  • as far as I know, this is just a customized Activity with height, width, a transparent background color and (if I'm not totally wrong) a half transparent png image as background image. just try playing with the xml of the Activity... ;) – herom Jun 27 '12 at 12:30
  • Please share your experiences once you've tried it ;) – herom Jun 27 '12 at 12:38
  • @user1471575 try showing a customized android Dialog on button click, instead of creating a whole new activity. – Aqif Hamid Jun 27 '12 at 12:53
  • 2
    I used a frame layout instead of using activities :) – user1471575 Jun 27 '12 at 14:32

0 Answers0