5

I want to create a custom dialog like Quick Contact in contact app or the one in official Twitter app. When i click on a button, it will be opened above or below the button.

http://londatiga.net/images/qc-tw.jpg Quick Contact & Twitter

I've read the source code of Contact app but it seems to use internal API. The alternative solution is to extends Dialog class, i can set custom layout, but can't manage to position the dialog. Any solutions for this?

Thanx in advance

Lorensius W. L. T
  • 1,734
  • 4
  • 19
  • 31
  • 3
    if you want the quick actions: see: http://stackoverflow.com/questions/3113106/how-to-make-twitter-app-style-quick-actions-on-android if you want the quick contact popup: see: http://stackoverflow.com/questions/3168115/how-can-i-launch-the-quickcontact-action-in-android-2-1/3168363#3168363 – Rich Schuler Jul 03 '10 at 05:28
  • Thanx a lot Qberticus, thats excatly as i want..will make a try..:-) – Lorensius W. L. T Jul 04 '10 at 03:39

2 Answers2

3

Look at this project NewQuickAction3D

The default orientation is vertical, so it will looks much different as you wish. You need to change the orientation in ExampleActivity from VERTICAL to HORIZONTAL.

Frank Cheng
  • 5,928
  • 9
  • 52
  • 80
1

Look at this project GreenDroid

It have exactly what you need. You just have to merge it in your project and call right activity, it is very easy. There is also GreenDroid demo app on the market, it is called GDCatalog so you can test some of the features. And I think that there is a python script that merge GreenDroid in to your app for you. QuickAction is the demo in the app that you are looking for. It is very good looking too.

Saša Šijak
  • 8,717
  • 5
  • 47
  • 82