Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open more actions menu

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.