An action sheets dialog for Android, which representing similar UI to the UIActionSheet on iOS.
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>
- Basic
ActionDialog dialog = new ActionDialog(this);
dialog.setTitle("Title");
dialog.setMessage("Message");
dialog.addAction("Default");
dialog.addAction("Destructive", true);
dialog.setEventListener(this);
dialog.show();
- Actions only
ActionDialog dialog = new ActionDialog(this);
dialog.setActions(R.array.mobile_os_entries);
dialog.setCancelVisible(false);
dialog.setEventListener(this);
dialog.show();
Click here to download the sample apk.
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.