MagicButton

Android field validation lib

Лицензия

Лицензия

Группа

Группа

com.github.bloder
Идентификатор

Идентификатор

magic
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

MagicButton
Android field validation lib
Ссылка на сайт

Ссылка на сайт

https://github.com/daniel-martins-IR/MagicButton
Система контроля версий

Система контроля версий

https://github.com/daniel-martins-IR/MagicButton

Скачать magic

Имя Файла Размер
magic-1.0.pom
magic-1.0.aar 19 KB
magic-1.0-sources.jar 3 KB
magic-1.0-javadoc.jar 52 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.bloder/magic/ -->
<dependency>
    <groupId>com.github.bloder</groupId>
    <artifactId>magic</artifactId>
    <version>1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.bloder/magic/
implementation 'com.github.bloder:magic:1.0'
// https://jarcasting.com/artifacts/com.github.bloder/magic/
implementation ("com.github.bloder:magic:1.0")
'com.github.bloder:magic:aar:1.0'
<dependency org="com.github.bloder" name="magic" rev="1.0">
  <artifact name="magic" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.bloder', module='magic', version='1.0')
)
libraryDependencies += "com.github.bloder" % "magic" % "1.0"
[com.github.bloder/magic "1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.android.support » appcompat-v7 jar 23.1.1

Модули Проекта

Данный проект не имеет модулей.

Android Arsenal

Magic Button

alt tag

What is Magic Button?

It's a new button in android that hypnotizes the user and make him give you a lot of money!!!
Ok, just kidding, this is not so magic yet... but it's a cute button.


alt tag

Ok it's cute, But how can I use

You just need to add this in your layout.

<br.com.bloder.magic.view.MagicButton
        android:id="@+id/magic_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:magic_button_size="50dp"
        app:button_icon="@drawable/your_icon"
        app:button_icon_width="25dp"
        app:button_icon_height="25dp"
        app:hide_text="Hi Mom!"
        app:hide_text_size="15dp"
        app:hide_text_color="@android:color/black"
        app:icon_button_color="button_icon_color"
        app:expandable_area_color="that_expandable_button_part_color"/>

How about click event?

In magic button, the click event will work only in second click and you can set this event with:

magicButton.setMagicButtonClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        yourAction();
      }
});

Import

Gradle

dependencies {
    compile 'com.github.bloder:magic:1.1'
}

Maven

<dependency>
  <groupId>com.github.bloder</groupId>
  <artifactId>magic</artifactId>
  <version>1.1</version>
  <type>pom</type>
</dependency>

Ivy

<dependency org='com.github.bloder' name='magic' rev='1.1'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>

License

The MIT License (MIT)

Copyright (c) 2016 Bloder

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Версии библиотеки

Версия
1.0