As it turns out, there seems to be a bug in the system. If you set the
background of a list or a grid (even if it is a solid color) then that
disappears when you touch around it. This is inspite of disabling
cacheColorHint. If you really want to set the background of a list
make the list/grid a
I figured it out!
First create a file named translucent_background.xml in res/drawable:
?xml version=1.0 encoding=utf-8?
shape xmlns:android=http://schemas.android.com/apk/res/android;
solid android:color=#/
padding android:left=1dp android:top=1dp android:right=1dp
I had a copy/paste error.
Change: item name=android:background@drawable/translucent_box/
item
To: item name=android:background@drawable/
translucent_background/item
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
That works like a charm, except
Doing it that way causes the application to briefly display the title
bar before being removed(at least it is for me, anyway). In my
opinion it looks very unprofessional. If I set the needed values in
the xml file via the windowNoTitle method then this
I think that the easiest way to solve this problem is to set the theme
in your manifest file to Theme.Dialog and then simply say
requestWindowFeature ( Window.FEATURE_NO_TITLE );
custom = new Custom(getApplicationContext ());
setContentView ( custom );
Works like a charm! :)
On 22 avg., 07:37,
BTW: My dialogs were dying because I was opening them outside the
onCreateDialog method. Once I moved them in there, everything worked
great. Ref: http://developer.android.com/guide/topics/ui/dialogs.html
On Aug 13, 10:41 am, CraigsRace craig...@gmail.com wrote:
Well, I did it this way.
Well, I did it this way. Create your dialog that extends Dialog. In
the constructor call:
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getContext().setTheme(R.style.MyCustomTheme);
setContentView(R.layout.your_layout);
Put all the initialisation of all your stuff in onCreate.
Then to
I kept running into this problem, and I think I have found the cause.
Specifying an activity is a dialog in the manifest, for me, kept
causing the background screen to be lost (not all the time - some
dialogs would work ok). However, if I made my dialogs via code, Ie:
sub-classed Dialog, and in
Hi!
I am facing a similar problem. All I want to do is remove the title
from an Activity that I am trying to show as a Dialog. Could you
please post some more details on how you managed to solve the problem?
I am using the following code to modify the Dialog theme:
?xml version=1.0
The parent window had a 120Kb jpeg picture on it. I used more
compression on the jpeg and got it down to 32Kb, and bingo, the parent
window stopped disappearing! Yay me!
On Aug 6, 10:39 am, CraigsRace craig...@gmail.com wrote:
Hi,
I wanted to change the frame around my Dialog. So I set up
10 matches
Mail list logo