All Projects → wangjiegulu → Draggableflagview

wangjiegulu / Draggableflagview

Licence: apache-2.0
可拖拽的红点,(仿新版QQ,tab下面拖拽标记为已读的效果),拖拽一定的距离可以消失回调。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Draggableflagview

Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+2815.04%)
Mutual labels:  draggable
Fogview library
FogView is a android library that can show fog on any layout and the fog removes when user rubs it.
Stars: ✭ 633 (-21.95%)
Mutual labels:  custom-view
Dragmove.js
A super tiny Javascript library to make DOM elements draggable and movable. ~500 bytes and no dependencies.
Stars: ✭ 757 (-6.66%)
Mutual labels:  draggable
Stateview
✨ StateView is an invisible, zero-sized View that can be used to lazily inflate loadingView/emptyView/retryView at runtime.
Stars: ✭ 573 (-29.35%)
Mutual labels:  custom-view
Freedrawview
A View on which you can freely draw, customizing paint width, alpha and color, and take a screenshot of the content. Useful for note apps, signatures or free hand writing.
Stars: ✭ 627 (-22.69%)
Mutual labels:  custom-view
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (-12.45%)
Mutual labels:  draggable
Passcodeview
Material Design PasscodeView for Android.
Stars: ✭ 513 (-36.74%)
Mutual labels:  custom-view
Labelsview
Android的标签列表控件。可以设置标签的选中效果。 可以设置标签的选中类型:不可选中、单选、限数量多选和不限数量多选等, 并支持设置必选项、单行显示、最大显示行数等功能。
Stars: ✭ 777 (-4.19%)
Mutual labels:  custom-view
Easysignseekbar
本库主要提供一个漂亮而强大的自定义SeekBar,进度变化由提示牌 (sign)展示,具有强大的属性设置,支持设置section(节点)、mark(标记)、track(轨迹)、thumb(拖动块)、progress(进度)、sign(提示框)等功能
Stars: ✭ 629 (-22.44%)
Mutual labels:  custom-view
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (-7.77%)
Mutual labels:  custom-view
Views
A collection of cool android custom views
Stars: ✭ 580 (-28.48%)
Mutual labels:  custom-view
Xrecyclerview
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView
Stars: ✭ 5,269 (+549.69%)
Mutual labels:  custom-view
React Ui Tree
React tree component with drag & drop
Stars: ✭ 720 (-11.22%)
Mutual labels:  draggable
React Range
🎚️Range input with a slider. Accessible. Bring your own styles and markup.
Stars: ✭ 545 (-32.8%)
Mutual labels:  draggable
Statusview
Custom status view for Android.
Stars: ✭ 775 (-4.44%)
Mutual labels:  custom-view
Vue Draggable Resizable Gorkys
Vue 用于可调整大小和可拖动元素的组件并支持冲突检测、元素吸附、元素对齐、辅助线
Stars: ✭ 521 (-35.76%)
Mutual labels:  draggable
Moveable
Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
Stars: ✭ 6,378 (+686.44%)
Mutual labels:  draggable
Vue Moveable
↔️ ↕️ 🔄 Vue.js wrapper for Moveable
Stars: ✭ 792 (-2.34%)
Mutual labels:  draggable
Scrollbooster
Enjoyable content drag-to-scroll library
Stars: ✭ 775 (-4.44%)
Mutual labels:  draggable
Creditcardview
💳 CreditCardView is an Android library that allows developers to create the UI which replicates an actual Credit Card.
Stars: ✭ 744 (-8.26%)
Mutual labels:  custom-view

DraggableFlagView

可拖拽的红点,(仿新版QQ,tab下面拖拽标记为已读的效果),拖拽一定的距离可以消失回调。

main.xml

    <com.wangjie.draggableflagview.DraggableFlagView
                xmlns:dfv="http://schemas.android.com/apk/res/com.wangjie.draggableflagview"
                android:id="@+id/main_dfv"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_alignParentBottom="true"
                android:layout_margin="15dp"
                dfv:color="#FF3B30"
                />

MainActivity:

    public class MainActivity extends Activity implements DraggableFlagView.OnDraggableFlagViewListener, View.OnClickListener {
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            findViewById(R.id.main_btn).setOnClickListener(this);
    
            DraggableFlagView draggableFlagView = (DraggableFlagView) findViewById(R.id.main_dfv);
            draggableFlagView.setOnDraggableFlagViewListener(this);
            draggableFlagView.setText("7");
        }
    
        @Override
        public void onFlagDismiss(DraggableFlagView view) {
            Toast.makeText(this, "onFlagDismiss", Toast.LENGTH_SHORT).show();
        }
    
        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.main_btn:
                    Toast.makeText(this, "hello world", Toast.LENGTH_SHORT).show();
                    break;
            }
        }
    }

License

Copyright 2015 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].