1 Star 0 Fork 0

Archermind-TI / RangeSliderView

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

RangeSliderView

介绍

OHOS范围滑块视图

功能

  1. 添加滑块节点
  2. 更改滑块样式

演示

image image

集成

1.下载模块包关联使用

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation project(':library')
        testImplementation 'junit:junit:4.13'
    }

2.maven引用

    ...
    allprojects {
        repositories {
            mavenCentral()
        }
    }
    ...
     dependencies {
     ...
        implementation 'com.gitee.archermind-ti:RangeSliderView:1.0.0'
     ...
    }

使用说明

    smallSlider = (RangeSliderView) findComponentById(
                    ResourceTable.Id_rsv_small);
            largeSlider = (RangeSliderView) findComponentById(
                    ResourceTable.Id_rsv_large);
            final RangeSliderView.OnSlideListener listener = index -> {
                ToastDialog toastDialog = new ToastDialog(getContext());
                toastDialog.setDuration(2000);
                toastDialog.setText("Hi index:" + index);
                toastDialog.show();
            };
            smallSlider.setOnSlideListener(listener);
            largeSlider.setOnSlideListener(listener);

编译说明

  1. 将项目通过git clone 至本地
  2. 使用DevEco Studio 打开该项目,然后等待Gradle 构建完成
  3. 点击Run运行即可(真机运行可能需要配置签名)

版本迭代

  • V1.0.0

版权和许可信息

    Copyright 2015 Chan Nguyen
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
       http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

空文件

简介

OHOS范围滑块视图 展开 收起
Java
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/archermind-ti/range-slider-view.git
git@gitee.com:archermind-ti/range-slider-view.git
archermind-ti
range-slider-view
RangeSliderView
master

搜索帮助