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

2012-09-05 Thread tvdalia

 Ok, I added the Theme as Dialog in manifest  uncommented the previous 

 if(fDialogMode) 
 this.requestWindowFeature(Window.FEATURE_NO_TITLE);


and removed the the same line of request after super.onCreate(), doesn't 
give error and works. If fDloag is true, it shows as Activity with title 
and if false, shows as Dialog without title. In the parent Activity already 
setContent is used so was the error.

Now what about showing and hiding the TextView. The xml layout is :

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical android:id=@+id/expListLLId 
!--  
 TextView android:id=@+id/expTitle
 style=@style/inPageTitleStyle
 android:text= /  --
 
 ExpandableListView
 android:id=@+id/ExpList
 android:layout_width=match_parent
 android:layout_height=0dp
 android:layout_weight=1 
 /ExpandableListView
 /LinearLayout


  Regards, 


On Tuesday, 4 September 2012 22:23:27 UTC+5:30, TreKing wrote:

 On Tue, Sep 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 is ... ?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
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

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

2012-09-04 Thread TreKing
On Tue, Sep 4, 2012 at 6:58 AM, tvdalia truptida...@gmail.com 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 is ... ?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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