All Projects → jiang111 → Indicatordialog

jiang111 / Indicatordialog

a dialog with arrow indicator in the location where you want

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Indicatordialog

BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-93.4%)
Mutual labels:  dialog, indicator
Pageindicator
An Instagram like page indicator compatible with RecyclerView and ViewPager.
Stars: ✭ 236 (-51.34%)
Mutual labels:  recyclerview, indicator
Scrollingpagerindicator
Pager indicator inspired by Instagram. Lightweight and easy to set up.
Stars: ✭ 419 (-13.61%)
Mutual labels:  recyclerview, indicator
Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+806.8%)
Mutual labels:  recyclerview, dialog
Tvrecyclerview
TvRecyclerView--针对TV端特性进行的适配与开发
Stars: ✭ 453 (-6.6%)
Mutual labels:  recyclerview
Dialogic
💬 Create dialogs, characters and scenes to display conversations in your Godot games.
Stars: ✭ 414 (-14.64%)
Mutual labels:  dialog
React Native Actions Sheet
A Cross Platform(Android & iOS) ActionSheet with a flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
Stars: ✭ 412 (-15.05%)
Mutual labels:  dialog
Colorpickerpreference
🎨 A library that lets you implement ColorPicker, ColorPickerDialog, ColorPickerPreference.
Stars: ✭ 407 (-16.08%)
Mutual labels:  dialog
Dragdropswiperecyclerview
Kotlin Android library that extends RecyclerView to support gestures like drag & drop and swipe, among others. It works with vertical, horizontal and grid lists.
Stars: ✭ 469 (-3.3%)
Mutual labels:  recyclerview
React Cool Portal
😎 🍒 React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else.
Stars: ✭ 458 (-5.57%)
Mutual labels:  dialog
Recycler Fast Scroll
Provides fast scroll and section idexer for recycler view
Stars: ✭ 445 (-8.25%)
Mutual labels:  recyclerview
Recyclerview Gallery
Recyclerview-Gallery:This library shows you a gallery using RecyclerView.
Stars: ✭ 420 (-13.4%)
Mutual labels:  recyclerview
Flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 455 (-6.19%)
Mutual labels:  indicator
Alphabetindex Fast Scroll Recyclerview
A Powerful AlphabetIndex FastScroller Library for Android's RecyclerView!
Stars: ✭ 444 (-8.45%)
Mutual labels:  recyclerview
Seq2seqchatbots
A wrapper around tensor2tensor to flexibly train, interact, and generate data for neural chatbots.
Stars: ✭ 466 (-3.92%)
Mutual labels:  dialog
Fancygifdialog Android
Make your native android Dialog Fancy and Gify. A library that takes the standard Android Dialog to the next level with a variety of styling options and Gif's. Style your dialog from code.
Stars: ✭ 409 (-15.67%)
Mutual labels:  dialog
Sppermissions
Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI.
Stars: ✭ 4,701 (+869.28%)
Mutual labels:  dialog
Trady
Trady is a handy library for computing technical indicators, and it targets to be an automated trading system that provides stock data feeding, indicator computing, strategy building and automatic trading. It is built based on .NET Standard 2.0.
Stars: ✭ 433 (-10.72%)
Mutual labels:  indicator
Smart Show
Toast & Snackbar & TopBar & Dialog
Stars: ✭ 430 (-11.34%)
Mutual labels:  dialog
Androidwithkotlin
🚀 These are android sample projects which are written in Kotlin. It covers video streaming, mp3 player, sqlite, location services, custom camera, o-notifications, simple compass etc.
Stars: ✭ 447 (-7.84%)
Mutual labels:  recyclerview

IndicatorDialog

a dialog with arrow indicator in the location where you want [minSdkVersion 9]
download apk

Demo:

Depend:

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
	...
	maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
    compile 'com.github.jiang111:IndicatorDialog:2.1.0'
}

Usage:

最终内部是通过RecyclerView来实现,详细用法请参考 see the demo or download apk


IndicatorDialog dialog = new IndicatorBuilder(this)  //must be activity
                .width(dp2px(400))                      
                .height(-1)                        
                .animator(R.style.dialog_exit) 
                .ArrowDirection(IndicatorBuilder.BOTTOM)     
		.bgColor(Color.parseColor("#49484b"))  
                .dimEnabled(true)                     
                .gravity(GRAVITY_LEFT)                
                .radius(8)                            
                .ArrowRectage(0.2f)                  
                .layoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false))  //the LayoutManager of RecyclerView
                .adapter(adapter)
		.create();           
dialog.setCanceledOnTouchOutside(true);               
dialog.show(v);                                                                     
dialog.dismiss();                                    
dialog.getDialog();                                 


//方法解释

width()     //宽,单位px,必填
height()    //高,单位px,推荐传-1 可以自动适配
ArrowDirection()   //箭头方向 TOP BOTTOM LEFT RIGHT
bgColor()          //背景颜色
dimEnabled()      //背景模糊,默认true
gravity()         //对话框的权重 GRAVITY_LEFT  GRAVITY_RIGHT  GRAVITY_CENTER
radius()          //圆角
ArrowRectage()    //箭头距离左边或者右边的偏移量 取值 0-1, 左右依据gravity来判断是左边偏移还是右边

//高级方法
animator()  //dialog显示消失的动画
arrowDrawable()   //自定义箭头样式,可以自定义成任何形状

dialog.show(v,x,y);    //x为向左右偏移,y为上下偏移   

Other

If you found this library helpful or you learned something today and want to thank me, buying me a cup of ☕️ with paypal

License

Copyright 2016 NewTab

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