Android :: Sub Activity Doesn't Die - In Theme Dialog
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
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
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
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
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
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
May 21, 2009
I am trying to change my application theme from java code (For ex: press a button, and the whole application will apply a new Theme: new background, new text color). Please help me if you have any solution for my problem.
View 7 Replies
View Related
Jul 30, 2009
I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine.Someone with same problem?
View 5 Replies
View Related
Oct 7, 2010
I'm aware that the home key cannot be caught, and I'm worried that a long-press on the Search key is another "Android-OS protected" key press. Just for testing, I tried to catch all keys with this code within my Activity, but it does not stop the Google Voice Search dialog from being triggered
View 1 Replies
View Related
Apr 4, 2009
I have encountered a problem with focused text fields in a WebView not showing entered text values.As long as a WebView text field has focus it will not show text or even the blinking cursor.You can select and highlight the text or unfocus the field to see it, but when it gains focus it will not show the text as if the foreground color of the text is white.The simplest code to demonstrate this is below.With the setTheme using a Light background, try typing values into the Email text field to notice that the text is not visible when the field is focused.
View 4 Replies
View Related
Apr 8, 2010
I have a simple list view with some check boxes in an alert dialog. I need to option to add a select all/none but you can't bring up the menu in an alert dialog, and I want to do this function from a button. From what I've seen any kind of button (positive, neutral, and negative) all close the dialog regardless.
So, is this possible? If no, what alternatives do I have? My last mitigation is to simply create a new view and recreate everything. Is a new view the best solution?
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
Apr 11, 2010
I have a problem in the Preferences Activity, in the main preferences the theme shows ok, but if I get to a sub preference, the theme gets messy, it is not white as it should, it is all dark, and the font is black so you can't see much, and when I start clicking on any items they will get sometimes white as they should but revert to black soon after. This is only happens on 2.1, in both the real device and emulator. Tested on the emulator running 1.6 and it was working correctly.
View 2 Replies
View Related
Sep 7, 2010
I have two activities. A and B. A starts B. Both are running in the screen and both are visible. Say now B is visible.
On a special key press, I want to bring the A to the front and make it active. The problem I am facing is when the special key is pressed, another instance of A is launched and the new instance is brought to the front.
But I want the original A to come to the front. I want to make this change in the framework layer rather than application specific by using the singleInstance theme in the launchMode in AndroidManifest file.
Please help me in this regard as this is really urgent for me. Any inputs will be really valuable for me.
View 1 Replies
View Related
Aug 27, 2010
I've a listView Activity where user could open a dialog to display more information about a line of the list. On the Dialog user could modify a line. So my purpose is to refresh listView when User modify it by the Dialog. The problem is that I couldn't use myArrayAdapter.notifyDataSetChanges() so How I could do that ?
View 1 Replies
View Related
Sep 26, 2010
can i keep progress dialog anywhere in activity? if possible then how can i do it?
View 2 Replies
View Related
Dec 30, 2009
I have Activity named whereActity which is having child dialogs as well.
now i want to display this activity is as a dialog for another activity..
how can i do that?
View 3 Replies
View Related
Jun 22, 2010
I have a spinner selection box on my activity, but now I want to remove the spinner from the main view and make the selection available by an option from the menu button. How do I get the dialog the spinner shows if I click it without having the spinner? Currently I fill the spinner using a SimpleCursorAdapter like this:
Cursor c = db.fetchAllSets();
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this android.R.layout.simple_spinner_item, c, new String[] { DatabaseAdapter.SET_KEY_NAME }, new int[] { android.R.id.text1 });
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mSetsSpinner.setAdapter(adapter);
So now I'm planning to remove the spinner from my activity, add a new button to the menu and in the onOptionsItemSelected(...) show a dialog with the list of available selection - just the way it is right now after clicking the spinner object.
View 8 Replies
View Related
Feb 9, 2010
this button is shown on my start activity. After pressing it a new activity will be launched but this takes some time cause on initialization of that new activity some data is gathered from the Internet. This works half. The progress dialoge is shown but the progress wheel is not spinning.
Can somebody tell me why this happens?
Button b4 = (Button) findViewById(R.id.Button01);
b4.setOnClickListener(new View.OnClickListener() {
public void onClick (View view) {
final ProgressDialog pd = ProgressDialog.show(pak.this,
"", "Working..", true);......................
View 1 Replies
View Related
Mar 12, 2010
How to can call one activity from Dialog.
View 3 Replies
View Related
Sep 11, 2010
I need to start an activity when the user chooses an item in an alert dialog. How do I get the context to pass to the intent constructor in the following code...
CODE:..........
Is it the use of the inner class?
View 1 Replies
View Related
Sep 24, 2009
I want to display Dialog Box when the application is launched before loading and launching the activity.
or you can say I want to show the dialog on launcher after the launch of my application.
View 5 Replies
View Related
Nov 1, 2010
Is there a way to open a translucent or transparent activity so that you can still see the old activity behind it on the screen?
View 1 Replies
View Related