Customization of Dialogs

by swapnil » Tue, 04 Aug 2009 19:27:10 GMT


Sponsored Links
 Hi,
Can we create any dialog without having Title (like the lock screen
when emulator boots up).

Can anyone tell me the way to do it.


Thanks in advance.

Regards;

Swapnil
--~--~---------~--~----~------------~-------~--~----~



Customization of Dialogs

by Atif Gulzar » Tue, 04 Aug 2009 19:38:16 GMT


 simple do not call setTitle();


--
Best Regards,
Atif Gulzar

I  Unicode, zln 







--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Customization of Dialogs

by swapnil » Tue, 04 Aug 2009 19:43:26 GMT


 Thank you for your help,

But if you don't call setTitle () it will keep that space blank.

I want there should not be any space left. From top of Dialog View I
want to show the Buttons.

Can you please help me in that.


Regards;
Swapnil


--~--~---------~--~----~------------~-------~--~----~



Customization of Dialogs

by Balwinder Kaur (T-Mobile) » Wed, 05 Aug 2009 00:41:39 GMT


 Did you try ?

dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

Balwinder Kaur
Open Source Development Center
T  Mobile stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Graphics shape intersected by rectangle. Is there an easy way to do it in android?

Hello,

There is some task. I need to recognize when the shape (or path or
anything else android specific) is intersected by the rectangle.

The standart java awt library contains such method that simply can be
called from Shape class, like

boolean isIntersected = shape.intersects(rect);

But I could not find a way how to do this in android. Just found the
method "contains(x,y)" that allows to detect whether the point is in
the shape or not. Believe this method can be useful, but believe there
is much simpler solution.

Any help would be appreciated!

-- 

2. Reflection And Library Diferrent Classes Definition

Hello everyone,

I'm having a trouble with definition of lybrary. I don't really know if it
is a concept problem, or a implementation problem.

Let me explain:

I have three projects in my eclipse workspace.

1 -> It's a library, with one interface. I marked this project as a library
in eclipse project properties (Properties->Android->Library->Is Library).

   - There's *interface IPlugin* with *execute() *method.

2 -> It's a plugin implementation (PI-Project). This project references to
this library project using eclipse project properties (add a lybrary in
Properties->Android->Library->Add).

   - There's a class* IPluginImplementation implements IPlugin* and have to
   implement execute() method, of course.
   - This definition it's just fine.
   - I execute this project, and there's no problem with that.


3 -> It's a plugin management implementation, that doesn't know how many
plugin implementations there are, but knows what it is the project that have
every definitions of my plugins. This project references to this library
project using eclipse project properties (add a lybrary in
Properties->Android->Library->Add).

So what I do is:

   - Using PathClassLoader, I'm able to test if my plugin implementation
   exists in PI-Project. (The following code executes just fine)

*classLoader = new
PathClassLoader(apkFiles,ClassLoader.getSystemClassLoader());*
*Class<IPlugin> clazz = (Class<IPlugin>)Class.forName(classPath, false,
classLoader);*

when I call the "execute()" method usinf reflection, there's no problem.

*Method mthd=clazz.getMethod("execute",params);
mthd.invoke(cons.newInstance(), (Object[])null);*

But, when  I try to cast my *IPluginImplementation instance* to my
*IPlugin*referenced interface, the log shows
*java.lang.ClassCastException.*

This doesn't work:   *(clazz.newInstance()).execute();*
And this doesn't work:   *IPlugin obj = clazz.newInstance();*

-----------------------------------------------------------------------------------------------------------
So, finally, my question is: why I'm able to load a class that is defined as
IPlugin*
Class<IPlugin> clazz = (Class<IPlugin>)Class.forName(classPath, false,
classLoader);*

but I can't use IPlugin its execute() method?
*(clazz.newInstance()).execute();*

I notices that my interfaces definitions (the one from referecend library
and the other one from clazz object) has differents ID. But why does this
happen? Is not the same reference interface from the library?

I'm testing my applications on my own phone, android 2.1 installed.


Thanks.

-- 

3. other possible error cause

4. To many Images in Horizontalscrollview?

5. Detecting 鈥淯nable to transfer call鈥?dialog.

6. A question about "Failed to fetch URL https://dl-ssl.google.com/android/repository/re..."

7. problem while capturing the image from the android emulator