A control that sounds like a vibrato APP to shoot button effects

Source: Internet
Author: User

Touchbutton

A control that sounds like a vibrato APP to shoot button effects

Preview

Usage
<Net.angrycode.library.TouchButton        android:id= "@+id/touch_btn"        android:layout_width = "85DP"        android:layout_height= "85DP"        android:layout_centerinparent= "true"         app:tb_anim_padding= "14DP"        app:tb_color= "@color/coloraccent"        app:tb_text = "Hold"/>

Custom properties
<declare-styleable name= "Touchbutton" ><attr name= "Tb_text" format= "string|reference"/><attr name= " Tb_text_color "format=" color|reference "/><attr name=" Tb_color "format=" color|reference "/><attr name=" Tb_anim_padding "format=" Dimension|reference "/></declare-styleable>

  

Property Description
Properties Description Default Value
Tbanimpadding Animation margins 10dp
Tb_color Button background #FF4081
Tb_text Button text Hold
Tbtextcolor Button text color #ffffffff
Public number

Android Pits Guide (Angrycode)

Follow us to get more

A control that sounds like a vibrato APP to shoot button effects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.