开发者

Android: Standard 'Next' Button and Background

How do i g开发者_JAVA技巧et the button styles of the standard next/previous buttons and the gradient backgrounds like in the image below

Android: Standard 'Next' Button and Background


gradient backgrounds like in the image below

Hi, for gradient backgrounds you can apply below Background Drawable code.

Change color codes according to your needs !

Create gradientbg.xml and paste code given below,

<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<gradient
    android:startColor="#817f81"
    android:endColor="#ccc9cc"
    android:angle="90" />       
</shape>

this will make gradient background that you need !

Thanks.


Got it.. extracted both from the AccountsAndSyncSettings.apk :) Its part of the Android system, so i guess there shouldn't be any copyright issues right?

You can add the image to the button using android:drawableRight attribute of <Button>

Android: Standard 'Next' Button and Background

Android: Standard 'Next' Button and Background

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜