All Projects → goweii → AnyDialog

goweii / AnyDialog

Licence: Apache-2.0 license
简化dialog创建,支持滑动关闭,支持嵌套滑动

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to AnyDialog

Happybubble
💭BubbleLayout随意变化的气泡布局、消息对话框,可定制颜色,背景、弧度、尖角弧度、边框等等。BubbleDialog气泡弹窗根据点击View的位置定位它的弹窗位置,BubbleDialog可定制方向等!(BubbleLayout changes freely,BubbleDialog click on the location of View positioning its location,BubbleDialog can be customized directions.)
Stars: ✭ 487 (+1773.08%)
Mutual labels:  dialog, android-ui
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 (+23.08%)
Mutual labels:  dialog, android-ui
Aestheticdialogs
📱 An Android Library for 💫fluid, 😍beautiful, 🎨custom Dialogs.
Stars: ✭ 352 (+1253.85%)
Mutual labels:  dialog, android-ui
Materialdialog Android
📱Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily.
Stars: ✭ 602 (+2215.38%)
Mutual labels:  dialog, android-ui
Lovelydialog
This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.
Stars: ✭ 1,043 (+3911.54%)
Mutual labels:  dialog, android-ui
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-7.69%)
Mutual labels:  android-ui, andorid
Androidrate
AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days.
Stars: ✭ 117 (+350%)
Mutual labels:  dialog, android-ui
FabDialog
🎈 Fab into Dialog Animation on Android
Stars: ✭ 36 (+38.46%)
Mutual labels:  dialog, android-ui
Color-O-Matic
Beautiful color picker dialog for Android 9+
Stars: ✭ 43 (+65.38%)
Mutual labels:  dialog
YuanaItemSettingView
Customizable Item Setting View Android
Stars: ✭ 15 (-42.31%)
Mutual labels:  android-ui
silly-android
Android plugins for Java, making core Android APIs easy to use
Stars: ✭ 40 (+53.85%)
Mutual labels:  dialog
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+138.46%)
Mutual labels:  android-ui
cookie-consent-js
A simple dialog and framework to handle the German and EU law about cookies in a website (December 2021)
Stars: ✭ 55 (+111.54%)
Mutual labels:  dialog
CoolAnimation4Beginner
Making Beauty Android UI/UX Design with cool Animation
Stars: ✭ 21 (-19.23%)
Mutual labels:  android-ui
Google-Maps-BottomSheet
A BottomSheetBehavior framework mirroring Google Maps'
Stars: ✭ 75 (+188.46%)
Mutual labels:  android-ui
ui-testing
No description or website provided.
Stars: ✭ 15 (-42.31%)
Mutual labels:  android-ui
FlowingPager
A Flexible Side Sliding View Controlled by a Button
Stars: ✭ 104 (+300%)
Mutual labels:  android-ui
XStyleDialog
可定制化样式的Android Dialog
Stars: ✭ 37 (+42.31%)
Mutual labels:  dialog
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+392.31%)
Mutual labels:  android-ui
logregform-android
Login and registration form for Android (IceCream Sandwich+) with additional features, enchancement and dynamic GUI.
Stars: ✭ 25 (-3.85%)
Mutual labels:  android-ui

AnyDialog 使用说明

简化dialog创建,内置5个默认样式,力求还原Android系统动画效果

GitHub主页

Demo下载

简介

  • 链式调用
  • 可自定义数据绑定
  • 可自定义进出场动画

使用说明

集成

  • 添加jitpack库

// build.gradle(Project:)
allprojects {
    repositories {
        ...
            maven { url 'https://www.jitpack.io' }
    }
}
  • 添加依赖

    点击查看最新版本号

    从3.0.3版本开始,版本号前不加v,引用时需要注意。

    从4.0.0版本开始,重构到androidx+kotlin,精简功能,移除背景图和高斯模糊效果。

// build.gradle(Module:)
dependencies {
    implementation 'com.github.goweii:AnyDialog:4.0.0'
}

新建布局

在布局文件根节点设置layout_width,layout_height,layout_margin等属性控制dialog的显示大小

<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:cardBackgroundColor="#fff"
    app:cardCornerRadius="12dp"
    app:cardElevation="0dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:orientation="vertical">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="10dp"
            android:text="@string/app_name"
            android:textColor="#232323"
            android:textSize="17sp" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="15dp"
            android:text="@string/dialog_msg"
            android:textColor="#232323"
            android:textSize="15sp" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#f5f5f5" />

        <TextView
            android:id="@+id/tv_close"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="10dp"
            android:text="关闭"
            android:textColor="@color/colorPrimary"
            android:textSize="15sp" />

    </LinearLayout>

</androidx.cardview.widget.CardView>

在代码中调用

 AnyDialog(this).apply {
     style(AnyDialog.Style.CENTER)
     contentView(R.layout.dialog_def)
     clickDismiss(R.id.tv_close)
 }.show()
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].