All Projects → duanhong169 → TextButton

duanhong169 / TextButton

Licence: Apache-2.0 License
⏹️ An easy to use `TextButton` when you need a TextView-like button, with handy touch feedback effects.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TextButton

liquid button
Liquify your buttons, web demo at website
Stars: ✭ 18 (-5.26%)
Mutual labels:  button, button-widget
Night-Mode-Button
Easy to use night mode button with cool animation
Stars: ✭ 74 (+289.47%)
Mutual labels:  button, button-widget
btns
A collection of buttons with cool hover effects
Stars: ✭ 78 (+310.53%)
Mutual labels:  button
react-native-progress-button
A react native button component that can show progress.
Stars: ✭ 17 (-10.53%)
Mutual labels:  button
RecyclerViewCardGallery
RecyclerView实现循环banner,替代ViewPager方案。能够快速滑动并最终定位到居中位置(相比于原库支持了循环滑动)
Stars: ✭ 610 (+3110.53%)
Mutual labels:  custom-view
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (+378.95%)
Mutual labels:  custom-view
PlaceholderTextView
A custom TextView which shows placeholder lines given a sample text when it has no text set
Stars: ✭ 24 (+26.32%)
Mutual labels:  custom-view
nl.fokkezb.button
Bootstrap Button widget for Appcelerator (Titanium)
Stars: ✭ 72 (+278.95%)
Mutual labels:  button-widget
RoundCornerProgress
No description or website provided.
Stars: ✭ 14 (-26.32%)
Mutual labels:  custom-view
mCustomView
总结了博主这么多年所写的自定义view,以及自定义view的教程
Stars: ✭ 17 (-10.53%)
Mutual labels:  custom-view
TDButton
TDButton 带有动画效果、支持各种对齐方式的按钮
Stars: ✭ 12 (-36.84%)
Mutual labels:  button
Ripple.js
Proper Material Design ripple effect for the web, that wouldn't interfere your elements' DOM.
Stars: ✭ 18 (-5.26%)
Mutual labels:  ripple-effect
netflix-list-exporter
💫‎‎‎‏‏‎ An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (+215.79%)
Mutual labels:  button
TezButton
TezButton is include Title/Backgound Color, border, corner radius options and Bottom/Left label, Include data button.
Stars: ✭ 20 (+5.26%)
Mutual labels:  button
react-touch-ripple
Create ripple effect from Material Design with React
Stars: ✭ 27 (+42.11%)
Mutual labels:  ripple-effect
awesome-web-styling
Awesome Web Styling with CSS Animation Effects ⭐️
Stars: ✭ 109 (+473.68%)
Mutual labels:  button
LoadingButtonLibrary
A loading button with animaton
Stars: ✭ 26 (+36.84%)
Mutual labels:  button
LoadersPack-Android
Android LoadersPack - a replacement of default android material progressbar with different loaders
Stars: ✭ 119 (+526.32%)
Mutual labels:  ripple-effect
RTIconButton
A Interface Builder configurable UIButton with a image icon
Stars: ✭ 40 (+110.53%)
Mutual labels:  button
ripple-effect
Get a beautiful Material Design ripple effect in pure JavaScript for your website in less than 1 minute.
Stars: ✭ 20 (+5.26%)
Mutual labels:  ripple-effect

Text Button gitHub release platform Android Arsenal license Build status

An easy to use TextButton when you need a TextView-like button, with handy touch feedback effects.

screen-record

Gradle

dependencies {
    implementation 'com.github.duanhong169:text-button:${latestVersion}'
    ...
}

Replace ${latestVersion} with the latest version code. See releases.

Usage

Use the built-in effects

Config TextButton in xml:

<top.defaults.view.TextButton
    android:id="@+id/button3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="animateTextColor"
    android:padding="4dp"
    android:textSize="16sp"
    app:defaultTextColor="@android:color/holo_blue_dark"
    app:pressedTextColor="@android:color/holo_orange_dark"
    app:disabledTextColor="@android:color/darker_gray"
    app:underline="true"
    app:effectDuration="200"
    app:textEffect="animateColor"
    app:backgroundEffect="ripple"/>

There are 4 text effects: default, animateColor, animateSize and animateColorAndSize and 3 background effects: colorState, ripple, animateColor for now.

See top_defaults_view_attrs.xml for all supported attributes.

Implement your own effect

button5.setEffect(new TextButtonEffect() {
    private TextButton textButton;

    @Override
    public void init(TextButton textButton) {
        this.textButton = textButton;
    }

    @Override
    public void actionDown() {
        textButton.setAlpha(0.5f);
    }

    @Override
    public void actionUp() {
        textButton.setAlpha(1);
    }
});

For more details, see the sample app.

License

See the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].