Skip to content

An action sheets dialog for Android, which representing similar UI to the UIActionSheet on iOS.

License

Notifications You must be signed in to change notification settings

skyline1631/ActionDialog

Repository files navigation

ActionDialog

Build Status Download

An action sheets dialog for Android, which representing similar UI to the UIActionSheet on iOS.

Snapshot

Download

Gradle:

repositories {
  jcenter()
}

dependencies {
  compile 'com.skyline.widget:action-dialog:1.0.1'
}

Maven:

<dependency>
  <groupId>com.skyline.widget</groupId>
  <artifactId>action-dialog</artifactId>
  <version>1.0.1</version>
  <type>pom</type>
</dependency>

Usage

  1. Basic
ActionDialog dialog = new ActionDialog(this);
dialog.setTitle("Title");
dialog.setMessage("Message");
dialog.addAction("Default");
dialog.addAction("Destructive", true);
dialog.setEventListener(this);
dialog.show();
  1. Actions only
ActionDialog dialog = new ActionDialog(this);
dialog.setActions(R.array.mobile_os_entries);
dialog.setCancelVisible(false);
dialog.setEventListener(this);
dialog.show();

Sample

Click here to download the sample apk.

License

Copyright (C) 2017 Legolas Kwok.

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.

About

An action sheets dialog for Android, which representing similar UI to the UIActionSheet on iOS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages