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
android
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
component
users, and will show the content as provided by my control eg sponsor
ads. This concept is same as Apple's iAD.


Issue:
1. I want to hide my custom component code from its users so that
they
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
communication.


regards
sam

--



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:

<com.example.view.MyCustomView
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  />

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. AccountManager and Google App Engine

I am also interested in this.  If it is indeed possible to access the
authentication token for the Google accounts associated with the phone
itself, and to subsequently pass those to GAE so that backend
functionality can proceed to use the various GAE and other Google
services without requiring authentication, it seems like it's going to
be a significant draw to GAE for Android devs.




-- 

2. ScrollView scroll timeout ?

Hi,

Is there no way to change the timeout to scroll in ScrollView? In the
source, it's set to:

    static final int ANIMATED_SCROLL_GAP = 250;

so any drags will be blocked for 250ms. This has the appearance of the
ScrollView being stuck for a bit before it moves. This makes small
scroll gestures difficult to work with. There's no way around this?

Thanks

-- 

3. Android Eclair -- hangs after gralloc/mapFrameBufferLocked

4. I Didn't come here to cause no trouble, I just came to do the Android Market Shuffle!

5. RESET SQLite AUTOINCREMENT

6. Service runnning while PowerManager decides to sleep ?

7. Donut to Eclair