Change button style

by Abhi » Tue, 15 Dec 2009 23:22:25 GMT

Sponsored Links

I want to put a triangular shaped button in my app. I have the button
image (.png) but don't know how to use this as my button. I don't want
to use an ImageButton as I don't want to have a rectangular box behind
this image.

Can anyone help?




Change button style

by TreKing » Tue, 15 Dec 2009 23:40:31 GMT

 Then just use an ImageView.

TreKing - Chicago transit tracking app for Android-powered devices 


Sponsored Links

Other Threads

1. Monkey Testing and automatically generating the events...

I *finally* got monkey testing to work from a script.

my test.txt file looks like this --

---- cut here ----
start data >>
---- cut here ----

and my

monkey command looks like this:

monkey -v -v -v -f /sdcard/test.txt 1


When I did that, it worked!

Now those commands DispatchPointer and DispatchKey are pretty gnarly
in terms of the number of arguments.

I see on;a=blob;f=cmds/monkey/example_script.txt;h=5c1c61de2b5bd5fb109d9f2807d12da4ee36e825;hb=HEAD
there are simple commands like

# Touch the android
touch down 160 200
touch up 160 200
sleep 1000

Which seem a lot easier and friendlier to me -- except that they don't
work (at least on my Nexus One).

If i have to use the more complicated commands (the ones with a
zillion parameters), is there a way to automatically generate these
based on actual user events?  I would love it if there was some kind
of record function or something that could translate actual human UI
events into events that could be fed into the script.

Any help here?



2. Cannot stop soundpool loop even after exiting app

I have a timer thread setup to play a loop using soundpool, but for
some reason  I cannot get  _soundPool.stop(_playbackTimer); to stop
the loop. even if I exit the application the loop keeps running. I
have to physically power off the phone to get it to stop. am I missing
something here? Does anyone have any experience with this? I have
searched with no resolution. below is a snippet.

if(timeLeft>0 && timeLeft<20 && ticking == false){
      , 0.3f, 0.3f, 0, -1, 1);

        if(timeLeft==0 || timeLeft>20){


3. Kernel sockets

4. OOT: Paging pak Dolly

5. mau tanya ttg Cyanogen Mod

6. getting control value from within a dialog

7. Using ListView in AlertDialog