All Projects → wangjiegulu → Wheelview

wangjiegulu / Wheelview

Android滚动选择控件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Wheelview

Xcdanmuview
Android弹幕效果View-支持左右两个方向
Stars: ✭ 28 (-98.1%)
Mutual labels:  custom-view
Androidnote
安卓学习笔记
Stars: ✭ 8,486 (+477.28%)
Mutual labels:  custom-view
Meter Number Picker
The android library that provides a simple and customizable NumberPicker styled as meter.
Stars: ✭ 96 (-93.47%)
Mutual labels:  custom-view
Android Holocircularprogressbar
Holo Circular ProgressBar
Stars: ✭ 966 (-34.29%)
Mutual labels:  custom-view
Croller
A circular seekbar for Android, with a control knob! (for the lack of a better word).
Stars: ✭ 1,088 (-25.99%)
Mutual labels:  custom-view
Easyflipview
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.
Stars: ✭ 1,221 (-16.94%)
Mutual labels:  custom-view
Imagelabelview
A view for data-labeling(a tool for machine learning).
Stars: ✭ 20 (-98.64%)
Mutual labels:  custom-view
Timesincetextview
Android TextView for displaying the time since a date
Stars: ✭ 108 (-92.65%)
Mutual labels:  custom-view
Battery Meter View
🔋 Material design battery meter (i.e. level, state) view for Android
Stars: ✭ 57 (-96.12%)
Mutual labels:  custom-view
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (-93.67%)
Mutual labels:  custom-view
Canvas
Canvas Drawing Android Library
Stars: ✭ 35 (-97.62%)
Mutual labels:  custom-view
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (-96.26%)
Mutual labels:  custom-view
Proprogressviews
Progress Views Library
Stars: ✭ 84 (-94.29%)
Mutual labels:  custom-view
Peppy Calendarview
Simple and fast Material Design calendar view for Android.
Stars: ✭ 30 (-97.96%)
Mutual labels:  custom-view
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (-6.33%)
Mutual labels:  custom-view
Githubcontributionsview
A library to show the map of contributions (Github)
Stars: ✭ 27 (-98.16%)
Mutual labels:  custom-view
Android Circular Progress
Android custom view that loads a circular progress indicator using ImageView or FrameLayout
Stars: ✭ 75 (-94.9%)
Mutual labels:  custom-view
Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (-92.52%)
Mutual labels:  custom-view
Consecutivescroller
ConsecutiveScrollerLayout是Android下支持多个滑动布局(RecyclerView、WebView、ScrollView等)和普通控件(TextView、ImageView、LinearLayou、自定义View等)持续连贯滑动的容器,它使所有的子View像一个整体一样连续顺畅滑动。并且支持布局吸顶功能。
Stars: ✭ 1,383 (-5.92%)
Mutual labels:  custom-view
Rapidfloatingactionbutton
Quick solutions for Floating Action Button,RapidFloatingActionButton(RFAB)
Stars: ✭ 1,289 (-12.31%)
Mutual labels:  custom-view

WheelView

最后打个广告哈,阿里巴巴,杭州招技术,支持电话视频面试,有兴趣的同学戳这里:https://github.com/wangjiegulu/jobs

How to use

layout:

<com.wangjie.wheelview.WheelView
        android:id="@+id/main_wv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
    />

Activity:

WheelView wva = (WheelView) findViewById(R.id.main_wv);
wva.setOffset(1);
wva.setItems(Arrays.asList(PLANETS));
wva.setOnWheelViewListener(new WheelView.OnWheelViewListener() {
    @Override
    public void onSelected(int selectedIndex, String item) {
        Log.d(TAG, "selectedIndex: " + selectedIndex + ", item: " + item);
    }
});

Show in dialog:

View outerView = LayoutInflater.from(this).inflate(R.layout.wheel_view, null);
WheelView wv = (WheelView) outerView.findViewById(R.id.wheel_view_wv);
wv.setOffset(2);
wv.setItems(Arrays.asList(PLANETS));
wv.setSeletion(3);
wv.setOnWheelViewListener(new WheelView.OnWheelViewListener() {
    @Override
    public void onSelected(int selectedIndex, String item) {
        Log.d(TAG, "[Dialog]selectedIndex: " + selectedIndex + ", item: " + item);
    }
});

new AlertDialog.Builder(this)
        .setTitle("WheelView in Dialog")
        .setView(outerView)
        .setPositiveButton("OK", null)
        .show();

License

Copyright 2014 Wang Jie

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.

Android Arsenal

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].