Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread tvdalia
Calin, hardcoding my ListView layout_height=200dp gave the results. // 100dp was too small so made 200 But I use the method to create various items of List - their maybe just 2 items or 20. If I made it 200dp, then the list that has just 2 items was shown big with extra space below. If I made

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread tvdalia
Calin, Made LineatLayout layout_height - 150dp ListView's height = match_parent. Unfortunately, no success. Infact the result was same as shown above. Also tried ListView height as wrap_content, both show same results as show above. LinearLayout

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread tvdalia
, tvdalia trupt...@gmail.com javascript:wrote: I couldn't find any example from docs as per my needs and that you and Trek are reffering to. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread tvdalia
, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 29, 2012 at 12:14 PM, tvdalia trupt...@gmail.comjavascript: wrote: Treking, Thanks But pls read understand my question proeprly. I don't want to know how to handle events in the same dialog

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-05 Thread tvdalia
Justin, I changed in xml layout_height of both LinearLayout ListView as wrap_content instead of match_parent. But also same results. This is the way I have coded for that layout to create a dialog : public AlertDialog createAlertDialog(String title, String[] items, OnItemClickListener

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-05 Thread tvdalia
Calin, For hard coded layout_height, how to figure out that. I can have the MainBody's height, but how do I set it as hard coded something like 300dp or so. I believe I will have to do that in createAlertDialog() - due to different screen sizes, right. I gave this line in method below

Re: [android-developers] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-05 Thread tvdalia
4, 2012 at 6:58 AM, tvdalia trupt...@gmail.com javascript:wrote: I removed Dialog Theme from manifest, and added requestWindowFeature (Window.FEATURE_NO_TITLE);, for the Dialog case, this gives me RuntimeException on this line. And the exception

[android-developers] How to set height of a custom developed AlertDialog ?

2012-09-04 Thread tvdalia
Hello, I create a custom AlertDilaog using inflate Layout. It uses all the space it can. I want it to restrict the height. My Activities have differnt part : MainBODY Footer Thier is a ParentActivity that has a standard footer and in other activities I inflate the ViewGroup in the

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-04 Thread tvdalia
On Sep 4, 2012 4:18 PM, tvdalia trupt...@gmail.com javascript: wrote: Hello, I create a custom AlertDilaog using inflate Layout. It uses all the space it can. I want it to restrict the height. My Activities have differnt part : MainBODY Footer Thier is a ParentActivity that has

[android-developers] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-04 Thread tvdalia
Hello, I have an Activity (ExpandListActivity) which in one cas want to show as a Dialog and in other situation want to show as an Activity. The layout of ExpandListActivity has a TextView ExpandList in a LinearLayout. When I show it as Dialog I want to remove the TitleBar TextView

[android-developers] Re: Window.FEATURE_NO_TITLE /Theme.NoTitleBar - Leaks Launching Activity

2012-09-02 Thread tvdalia
You can give theme as Dialog and hide the window title bar. Otherwise, to display an Activity, I believe you cnanot hide the title bar without using any of the below options. Regards, On Saturday, 1 September 2012 22:12:19 UTC+5:30, itai wrote: Filled bug below… Anyone know how

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-01 Thread tvdalia
of some sort... Each activity can have its own set of click listeners and they just pass them in when they need the dialog. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 29, 2012 at 12:14 PM, tvdalia trupt...@gmail.comjavascript

[android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-08-29 Thread tvdalia
Hello, I am new to this group. In my app I have a scene where I need to show listView with title in many situations. So I created a gen_list_layout.xml with a TextView a ListView in it. Now to show the list, I planned to create a method public static AlertDialog

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-08-29 Thread tvdalia
, Aug 29, 2012 at 11:06 AM, tvdalia trupt...@gmail.comjavascript: wrote: Now how do I handle click events for the ListView that is in AlertDialog ?? Review the Dialogs section in the documentation. It shows how to handle single and multiple choice selections in Diaogs

[android-developers] Confused with Changing multiple screens !!!

2012-01-08 Thread tvdalia
Hello, I am a newbie in Android. I want to develop an application where I can change the screens based on button selected. Application might endup with 20+ screens with buttons or entry form. From 1 screen I got to change the screen to some other screen. I thought of FrameLayout where I can