Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 166

krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
06/09/14 04:11 PM (9 years ago)

Android guide - HOW TO achieve smart looking gradient buttons in your app

To celebrate the release of my second app, I decided to write a HOW TO guide for Android developers looking to smarten up their boring buttons by using gradient buttons. The HOW TO guide: https://www.dropbox.com/s/hnotlw0rlgfrutg/Android%20HOW%20TO%20-%20Gradient%20Buttons.pdf My new app is a Football World Cup Quiz https://play.google.com/store/apps/details?id=com.worldcupfootballquiz - A bit late in the day to be a chart topper, but I just had to do it. Roll on Thursday.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/09/14 06:38 PM (9 years ago)
Sweet! Cheers! -- Smug
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/09/14 11:57 PM (9 years ago)
That looks great. Thanks for the share :)
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
06/10/14 01:26 AM (9 years ago)
Will this be available for iOS too?
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
06/10/14 04:48 AM (9 years ago)
Unfortunately I have no iOS devices.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
06/25/14 07:50 PM (9 years ago)
thanks krompa! you should try to offer to put this on the how to section.I used this for one of my plugins because it looked lame.the alcalevent plugin. I had to do it programatically to get it to work with the cp. I posted this forum posts link so they can refer to the pdf for more ideas. Heres a way to do it with code for a button. addEvent = (Button) thisScreensView.findViewById(R.id.button1); GradientDrawable gd = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {getColorFromHexString("#707070"),getColorFromHexString("#FFFFFF")}); addEvent.setBackgroundDrawable(gd);
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.