Sharable Custom UI components

by SAM » Wed, 11 Aug 2010 16:04:55 GMT

Sponsored Links
 Hi All,
I want to develop and distribute some custom UI components for
apps. This custom component can do some network communicatioon too
with my server.

So by this I want to hide the communication protocol from my
users, and will show the content as provided by my control eg sponsor
ads. This concept is same as Apple's iAD.

1. I want to hide my custom component code from its users so that
just need to include it in their antivity rest its upto me.

2. I have not implemented but sure that a UI component can do network



Sharable Custom UI components

by Joseph Earl » Thu, 12 Aug 2010 05:26:33 GMT

 > 1. I want to hide my custom component code from its users so that

You can create a custom View. Then the developer can just include the
needed class(es) (or library) and create instances of your view either
from within Java or an XML layout file.

E.g. if you created a new custom View called MyCustomView in the
package com.example.view and the developer includes your class in
their project then they would just have to enter something like the
following in their XML layout file:


and they'd have an instance of your widget in their app without ever
having to look at your code.

Android does not currently have compiled components/widgets to my
knowledge, so as far as I am aware you cannot hide your code from them
- there will be no need for them to look at it or understand it, but
if they wish to they can.


Sponsored Links

Other Threads

1. ActionBar.setCustomView doesn't seem to work

I'm attempting to use the 'setCustomView' method of the ActionBar, but
am unable to load my (very basic) layout. I took a look at the
Honeycomb-Gallery sample, which also references
ActionBar.setCustomView. After removing the code which adds the tabs
to the ActionBar and failing to see the "Hello Action Bar" text from
that layout file, I'm unconvinced the sample is correct. Is there
anything I might be missing here?


2. ANN: Mock Objects on Android with Borachio

One of my biggest frustrations with writing code for Android has been
the fact that none of the current Java mocking frameworks work on
Android Dalvik VM. I recently released Borachio a native Scala
mocking framework which does work on Android.

Because Borachio is written in Scala, youl need to write your tests
in Scala. But it can be used to test code written in Java.

There's a description of how to use Borachio on Android on my blog:

I'd be very interested in any feedback!


Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
AIM: paulrabutcher
Skype: paulrabutcher


3. SQLite "attach database" not working in Honeycomb

4. mediaMetadataRetreviever.GetFrameAtTime

5. "Delete browserplugin sample. do not merge"

6. Update contact is not working using lookupUri

7. Android-voice chat