58

GitHub - lqfGaara/Android_Universal_Widgets: 用于购物车添加或者减少按钮、点击弹...

 5 years ago
source link: https://github.com/lqfGaara/Android_Universal_Widgets
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

用于购物车添加或者减少按钮

使用方式

step1

allprojects {
		repositories {
			...
			maven { url 'https://www.jitpack.io' }
		}
	}
dependencies {
          implementation 'com.github.lqfGaara:MySDk:v1.2'
  }

step2

<lqf.com.newbutton.AmountView
     android:id="@+id/amountView"
     android:layout_centerInParent="true"
     android:layout_width="wrap_content"
     app:etTextColor="@color/colorPrimary"
     app:btnTextSize="20sp"
     app:btnWidth="40dp"
     app:tvWidth="60dp"
     android:layout_height="50dp"/>
名称 作用 btnTextSize 按钮的大小 etTextColor 中间文字的颜色 btnWidth 每一个按钮的宽度 tvWidth 中间文字的宽度
<lqf.com.newbutton.PullDownSelectionButton
       android:layout_marginTop="20dp"
       android:layout_below="@id/amountView"
       android:id="@+id/pull_bt"
       android:layout_centerInParent="true"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       app:background="@drawable/bt_background"
       app:buttonHeight="50dp"
       app:buttonWidth="80dp"
       app:text="123"
       app:buttonTextColor="#666666"
       app:textSize="20sp" />
名称 作用 buttonHeight 按钮的高度 buttonWidth 按钮的宽度 buttonTextColor 文字颜色 textSize 中间文字的大小 text 需要默认显示的文字 background 按钮的背景

演示效果图


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK