2 Star 0 Fork 3

CHINASOFT4_OHOS / chooseasy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

chooseasy

项目介绍

  • 项目名称: chooseasy
  • 所属系列: openharmony的第三方组件适配移植
  • 功能: 具有分组选择器的库,使选择变得容易
  • 项目移植状态: 主功能完成
  • 调用差异: 无
  • 开发版本: sdk6,DevEco Studio 2.2 Beta1
  • 基线版本:master分支

效果演示

安装教程

使用说明

  • When you need to extend and use custom objects you could implement Selectable Interface All the object instances that are to be selectable (a.k.a clickable) should implement Selection.Selectable Interface
public class Profile
        implements Serializable, Selection.Selectable {

    @SerializedName("profile_type")
    Selection.SelectedResult.IdType profileType;
    @SerializedName("profile_ref_id")
    int profileRefId;
    @SerializedName("profile_title")
    String title;
    @SerializedName("img_path")
    String profileIcon;

    @Override
    public int getId() {
        return profileRefId;
    }    
    @Override
    public String getName() {
        return title;
    }
    @Override
    public String getImage() {
        return profileIcon;
    }    
    @Override
    public void setSelected(boolean selected) {
        
    }
    @Override
    public boolean isSelected() {
        return false;
    }

}

测试信息

CodeCheck代码测试无异常

CloudTest代码测试无异常

病毒安全检测通过

当前版本demo功能与原组件基本无差异

版本迭代

  • 0.0.2-SNAPSHOT

版权和许可信息

Open sourced with MIT license

MIT License Copyright (c) 2017 suresh jaladanki 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.

简介

一个简单易用的分组选择器 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/chinasoft4_ohos/chooseasy.git
git@gitee.com:chinasoft4_ohos/chooseasy.git
chinasoft4_ohos
chooseasy
chooseasy
master

搜索帮助