Transparent Activity ??? (androids start screen at the back)

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Transparent Activity ??? (androids start screen at the back)

Postby patrox » Tue Jul 01, 2008 5:01 pm

Hi!

1)i would like to have a transparent activity.the problem is the default black background.is it possible to launch the activity without beeing in full screen or without the black background so that android's menu is on the backgound?


2) i am using relative layouts and i cannot position the left upper corner of the activity in no other place but the upper corner of the screen...
is it possible to do that? (kind of similar to the first question)

Thanks!
patrox
Freshman
Freshman
 
Posts: 8
Joined: Wed Apr 02, 2008 8:21 pm

Top

Postby michael_g_hu » Wed Jul 02, 2008 9:02 am

you can define the activity style in the androidmanifest.xml, which like
<activity android:name="AlarmAlert" android:label="Alarm"
android:theme="@android:style/Theme.Dialog"
android:launchMode="singleTask">
</activity>

this can make a activity appeaded like dialog
michael_g_hu
Developer
Developer
 
Posts: 35
Joined: Fri Mar 21, 2008 9:46 am

Postby patrox » Wed Jul 02, 2008 5:43 pm

Godlike!!!

thanks a lot , i ve totaly forgot those atributes.


Is there a good reference with all the layout atributes? , the google site is chaotic.
patrox
Freshman
Freshman
 
Posts: 8
Joined: Wed Apr 02, 2008 8:21 pm

Postby www.rzr.online.fr » Wed Jul 22, 2009 4:37 pm

patrox wrote:Godlike!!!

thanks a lot , i ve totaly forgot those atributes.


Is there a good reference with all the layout atributes? , the google site is chaotic.


android:theme="@android:style/Theme.Translucent"

may help also
User avatar
www.rzr.online.fr
Junior Developer
Junior Developer
 
Posts: 20
Joined: Tue Feb 03, 2009 11:39 am
Location: fr/35/rennes

Postby Profete162 » Wed Jan 13, 2010 10:09 pm

I really love the theme.dialog.

But is that possible to change the size of the activity so that i can have a little dialog?

thank for answers..
Profete162
Experienced Developer
Experienced Developer
 
Posts: 67
Joined: Fri Nov 27, 2009 6:07 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests