kandi background
Explore Kits

AndroidPicker | FilePicker etc | Datepicker library

 by   gzu-liyujiang Java Version: 4.1.6 License: Non-SPDX

 by   gzu-liyujiang Java Version: 4.1.6 License: Non-SPDX

Download this library from

kandi X-RAY | AndroidPicker Summary

AndroidPicker is a Java library typically used in User Interface, Datepicker applications. AndroidPicker has no bugs, it has no vulnerabilities, it has build file available and it has medium support. However AndroidPicker has a Non-SPDX License. You can download it from GitHub.
欢迎大伙儿在Issues提交你的意见或建议。欢迎 Fork & Pull requests 贡献您的代码,大家共同学习【AndroidPicker 交流群 604235437】。.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • AndroidPicker has a medium active ecosystem.
  • It has 5358 star(s) with 1340 fork(s). There are 142 watchers for this library.
  • There were 10 major release(s) in the last 12 months.
  • There are 133 open issues and 136 have been closed. On average issues are closed in 96 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of AndroidPicker is 4.1.6
AndroidPicker Support
Best in #Datepicker
Average in #Datepicker
AndroidPicker Support
Best in #Datepicker
Average in #Datepicker

quality kandi Quality

  • AndroidPicker has 0 bugs and 0 code smells.
AndroidPicker Quality
Best in #Datepicker
Average in #Datepicker
AndroidPicker Quality
Best in #Datepicker
Average in #Datepicker

securitySecurity

  • AndroidPicker has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • AndroidPicker code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
AndroidPicker Security
Best in #Datepicker
Average in #Datepicker
AndroidPicker Security
Best in #Datepicker
Average in #Datepicker

license License

  • AndroidPicker has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
AndroidPicker License
Best in #Datepicker
Average in #Datepicker
AndroidPicker License
Best in #Datepicker
Average in #Datepicker

buildReuse

  • AndroidPicker releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • AndroidPicker saves you 4653 person hours of effort in developing the same functionality from scratch.
  • It has 15901 lines of code, 1501 functions and 213 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
AndroidPicker Reuse
Best in #Datepicker
Average in #Datepicker
AndroidPicker Reuse
Best in #Datepicker
Average in #Datepicker
Top functions reviewed by kandi - BETA

kandi has reviewed AndroidPicker and discovered the below as its top functions. This is intended to give you an instant insight into AndroidPicker implemented functionality, and help decide if they suit your requirements.

  • Links the first letter of the data in the group .
  • Initializes the crop window .
  • Applies the image matrix to the image view .
  • Calculate days interval between month and day .
  • Adjusts the right scroll offset .
  • Draw all items
  • region Override Override
  • Get the type of the eval pressed move event .
  • Validates the configuration .
  • load all files

AndroidPicker Key Features

GitHub:https://github.com/gzu-liyujiang/AndroidPicker

码云(GitEE):https://gitee.com/li_yu_jiang/AndroidPicker

Demo:https://github.com/gzu-liyujiang/AndroidPicker/blob/master/demo.apk

依赖配置

copy iconCopydownload iconDownload
allprojects {
    repositories {
        maven { url 'https://www.jitpack.io' }
    }
}

在 Java 中

copy iconCopydownload iconDownload
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();

在 XML 中

copy iconCopydownload iconDownload
<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" />

自定义样式(可选)

copy iconCopydownload iconDownload
//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));
    }

}

3.0.0 之后

copy iconCopydownload iconDownload
Copyright (c) 2020-2021 gzu-liyujiang <1032694760@qq.com>

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 之前

copy iconCopydownload iconDownload
MIT License

Copyright (c) 穿青山魈人马<liyujiang_tk@yeah.net>

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.

AlertDialog not dismissing by tapping on background on Samsung devices

copy iconCopydownload iconDownload
AlertDialog alertDialog;
  alertDialog = new AlertDialog.Builder(this).create();
  alertDialog.setCanceledOnTouchOutside(true);

Can TimePicker be used without header on Android

copy iconCopydownload iconDownload
private void hideTimeHeaderLayout(TimePicker picker) {
    final int id = Resources.getSystem().getIdentifier("time_header", "id", "android");
    final View timeLayout = picker.findViewById(id);
    if(timeLayout != null) {
        timeLayout .setVisibility(View.GONE);
    }
}

Community Discussions

Trending Discussions on AndroidPicker
  • AlertDialog not dismissing by tapping on background on Samsung devices
  • Can TimePicker be used without header on Android
Trending Discussions on AndroidPicker

QUESTION

AlertDialog not dismissing by tapping on background on Samsung devices

Asked 2018-Sep-08 at 00:34

I am using AlertDialog (full disclosure: using React Native, but this is using Native code and bridged through the Native Modules API so I don't think RN is causing the issue) in the app I develop for displaying a menu of items, which works perfectly in all cases. I developed it using the Pixel 2 simulator (API 28, Android 9). However, when testing on a Samsung device (Galaxy S4, Android 5), the dialog is not dismissable by touching the background of the app; I can only cancel it when pressing the back button. Here is the code I am using:

@ReactMethod
public void showDialog(ReadableArray labelsReadableArray, final Promise promise) {
    final String[] labels = getLabels(labelsReadableArray);
    new AlertDialog.Builder(getCurrentActivity())
        .setItems(labels, new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int itemIndex) {
                dialog.dismiss();
                promise.resolve(itemIndex);
            }
        })
        .setOnCancelListener(new DialogInterface.OnCancelListener() {
            @Override
            public void onCancel(DialogInterface dialog) {
                promise.reject("dialog was closed");
            }
        }).setCancelable(true)
        .show();
}

and in the React Native code I call:

NativeModules.AndroidPicker.showDialog(labels)
  .then((index) => /* JS/redux action to process the change)
  .catch(err => console.log(err))

Why is the Samsung device not cancelling the dialog when the background is tapped, while other Android phones do? How can I fix this?

ANSWER

Answered 2018-Sep-08 at 00:34

You can use the following solution to dismiss the AlertDialog by tapping on the background on Samsung devices:

AlertDialog alertDialog;
  alertDialog = new AlertDialog.Builder(this).create();
  alertDialog.setCanceledOnTouchOutside(true);

Source https://stackoverflow.com/questions/52223913

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install AndroidPicker

You can download it from GitHub.
You can use AndroidPicker like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AndroidPicker component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.