I want to customize the notification area, add an icon to the right and some buttons. I have read the tutorial here:
The problem is that I need to include this code in a library, an SDK, which I want to distribute to improve information. (See)
Is it possible to write XML all UI in the code without describing the remote view? This is because resources can not be included in SDK, so I will need to add an XM to my resources from the users of my SDK and referencing all the resources by name ... which I would like to save I already Only the other parts of the SDK user interface are written in the Java code, but I'm having trouble doing this for the Remove View.
A remote weave is usually created like this:
Remote power content view = new remote power (getPackageName (), R. layout, custom_notification_layout); Can I create a remote view from a layout created with Java code? Any other solution?
I thought that you can do this with your parcel, but on the code, Parcel stores only package names and layouts (resource) IDs, as used by the main manufacturer.
Public Zero Editor (parcel lost, int flag) {dest.writeString (mPackage); Dest.writeInt (mLayoutId); integer number; If (mActions! = Null) {count = mActions.size (); } And {count = 0; } Dest.writeInt (count); For (int i = 0; i I can not see a way to do this and it seems that this is not possible.
Comments
Post a Comment