Android :: Theme.Dialog For PreferenceScreen Child Does Not Work
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
Aug 27, 2010
I have a PreferenceScreen that is defined in XML that serves all the preferences for my application. This PreferenceScreen also has a child PreferenceScreen nested within it. My implementing class is called PreferencesActivity. I know I can open the main Preferences window via startActivity(new Intent(this, PreferencesActivity.class)); but how do I go about opening the child PreferenceScreen via an Intent?
View 3 Replies
View Related
May 20, 2010
I have a PreferenceScreen that is defined in XML that serves all the preferences for my application. This PreferenceScreen also has a child PreferenceScreen nested within it. My implementing class is called PreferencesActivity. I know I can open the main Preferences window via startActivity(new Intent(this, PreferencesActivity.class)); but how do I go about opening the child PreferenceScreen via an Intent?
View 3 Replies
View Related
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
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
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
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 11, 2010
I want the view group to extend with the ScrollView if the content of the group is smaller than the display area of the ScrollView.
How can I have the ScrollView child extend to fill the parent if it's smaller than the parent?
CODE:.........................
View 3 Replies
View Related
Apr 28, 2009
When apply the white theme, the text views and scrollviews display black background....and its very hard to read the text. The same app works fine on the 1.1 SDK. I am running the application on the Dev Phone (but emulator also have same symptoms)
View 15 Replies
View Related
Sep 1, 2009
In one of my activities, I use the Theme.Dialog style, and I can't get the window to launch at full size.why does that not work? I also tried setting the size in pixels, but that has no effect whatsoever.
View 6 Replies
View Related
Oct 10, 2010
Is there a theme that would work for UD 8 that would give me the sliding application drawer that 2.1 had?
View 1 Replies
View Related
Nov 15, 2010
I ACCIDENTLY INSTALLED A THEME AND MY EVO WILL JUST BE STUCK ON THE FIRST WHITE SCREEN. NOTHING EVER HAPPENS. I FORGOT TO DO NANDROID... WHAT SHOULD I DO TO GET IT BACK TO WORK!
View 15 Replies
View Related
Jan 6, 2010
I have a simple ListView and on that ListView I have placed a number of custom defined Views. The CustomView has ImageView and two TextViews.
The CustomView also has a "stateful drawable" as background, so that the background image (a 9-patch) changes if you press the Row in the ListView. When pressing the Row, the background image changes to a Red-ish thing.
The problem is that when the background changes from the default greyish, all the Views in the CustomView (ImageView and TextViews) still have their greyish background and thus creates very ugly greay boxes on top of the now redish background.
What is the best way to solve that problem? I hoped that such things were handled automatically (as it is done in for example .NET), but I was wrong it seems.
View 1 Replies
View Related
Feb 26, 2010
I'm very new (second day!) to android and working my way through the dev guide. There, it says that you can reference attributes inside the current theme from your XML by using the form?.If I try to build this, I just get "No resource found that matches the given name (at 'textColor' with value '?android:textDisabledColor')
Given that this seems pretty basic stuff, and yet I can't find any references to similar problems elsewhere, I must be missing something obvious or misunderstanding something simple. Can anyone tell me what it is?
View 1 Replies
View Related
Mar 4, 2009
Is there a certain way for me to know when a PreferenceScreen is closed?
View 12 Replies
View Related
Jul 27, 2010
Is it possible to set a background image on a PreferenceScreen? I have tried the tag android: background= "@ drawable/some_background" which can be set in for example a LinearLayout XML, but it doesn't work in the PreferenceScreen.
View 4 Replies
View Related
Dec 29, 2009
I want my preference menu to have something to change the duration of a vibration.There is not an slider tag for prefs.xml, so which is the best way to do this?
View 1 Replies
View Related
Jan 29, 2010
My application has a setting menu which is actually a PreferenceActivity.When it's created, if a boolean value is not set I want to go to the DialogPreference which sets that.How should I do this? It's ok to add that DialogPreference to the manifest?
View 2 Replies
View Related
Apr 23, 2010
Is there any way to add a button to the bottom of preferences screen and make them work correct when scrolling?
View 4 Replies
View Related
Dec 8, 2009
I am currently trying to implement a PreferenceActivity for my application that uses custom default values for its preferences instead of the defaults declared in the corresponding preference XML as the defaults are supposed to change dynamically based on certain conditions.However, when I modify the defaults via the Android API after loading the preferences through addPreferencesFromResource(R.xml.preferences); it already seems to be too late and the individual defaults set via Preference.setDefaultValue do not seem to be taken into consideration when rendering the UI.As I would like to avoid re-inventing the wheel I hope there is some possibility to achieve this using the standard Android preference API. Is there any way to trigger a re-evaluation of the values (and default values) associated with a PreferenceScreen hierarchy? I did not yet try whether creating the PreferenceScreen via APIs instead of loading from XML would help, so that could be an option.
View 3 Replies
View Related
Jul 28, 2010
I would like to have a Preferences activity that has icons like the system settings has had since Eclair. It uses a special Preference called IconPreferenceScreen.I can copy that into my project without problem, but I'd like the behavior of the PreferenceScreen instead of just the Preference Class. I could like to click on it to show its children Preferences. I thought it would be a easy to change to make IconPreferenceScreen extend PreferenceScreen instead of Preference, but PreferenceScreen is Final.Why on earth would google make PreferenceScreen a final class? Is there anyway to achieve what I would like to do, short of dividing up my Preference into several other Preferences that all receive intents (That's how the system settings works.)
View 3 Replies
View Related
Jul 2, 2010
My PreferenceActivity contains a nested PreferenceScreen in another PreferenceScreen and I'm applying a theme to my PrefenceActivity that changes the background color. However when I open the nested PreferenceScreen I get a black background and I cannot see the options.This happens with android 2.1 , but it does not happen with android 1.6.Any ideas on how this can be corrected?
View 1 Replies
View Related
Nov 10, 2010
My Google-Fu is failing this Android newbie today.Does anybody know of a good example showing how to launch an intent from a PreferenceScreen? I want to show a custom LinearLayout that allows me to set some semi-complex preferences.
View 2 Replies
View Related