Skip to content

An iOS like Button view. When press, the button will become gray. Less code, easy to use.

Notifications You must be signed in to change notification settings

Maxwin-z/XButton-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:
    An iOS like button. When pressed, the button will become gray.

Purpose:
    When add a Button, we need write a selector for it to set
    diffenent background for each status (pressed, focused,
            normal...). 
    But most time, we only need a button with normal and pressed
    status, write a selector is too heavy. So XButton comes, you
    only need set the normal status's background, when pressed it
    will become gray to show users that "you pressed me".

How to use:
    Just replace the widget Button by me.maxwin.view.XButton
    When you need to change the background, text, call method
    reset() to clean the cached highlight bitmap please.

About

An iOS like Button view. When press, the button will become gray. Less code, easy to use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages