android 水平 numberpicker,android - HorizontalPicker as horizontal Numberpicker - Stack Overflow

博主在寻找水平数字选择器解决方案时遇到问题,尝试导入com.wefika:horizontal-picker:1.1.1库但未成功。他们寻求最简单的导入方法,如通过APK,但不清楚具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I need a horizontal Numberpicker. I found some a solution here:

But I dont know how to import it in my Project.

I've tried to add:

compile 'com.wefika:horizontal-picker:1.1.1'

then:

xmlns:picker="http://schemas.android.com/apk/res/com.wefika.horizontalpicker"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:textColor="@color/textColor"

android:textSize="@dimen/textSize"

android:ellipsize="none | start | middle | end | marquee"

android:marqueeRepeatLimit="-1"

picker:values="@array/values"

picker:dividerSize="@dimen/itemPadding"

picker:sideItems="@integer/sideItems" />

But it didn't work...

I think import the apk is the easiest way to do but I dont know how to.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值