Giter Club home page Giter Club logo

floatingtextbutton's Introduction

FloatingTextButton

FloatingTextButton Android için geliştirdiğim zengin bir floating action button yapısıdır.

Rewind

FloatingTextButton...

  • Animasyon özelliği
    • basit bir şekilde animasyon ile verdiğiniz yazıyı zıplatabilirsiniz
  • Arkaplan ve ripple renkleri
    • özünde olduğu gibi yine app taglarını xml dosyanızda kullanarak ripple ve background color belirtebilirsiniz
  • Resim değiştirme
    • özünde olduğu gibi yine app taglarını kullanarak xml dosyanızda istediğiniz resim dosyasını src olarak belirtebilirsiniz
  • Text'e click event ayarlama
    • eğer isterseniz yine app taglarını kullanarak xml dosyanızda verdiğiniz text'e click listener belirtebilirsiniz

Birkaç adımda FloatingTextButton kullanımı:

Setup

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
dependencies {
    implementation 'com.github.memishood:FloatingTextButton:2.0'
}

XML

<tr.com.emrememis.library.FloatingTextButton
    android:id="@+id/floatingTextButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:label="Fotoğraf Ekle"
    app:src="@drawable/ic_camera_enhance_white_24dp"
    app:textClickable="true"
    app:animation="true"
    app:btnColor="#9C27B0"
    app:btnRippleColor="#FFFFFF" />

Params

Value Layout ID
app:src @drawable/your_image
app:label @string/your_text
app:animation booelan
app:btnColor @color/your_color
app:rippleColor @color/your_color
app:textClickable boolean

MainActivity'de yapmanız gerekenler

Java

    FloatingTextButton floatingTextButton = findViewById(R.id.floatingTextButton);
    floatingTextButton.setCallback(new FloatingTextButton.FloatingTextButtonClickListener() {
            @Override
            public void clicked(@Nullable View view) {
                Log.d(TAG,"clicked");
            }
        }); 

floatingtextbutton's People

Contributors

memishood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.