Git Product home page Git Product logo

gzu-liyujiang / androidpicker Goto Github PK

View Code? Open in Web Editor NEW
6.3K 145.0 1.5K 27.49 MB

安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器、图片选择器等……WheelPicker/DatePicker/TimePicker/OptionPicker/NumberPicker/LinkagePicker/AddressPicker/CarPlatePicker/CalendarPicker/ColorPicker/FilePicker/ImagePicker etc.

License: Other

Java 99.96% Batchfile 0.04%
wheelview picker datepicker address citypicker wheelpicker timepicker calendarpicker addresspicker optionpicker

androidpicker's Introduction

AndroidPicker

API 19+ Release APK

安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器等……

欢迎大伙儿在Issues提交你的意见或建议。欢迎 Fork & Pull requests 贡献您的代码,大家共同学习【AndroidPicker 交流群 604235437】。

接入指引

最新版本jitpack (具体历史版本号参见 更新日志

注意事项

依赖配置

在项目根目录下的build.gradle

如果你的项目 Gradle 配置是在 7.0 以下,需要在 build.gradle 文件中加入:

allprojects {
    repositories {
        // JitPack 远程仓库:https://jitpack.io
        maven { url 'https://jitpack.io' }
    }
}

如果你的 Gradle 配置是 7.0 及以上,则需要在 settings.gradle 文件中加入:

dependencyResolutionManagement {
    repositories {
        // JitPack 远程仓库:https://jitpack.io
        maven { url 'https://jitpack.io' }
    }
}

在项目模块下的build.gradle中(以下依赖项不必全部引入,请按需来)

所有选择器的基础窗体(用于自定义弹窗):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:Common:<version>'
}

滚轮选择器的滚轮控件(用于自定义滚轮选择器):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelView:<version>'
}

单项/数字、二三级联动、日期/时间等滚轮选择器:

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:<version>'
}

省市区地址选择器:

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:AddressPicker:<version>'
}

文件/目录选择器:

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:FilePicker:<version>'
}

颜色选择器:

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:ColorPicker:<version>'
}

日历日期选择器(README.md):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:CalendarPicker:<version>'
}

图片选择器(README.md):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:ImagePicker:<version>'
}

旧版本 AndroidX 稳定版本 (不推荐):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:Common:2.0.0'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:2.0.0'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:FilePicker:2.0.0'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:ColorPicker:2.0.0'
}

旧版本 Support 稳定版本 (不推荐):

dependencies {
    implementation 'com.github.gzu-liyujiang.AndroidPicker:Common:1.5.6.20181018'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:1.5.6.20181018'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:FilePicker:1.5.6.20181018'
    implementation 'com.github.gzu-liyujiang.AndroidPicker:ColorPicker:1.5.6.20181018'
}

API 说明

API 说明文档

混淆规则

项目库混淆无需额外配置。

用法示例

常见用法请参阅 demo高级用法请细读源码, 诸如可以重写同名的assets/china_address.json来自定义省市区数据, 重写同名的DialogSheetAnimation来自定义弹窗动画……。 代码是最好的老师,强烈建议拉取代码运行,尝试修改 demo 对比查看实际效果以便加深理解。

在 Java 中

List<GoodsCategoryBean> data = new ArrayList<>();
data.add(new GoodsCategoryBean(1, "食品生鲜"));
data.add(new GoodsCategoryBean(2, "家用电器"));
data.add(new GoodsCategoryBean(3, "家居生活"));
data.add(new GoodsCategoryBean(4, "医疗保健"));
data.add(new GoodsCategoryBean(5, "酒水饮料"));
data.add(new GoodsCategoryBean(6, "图书音像"));
OptionPicker picker = new OptionPicker(this);
picker.setTitle("货物分类");
picker.setBodyWidth(140);
picker.setData(data);
picker.setDefaultPosition(2);
picker.setOnOptionPickedListener(this);
//OptionWheelLayout wheelLayout = picker.getWheelLayout();
//wheelLayout.setIndicatorEnabled(false);
//wheelLayout.setTextColor(0xFFFF00FF);
//wheelLayout.setSelectedTextColor(0xFFFF0000);
//wheelLayout.setTextSize(15 * view.getResources().getDisplayMetrics().scaledDensity);
//wheelLayout.setSelectedTextBold(true);
//wheelLayout.setCurtainEnabled(true);
//wheelLayout.setCurtainColor(0xEEFF0000);
//wheelLayout.setCurtainCorner(CurtainCorner.ALL);
//wheelLayout.setCurtainRadius(5 * view.getResources().getDisplayMetrics().density);
//wheelLayout.setOnOptionSelectedListener(new OnOptionSelectedListener() {
//    @Override
//    public void onOptionSelected(int position, Object item) {
//        picker.getTitleView().setText(picker.getWheelView().formatItem(position));
//    }
//});
picker.show();
DatePicker picker = new DatePicker(this);
//picker.setBodyWidth(240);
//DateWheelLayout wheelLayout = picker.getWheelLayout();
//wheelLayout.setDateMode(DateMode.YEAR_MONTH_DAY);
//wheelLayout.setDateLabel("年", "月", "日");
//wheelLayout.setDateFormatter(new UnitDateFormatter());
//wheelLayout.setRange(DateEntity.target(2021, 1, 1), DateEntity.target(2050, 12, 31), DateEntity.today());
//wheelLayout.setCurtainEnabled(true);
//wheelLayout.setCurtainColor(0xFFCC0000);
//wheelLayout.setIndicatorEnabled(true);
//wheelLayout.setIndicatorColor(0xFFFF0000);
//wheelLayout.setIndicatorSize(view.getResources().getDisplayMetrics().density * 2);
//wheelLayout.setTextColor(0xCCCC0000);
//wheelLayout.setSelectedTextColor(0xFFFF0000);
//wheelLayout.getYearLabelView().setTextColor(0xFF999999);
//wheelLayout.getMonthLabelView().setTextColor(0xFF999999);
picker.getWheelLayout().setResetWhenLinkage(false);
picker.setOnDatePickedListener(this);
picker.show();
AddressPicker picker = new AddressPicker(this);
picker.setAddressMode(AddressMode.PROVINCE_CITY);
//picker.setAddressMode("china_address_guizhou_city.json", AddressMode.PROVINCE_CITY,
//        new AddressJsonParser.Builder()
//                .provinceCodeField("code")
//                .provinceNameField("name")
//                .provinceChildField("city")
//                .cityCodeField("code")
//                .cityNameField("name")
//                .cityChildField("area")
//                .countyCodeField("code")
//                .countyNameField("name")
//                .build());
//picker.setTitle("贵州省地址选择");
//picker.setDefaultValue("贵州省", "毕节市", "纳雍县");
picker.setOnAddressPickedListener(this);
//LinkageWheelLayout wheelLayout = picker.getWheelLayout();
//wheelLayout.setTextSize(15 * view.getResources().getDisplayMetrics().scaledDensity);
//wheelLayout.setSelectedTextBold(true);
//wheelLayout.setIndicatorEnabled(false);
//wheelLayout.setCurtainEnabled(true);
//wheelLayout.setCurtainColor(0xEE0081FF);
//wheelLayout.setCurtainRadius(5 * view.getResources().getDisplayMetrics().density);
//int padding = (int) (10 * view.getResources().getDisplayMetrics().density);
//wheelLayout.setPadding(padding, 0, padding, 0);
//wheelLayout.setOnLinkageSelectedListener(new OnLinkageSelectedListener() {
//    @Override
//    public void onLinkageSelected(Object first, Object second, Object third) {
//        picker.getTitleView().setText(String.format("%s%s%s",
//                picker.getProvinceWheelView().formatItem(first),
//                picker.getCityWheelView().formatItem(second),
//                picker.getCountyWheelView().formatItem(third)));
//    }
//});
//picker.getProvinceWheelView().setCurtainCorner(CurtainCorner.LEFT);
//picker.getCityWheelView().setCurtainCorner(CurtainCorner.RIGHT);
picker.show();

在 XML 中

<com.github.gzuliyujiang.wheelview.widget.WheelView
    android:id="@+id/wheel_view"
    android:layout_width="117dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    app:wheel_atmosphericEnabled="true"
    app:wheel_curvedEnabled="true"
    app:wheel_curvedIndicatorSpace="4dp"
    app:wheel_curvedMaxAngle="60"
    app:wheel_indicatorColor="#FF0081FF"
    app:wheel_itemSpace="50dp"
    app:wheel_itemTextColor="#FF474747"
    app:wheel_itemTextColorSelected="#FF0081FF"
    app:wheel_itemTextSize="20sp" />
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <com.github.gzuliyujiang.wheelpicker.widget.OptionWheelLayout
        android:id="@+id/wheel_option"
        android:layout_width="90dp"
        android:layout_height="150dp"
        android:layout_gravity="center_horizontal"
        app:wheel_itemTextAlign="center" />

    <com.github.gzuliyujiang.wheelpicker.widget.DateWheelLayout
        android:layout_width="120dp"
        android:layout_height="150dp"
        android:layout_gravity="center_horizontal"
        app:wheel_dateMode="month_day"
        app:wheel_dayLabel=""
        app:wheel_monthLabel="" />

    ...

</LinearLayout>

自定义样式(可选)

全局配置所有选择器样式及配色

//4.0.0版本开始内置支持四种弹窗样式(Default、One、Two、Three),效果可运行Demo查看
public class DemoApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        DialogConfig.setDialogStyle(DialogStyle.Default);
        DialogConfig.setDialogColor(new DialogColor()
                .cancelTextColor(0xFF999999)
                .okTextColor(0xFF0099CC));
    }

}

自定义 style

  • 调用setStyle(只作用于当前选择器,推荐)

app/.../res/values/styles.xml中参考WheelDefault写个style,然后设置。

picker.getWheelView().setStyle(R.style.WheelStyleDemo);
  • 重写WheelDefault覆盖 (所有选择器都会生效,不推荐)

app/.../res/values/styles.xml重写WheelDefault覆盖

<style name="WheelDefault">
    <item name="wheel_itemSpace">15dp</item>
    <item name="wheel_itemTextColor">@android:color/darker_gray</item>
    <item name="wheel_itemTextColorSelected">@android:color/holo_blue_dark</item>
    <item name="wheel_itemTextSize">16sp</item>
    <item name="wheel_itemTextSizeSelected">18sp</item>
    <item name="wheel_itemTextBoldSelected">false</item>
    <item name="wheel_sameWidthEnabled">false</item>
    <item name="wheel_atmosphericEnabled">true</item>
    <item name="wheel_curtainEnabled">false</item>
    <item name="wheel_curtainColor">#FFDEDEDE</item>
    <item name="wheel_curvedEnabled">false</item>
    <item name="wheel_curvedMaxAngle">90</item>
    <item name="wheel_cyclicEnabled">false</item>
    <item name="wheel_indicatorEnabled">true</item>
    <item name="wheel_indicatorColor">@android:color/holo_blue_light</item>
    <item name="wheel_indicatorSize">1dp</item>
</style>

在Java中集成重写某一选择器样式及配色

//仿蚂蚁财富APP定投周期选择弹窗样式
public class AntFortuneLikePicker extends LinkagePicker {
    private int lastDialogStyle;

    public AntFortuneLikePicker(@NonNull Activity activity) {
        super(activity);
    }

    @Override
    protected void onInit(@NonNull Context context) {
        super.onInit(context);
        lastDialogStyle = DialogConfig.getDialogStyle();
        DialogConfig.setDialogStyle(DialogStyle.Default);
    }

    @Override
    public void onDismiss(DialogInterface dialog) {
        super.onDismiss(dialog);
        DialogConfig.setDialogStyle(lastDialogStyle);
    }

    @Override
    protected void initData() {
        super.initData();
        setBackgroundColor(0xFFFFFFFF);
        cancelView.setText("取消");
        cancelView.setTextSize(16);
        cancelView.setTextColor(0xFF0081FF);
        okView.setTextColor(0xFF0081FF);
        okView.setText("确定");
        okView.setTextSize(16);
        titleView.setTextColor(0xFF333333);
        titleView.setText("定投周期");
        titleView.setTextSize(16);
        wheelLayout.setData(new AntFortuneLikeProvider());
        wheelLayout.setAtmosphericEnabled(true);
        wheelLayout.setVisibleItemCount(7);
        wheelLayout.setCyclicEnabled(false);
        wheelLayout.setIndicatorEnabled(true);
        wheelLayout.setIndicatorColor(0xFFDDDDDD);
        wheelLayout.setIndicatorSize((int) (contentView.getResources().getDisplayMetrics().density * 1));
        wheelLayout.setTextColor(0xFF999999);
        wheelLayout.setSelectedTextColor(0xFF333333);
        wheelLayout.setCurtainEnabled(false);
        wheelLayout.setCurvedEnabled(false);
    }

}

DialogFragment结合

XXXPicker 都继承自 android.app.Dialog ,因此可以直接和androidx.fragment.app.DialogFragment结合使用。

public class OptionPickerFragment extends DialogFragment {

    @NonNull
    @Override
    public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
        OptionPicker picker = new OptionPicker(requireActivity());
        picker.setData("土人", "里民子", "羡民", "穿青人", "不在56个民族之内", "未定民族");
        picker.setOnOptionPickedListener(new OnOptionPickedListener() {
            @Override
            public void onOptionPicked(int position, Object item) {
                Toast.makeText(requireContext(), item.toString(), Toast.LENGTH_SHORT).show();
            }
        });
        picker.getWheelView().setStyle(R.style.WheelStyleDemo);
        return picker;
    }

}

效果预览

以下图片显示的效果可能已修改过,实际效果请运行 demo 查看。

  • 效果图
  • 效果图
  • 效果图
  • 效果图
  • 效果图
  • 效果图
  • 效果图
  • 效果图
  • 效果图

特别鸣谢

许可协议

声明:不授权给 @q88qaz 这种“吃人家粮还骂人家娘”的厚颜无耻的伸手党及其关联企业使用 。

3.0.0 之后

Copyright (c) 2020-2021 gzu-liyujiang <[email protected]>

The software is licensed under the Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
    http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
PURPOSE.
See the Mulan PSL v2 for more details.

3.0.0 之前

MIT License

Copyright (c) 穿青山魈人马<[email protected]>

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.

androidpicker's People

Contributors

chaunqingren avatar chihoc avatar czm0408 avatar iwgang avatar liyujiang-gzu avatar lutas2000 avatar msdx avatar tandrow avatar weishd avatar zhanglong7 avatar zqfeixiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidpicker's Issues

由混淆导致的crash

java.lang.ClassCastException: com.alibaba.fastjson.JSONObject cannot be cast to cn.qqtheme.framework.picker.AddressPicker$City

已经加了
-keep class cn.qqtheme.framework.entity.** { ;}
-keep class cn.qqtheme.framework.picker.AddressPicker$
{ *;}

地址数据来源是哪的?

楼主的数据比较新,但没有对应的街道数据,不知道能否提供来源,我想引入街道,在选择省市区后再确定街道,街道数据由省市区确定后向服务器查询。不知道能否提供@gzu-liyujiang

功能性建议

1.前面有人提到了弹出框的位置,这是一个问题,能不能直接在布局文件里布局?
2.能不能滑动结束的时候就获取值(比如年月日)而不需要点击确定之后才可以获取。
3.以上两条结合起来就是:位置可以自定、滑动结束可以获取值,点击隐藏“确定”“取消按钮”。

如果可以的话,那就很强大了,谢谢。

使用年月选择器时,应用异常退出

之前使用时一切正常,但是今天日志就一直提示下面的错误信息,后来将DateTimePicker类中的StringToYearMonthDay方法返回语句----Integer.parseInt(text)给try-catch起来,程序可继续执行,应用也不再退出
异常信息如下:
default

年月日选择时bug

当开始年份和结束年份相同是,结束月份不起作用,默认都是12个月
changeMonthData这个方法判断逻辑问题

java.lang.NullPointerException

java.lang.NullPointerException
at com.hiayi.dialog.wheelpicker.widget.WheelView.setBackgroundDrawable(WheelView.java:246)
at com.hiayi.dialog.wheelpicker.widget.WheelView.setBackground(WheelView.java:239)
at android.view.View.(View.java:3654)
at android.view.ViewGroup.(ViewGroup.java:436)
at android.widget.FrameLayout.(FrameLayout.java:101)
at android.widget.ScrollView.(ScrollView.java:161)
at android.widget.ScrollView.(ScrollView.java:157)
at android.widget.ScrollView.(ScrollView.java:153)
at com.hiayi.dialog.wheelpicker.widget.WheelView.(WheelView.java:95)
at com.hiayi.dialog.wheelpicker.picker.AddressPicker.makeCenterView(AddressPicker.java:133)
at com.hiayi.dialog.common.popup.ConfirmPopup.makeContentView(ConfirmPopup.java:190)
at com.hiayi.dialog.common.popup.BottomPopup.onShowPrepare(BottomPopup.java:63)
at com.hiayi.dialog.common.popup.BottomPopup.show(BottomPopup.java:178)
at cn.com.android.hiayi.activity.AProfileActivity.addressChooseDialog(AProfileActivity.java:373)
at cn.com.android.hiayi.activity.AProfileActivity.onClick(AProfileActivity.java:199)
at android.view.View.performClick(View.java:4211)
at android.view.View$PerformClick.run(View.java:17446)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5305)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(Native Method)

省市区联动bug

关于有的市没有区,这样City里面没有County时候,控件选择后会报数组越界Error. 还请处理下~

刚弹出日期选择时,滚动年份,月份和日都自动变成1

比如设定开始日期为2016-10-08日,点击按钮弹出日期选择器,然后滚动年份,这时,变成xxxx-01-01,为什么会这样?故意设定的吗?我觉得除非是平年的2月29日(自动改为28),否则月份和日应该不会自动修正。谢谢作者开发这么好的项目。

您好,请问单项选择里OptionPicker,上面的Top可不可以自定义高度?

代码里已经有自定义Top的背景颜色,picker.setTopBackgroundColor(Color.parseColor("#6699ff"));
那么是否可以添加上自定义高度呢,如果设置下面的Item字体稍微大一些的,就会显得上面的头很不协调,建议添加Top的确认的setSubmitTextSize(),取消的setCancelTextSize(),标题的 picker.setTitleTextSize();
和Top的高度setTopHight();
最后谢谢您的共享....

国际化处理

建议做一下国际化处理,如英文、中文等语言!

日期选择

刚弹出选择器时,滚动年份,月份不会自动为1(之前自动为1),但是日却自动为1.是我打开的方式不对吗。

功能建议

1 日期选择添加扩展:年月日 时分秒 展示
2 wheel滚动时候有视觉效果,类似ios

buildToolsVersion is not specified

导入library下的WheelPicker这个module的时候,也按照文档的说明更改了WheelPicker下的build.gradle文件,依旧报错

滚动不够灵敏

感觉滚动不够灵敏,借了同事的IPHONE手机试了一下,发现滚动灵敏度高一点用起来更流畅也更方便选择。

文件选择器能否添加调整item高度的接口

文件选择器中,目前没有找到调整item高度的接口,用在平板上的时候,高度太小,字体也太小,目前只能修改源码,是否可以提供一套参数,修改item的高度、文字大小、颜色之类的

duplicate entry

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/CallSuper.class

能够支持时间上下限?

比如开始时间为 20160130结束时间是20171212

只能在上述范围内滚动,或者循环滚你。。。。。

可否引入街道数据

街道数据

省市区都提供了,可不可以再提供街道数据包括areacode,这样的话基本直接引入了。另外如何当一打开后选择到对应的省市区地址呢?

已解决

没有仔细看方法。。。。

城市选择

直辖市 选择时候按照name 选择有些不便,希望能够通过id回调

能否实现时间循环滑动

目前比如时间滑到59分就不可再滑动,能否实现时间循环滑动,滑动到59分下面又有00,01,02如此等等。

自动构建的提议

@gzu-liyujiang 我有一个提议:
添加travis-ci脚本,当有代码推上来时可自动构建并发布到fir。其他人可直接从fir.im上下载最新版本apk进行体验。参见:https://github.com/msdx/gradle-doc-apk

另外,即使不推到fir.im,也可以用travis-ci 自动构建进行编译,当其他人提交代码时,能够检查是否编译通过,如果有编写测试用例,也可以知道是否测试通过。

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.