Android : Extending Theme Dialog - Unable To Theme In Project
Mar 6, 2009
I've extended Theme.Dialog to use a different color as per the sample in the ApiDemos project but for some reason it does not use the theme properly in my project. I created a new project and it works perfectly fine there. The main problem here is that it does not show as floating in my project. Instead, it sets the rest of the screen black except for what would be the dialog window, where it uses the correct colors, etc. Any ideas? I am beating my head against the wall here.
View 2 Replies
Sep 10, 2010
I'm trying to create a basic AlertDialog using an activity with a theme of Theme.Dialog.What I want is for there to be a horizontal bar between the title and the message. However, the bar is not being resized correctly. Rather than being the width of the activity, the bar is the width of the message text. This means that if the activity is being expanded by the message, then the bar will fill the whole activity, so it looks correct. However, if the message width is less than the activity width, the bar only displays above the part of the activity with the text. I've tried every single combination of "fill_parent" and "wrap_content" that I can think of, and none of those work.I've also tried using RelativeLayout and placing the bar above the message text, but that also doesn't work. If I use the RelativeLayout approach and set the bar to fill_parent, it causes the activity to expand to fill the whole screen width, which is also undesirable. Ideally, I want the text placed, the activity width computed, and the bar resized to that width (without affecting it). Is there some way to flag a view to fill the parent view but not to affect its size?
View 1 Replies
View Related
Jul 15, 2009
I use themes in my apps, which generally just extend android:Theme and then set a bunch of styles. I use dialogs made from layouts, but since I set the theme for the application, they have inherited all of the regular styles and no longer carry a border, etc. My question is: How do I say, "I want everything to use this theme which extends Theme, except dialogs, which should use this other theme that extends Theme.Dialog"? It seems like that's how things work by default but when you set the theme to your own, you lose the dialog theme!
View 3 Replies
View Related
Aug 27, 2009
I have an application with an activity A which creates an activity B (in theme dialog). I push the button in my activity B to finish it, i come back on activity A, it is ok. Then I press the button return on my G1, i go back on my home screen. And now if i do a long press on the home button, and i click on my application, it is the activity B which appears ! I finish my activity B, with this code : setResult(RESULT_OK); finish();
View 4 Replies
View Related
Jun 15, 2010
I need to launch a Dialog from home screen widget, so I created an Activity with android: theme=" @android: style/Theme.Dialog"The problem is, that I would like make it look like standard dialog window ( buttons on the gray background, font and text size, paddings etc),Is there some standard way (theme?) to make it look like standard system dialogs? Or do I have to imitate it in my own layout?
View 1 Replies
View Related
Aug 24, 2009
I am facing a strange problem. I have 2 activities.The Second activity having the theme.Dialog (set in manifest). when I launched the second activity from first activity via startActivityforResult(). The Second activity is not Visible.
View 8 Replies
View Related
Mar 6, 2010
I have an activity with the dialog theme applied to it. I am setting the dialog title, but the string is quite long, and instead of wrapping, it just gets truncated. Is there a way to wrap the title instead?
View 2 Replies
View Related
Jun 22, 2009
i have dialog style activity android:theme="@android:style/Theme.Dialog"The menu appears about 50 px from the bottom of this dialog. So if activity screen is too small - it right in the middle of the screen. Is there any way to anchor menu to the bottom of the screen?
View 5 Replies
View Related
Jan 25, 2009
I have a PreferenceActivity defined in the manifest with android:theme="@android:style/Theme.Dialog. The theme works well with the first settings screen, but not with the child PreferenceScreen elements (if I have several screens in my preferences). The child screens have the default Theme applied in this case.If the theme is changed to Theme.Light or the default, it works well for all the screens(parent and children included)Is there a way to apply the theme to the children, or is this a BUG ?
View 11 Replies
View Related
Sep 23, 2010
I want to start an activity as a dialog, which can be simply done by: <activity android:theme="@android:style/Theme.Dialog">
But I want to do control the dialog, so I've to do it programmatically. Basically I want to modify this property of dialog: mCanceledOnTouchOutside = true
This will make the dialog cancel itself when touched outside of it's bounds. (Basically I want to replicate the popup behavior). The issue is I can't simply create a dialog and set it's layout since I need a call to activity (to initialized datasets)
View 3 Replies
View Related
Aug 29, 2010
I declared a WebView activity in the manifest like this. code...
When I start this activity within my main activity, only the title of the dialog, containing the apps name, is visible but not the WebView. If I add a TextView to the LinearLayout, it is shown as well, but still the WebView is missing.
If I don't apply android:theme="@android:style/Theme.Dialog" in the manifest, the WebView is displayed.
Why is that and how can I show a WebView in a dialog?
View 2 Replies
View Related
Feb 17, 2009
If my custom Activity style inherite from android: style/Theme.Dialog: <style name="MyTransparent" parent="android:style/Theme.Dialog"> </style>
The menu associated with my activity pop up on the center of the screen.
Is this the expected behaviour? Is there any workaround?
View 2 Replies
View Related
Aug 26, 2009
yes, I know how to do it in the java code (requestWindowFeature (Window.FEATURE_NO_TITLE)) -- but I would like to create a style that does that.
View 4 Replies
View Related
Jul 29, 2010
I am having issues with my droid. I flashed Cyanogenmod 6.0 RC2. But now I am unable to flash any themes or other roms, all I get is error messages on reboot. I am able to restore previous backups but even when I do that I still have the same issue of not being able to flash a theme or rom. That is using rom manager or manually.
View 4 Replies
View Related
Sep 13, 2010
Is there a performance impact, especially with regard to battery performance, if we switch from the default black theme of android to white or another colour?
View 2 Replies
View Related
Apr 3, 2010
I just downloaded 2 themes from OpenHome and the clocks that I assume go with the themes are gone. I have a few skins and those clocks wont display either. The only clock I can get to show is the analog one that came with the phone.Any thoughts or ideas? I have the Motorola Back Flip.I have restarted, battery pull (that is what I used to do on my cursed Blackberry).
View 2 Replies
View Related
Nov 15, 2010
I need to use particular image as the theme for my most of the activities in my application...
how to do this..
View 2 Replies
View Related
Jun 20, 2009
Is there any information on extending the GMail application? Or better yet, I for one am relatively irritated that I can't email or upload non-picture/video files that I might have on my SD card, so I'd like to create a provider of some sort to enable the ability to upload or email any arbitrary file. Any ideas?
View 2 Replies
View Related
Oct 5, 2009
Is it possible to create custom theme? And give its properties such as window type, background color, font size, etc.?
View 5 Replies
View Related
Nov 15, 2010
I'm developing an Android application and I want to change the color and theme of the application. How can I do this?
View 1 Replies
View Related
Feb 26, 2009
I'm trying to give an option to users to be able to change the theme to the light one. I can't find any command or anything for this. I know I can set this in the Manifest file but this is not what I'm looking for.
View 3 Replies
View Related
Jun 28, 2010
I'm changing the theme of an activity in onCreate using setTheme (I'm doing that even before calling super.onCreate(), as this is supposed to be more reliable).It does work in the sense that it changes the background and foreground colors. However, my layout has a few elements that use styles like textAppearanceLarge. Now Android's textAppearanceLarge internally uses the textPrimaryColor - which is still unchanged by my theme.I tried to override the primary text color in my theme, but that doesn't seem to work.
View 2 Replies
View Related
Jun 17, 2009
can someone tell me if I can change the activity animation by applying a theme?I know the change will not be global, but is it even possible to make the change to be applied within my own app? For example, if i have an app that does not want to standard slide in/out animation on start/ exit, is it possible to change them?
View 8 Replies
View Related
Jun 6, 2010
The background image is not getting loaded but the text color and textViewStyle got changed. The background image remains the defalult one -blank screen.If I am setting the theme in android manifest file then it works properly.Can anybody tell me the reason for this?
View 3 Replies
View Related
Jan 30, 2009
Could anyone post or point me to an example of using custom items in a theme? I've created a theme that uses custom attributes as item names, and I want to refer to those items in the code. I can see the theme is working because it also sets the android:windowBackground color. As a concrete example, I want an inactiveColor item in my Theme.GreenWithYellow to use in onDraw methods in my Views. I think this would be the right mechanism to use to have multiple color schemes for application specific purposes, but I would be happy to entertain other approaches, too.
View 11 Replies
View Related
Oct 23, 2010
i'm trying to define a theme for an appwidget, and have it applied at the application level. i have a theme like, <style name="theme.dark"> <item name="android"background">#000000</item> </style> in my manifest, i set android:theme="@style/theme.dark". however, when i run the appwidget, it does not pick up the items from the style. i tried setting style="@style/theme.dark" on an individual element in my view layout, and that does work ... but that's not what i want. i don't want to call out a specific style="..." for each element in my view. this page...................
View 3 Replies
View Related
Jan 14, 2010
Each of these seems to have their ins and outs and I am sure many others are thinking about any one of these.
View 30 Replies
View Related
Jan 21, 2009
In a preferences screen in my application which is build by extending the PreferenceActivity i need to change background on the window itself and on the PreferenceCategory. How i can do it via Themes/Styles ? Which attributes i need to define ?
View 3 Replies
View Related
Sep 18, 2010
From the beginning the android app has black background, I want to make all these changes, How is that possible?
View 1 Replies
View Related
May 15, 2009
Hi to all... Im having some problem in the Android W
View 2 Replies
View Related