Creating a Custom Expanded View in Code

by roberto » Wed, 30 Mar 2011 02:08:32 GMT


Sponsored Links
 I'm coding an SDK and I want to use a custom expanded view for the
notification area.
Is it possible to do that in Java code, without any reference to any
Resource? (This is because resources cannot be included in an SDK)

A RemoteView is usually created like this:

RemoteViews contentView = new RemoteViews(getPackageName(),
R.layout.custom_notification_layout);

Can I create a RemoteView from I layout that I create with Java code?
Any other solutions?

-- 



Other Threads

1. Mark/Highlight/Select Text in WebView

Hi,

By using built-in browser on Magic or Hero, there is an function in
menu called "copy text".
After clicking, we can touch&move to select a region.
In WebView, how can we enable this function?
Thanks!

Jet
--~--~---------~--~----~------------~-------~--~----~

2. Bluetooth and GPS switching from a widget

Thanks a lot Yusuf,
I would like to ask another question.
I am trying to switch ON/OFF the GPS and Bluetooth from a widget.
From

3. Adding contacts via Intent

4. clear activity stack and replace with a new activity

5. How to debug on ADP1 real device?

6. Best Game Implementation?

7. About "ERROR: unknown virtual device name: 'myavd'"