How to create a "Settings-style" kind of button/layout?

by roreb1313 » Sat, 07 Mar 2009 10:59:59 GMT

Sponsored Links
 Hi I just noticed a type f layout and buttons that are used on the
"Settings" app of the G1 and on some apps like ShopSavvy where you
have rows with gradient line breaks and each row is clickable. Does
anybody know how to do that? Is it a linear layout or tablelayout? Is
it a particular widget?


Other Threads

1. Problem with SDK 1.5

I recently installed SDK 1.5 and updated the Eclipse adt to 0.9. I
tried using the accelerometer sensor but kept getting an error when
registerring the listener. My code is as follows:

class myActivity extends Activity{

SensorManager sm  = (SensorManager)getSystemService
sm.registerListener(new MyListener(), Sensor.TYPE_ACCELEROMETER,

class MyListener implements SensorEventListener{
// implementation is irrelevant

I keep getting the error that I should change MyListener to type
SensorListener, which has  been replaced by SensorEventListener in the
new SDK.

I chose to compile my code against Android 1.5. It seems that I have
successfully set up the new SDK as it can find the new interface
SensorEventListener. Why does registerListener require an interface
that has been deprecated?

2. Screen/Pattern Lock application invocation


We are writing our own application to substitute G1 standard screen
lock (where you have to draw a pattern between the dots on the
screen).  Unfortunately,  I have been unable to find documents on how
to hook our application in, so that it would be called instead of the
standard G1 screen lock.

Is there a broadcast sent when the standard lock is activated?
Any information would be much appreciated.


3. regarding the floating point on G1 Google phone

4. How to send a MessageBox when select a Menu item?

5. Android and the Generic Bootstrapping Architecture authentification system

6. SensorListener no longer useable, how does SensorEventListener work?

7. get listview object from xml