Theme.Dialog - Remove Title Area?

by Peake » Thu, 07 Oct 2010 06:42:00 GMT


Sponsored Links
 I have an activity that is using android:theme="@android:style/
Theme.Dialog", and I want to get rid of the black line (looks to be
about 20dp height) where the Dialog title would normally go. I just
want the content area of the Dialog.

Any ideas?

--



Theme.Dialog - Remove Title Area?

by Kumar Bibek » Thu, 07 Oct 2010 13:52:55 GMT


 Remove the title. As you would have done on an activity.




>


Sponsored Links


Theme.Dialog - Remove Title Area?

by Miguel Morales » Thu, 07 Oct 2010 14:18:54 GMT


 Use: requestWindowFeature(Window.FEATURE_NO_TITLE);




>>



Other Threads

1. how to listen callee hangup call event?

Hi:
Now ,I can use PhoneStateListener to listen some incoming call state
event.
here is the code:

        public void onCallStateChanged(int state, String incomingNumber) {
                Log.v(TAG, "onCallStateChanged(), Incoming Number: " +
incomingNumber);

                super.onCallStateChanged(state, incomingNumber);

                switch (state) {
// user hangup call
                case TelephonyManager.CALL_STATE_IDLE:
                        Log.i(TAG, "CALL_STATE_IDLE");
                        break;
                case TelephonyManager.CALL_STATE_OFFHOOK:
// user pickup call
                        Log.i(TAG, "CALL_STATE_OFFHOOK");
                        break;
                case TelephonyManager.CALL_STATE_RINGING:
// imcoming call
                        Log.i(TAG, "CALL_STATE_RINGING");
                        break;
                default:
                        Log.w(TAG, "unknown call state: " + state);
                }
        }

As you know ,TelephonyManager.CALL_STATE_IDLE can deal with hangup
event, but I do not know who hangs up the call, the callee? the
caller? ,so,can anyone give me some message about this?
thanks in advance.

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

2. My application doesn't work...

I installed latest version of android and migrated my application. But
my application doesn't work. After installing it, I fixed the program
because there were some errors due to API changes. Then, I tried to
run it, but an error was appeared. Application was not started as a
matter of course. The error is below.

[2008-10-23 20:57:45 - Calorie2] ------------------------------
[2008-10-23 20:57:45 - Calorie2] Android Launch!
[2008-10-23 20:57:45 - Calorie2] adb is running normally.
[2008-10-23 20:57:45 - Calorie2] Launching: com.gclue.android.Calorie
[2008-10-23 20:57:45 - Calorie2] Automatic Target Mode: launching new
emulator.
[2008-10-23 20:57:45 - Calorie2] Launching a new emulator.
[2008-10-23 20:57:47 - Calorie2] New emulator found: emulator-5554
[2008-10-23 20:57:47 - Calorie2] Waiting for HOME
('android.process.acore') to be launched...
[2008-10-23 20:57:48 - Emulator] 2008-10-23 20:57:48.113
emulator[860:10b] Warning once: This application, or a library it
uses, is using NSQuickDrawView, which has been deprecated. Apps should
cease use of QuickDraw and move to Quartz.
[2008-10-23 20:57:50 - Emulator] emulator: ### WARNING: /etc/localtime
does not point to zoneinfo-compatible timezone name
[2008-10-23 20:57:50 - Emulator]
[2008-10-23 20:58:46 - Calorie2] HOME is up on device 'emulator-5554'
[2008-10-23 20:58:46 - Calorie2] Uploading <apk name>.apk onto device
'emulator-5554'
[2008-10-23 20:58:46 - Calorie2] Installing <apk name>.apk...
[2008-10-23 20:58:52 - Calorie2] Success!
[2008-10-23 20:58:52 - Calorie2] Starting activity <activity name> on
device
[2008-10-23 20:58:55 - Calorie2] ActivityManager: Starting: Intent
{ comp={package name} }
[2008-10-23 20:58:55 - Calorie2] ActivityManager: [1]
Killed                  am start -n com....

Would someone have ideas to fix it up?

Thanks,

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

3. How to do JUnit testing for database access?

4. Need Help..... To install android package (.apk) on HTC Touch Mobile

5. Got problem while building the core of Android source

6. About Email

7. Running Browser from Shell