NexusDialog alternatives and similar packages
Based on the "Other Widget" category.
Alternatively, view NexusDialog alternatives based on common mentions on social networks and blogs.
-
AndroidSlidingUpPanel
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano. -
BottomBar
(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern. -
ShortcutBadger
An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers. -
SystemBarTint
[DEPRECATED] Apply background tinting to the Android system UI when using KitKat translucent modes -
TapTargetView
An implementation of tap targets from the Material Design guidelines for feature discovery. -
android-viewbadger
[DEPRECATED] A simple way to "badge" any given Android view at runtime without having to cater for it in layout -
android-stackblur
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann. -
android-iconify
Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,... -
DraggablePanel
DISCONTINUED. Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component. -
aFileChooser
DISCONTINUED. [DEPRECATED] Android library that provides a file explorer to let users select files on external storage. -
Swipecards
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content. -
TourGuide
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View -
StickyGridHeaders
DISCONTINUED. An Android Library that makes it easy to make grid views with sectioned data and headers that stick to the top. -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation -
TileView
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing. -
Bubbles for Android
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development. -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
android-sliding-layer-lib
DISCONTINUED. Highly customizable SlidingLayer as you have seen in Wunderlist -
SortableTableView
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs. -
ScratchView
ScratchView repo is UX Design involving scratch cards like views which are scratched to reveal the information they conceal. -
FabricView
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of NexusDialog or a related project?
README
NexusDialog
Simple Form Generator for Android
NexusDialog is a library that allows you to dynamically generate forms in Android with little code. It's great for apps with many form-based UIs, since it reduces the boilerplate code to setup the view layout and tie things together in the Activity. Currently, it supports Android API 10+.
This library follows semantic versioning. Note that since this library is still active in development, new releases might introduce interface-breaking changes, which will be indicated in the changelog. NexusDialog 1.0.0 will be the first stable release.
A Simple Example
To give you an idea of the simplicity of NexusDialog, here's a screenshot of a simple example:
Here's the code for that example (less than 7 lines of real code!):
import java.util.Arrays;
import com.github.dkharrat.nexusdialog.FormActivity;
import com.github.dkharrat.nexusdialog.controllers.*;
public class SimpleExample extends FormActivity {
@Override protected void initForm() {
setTitle("Simple Example");
FormSectionController section = new FormSectionController(this, "Personal Info");
section.addElement(new EditTextController(this, "firstName", "First name"));
section.addElement(new EditTextController(this, "lastName", "Last name"));
section.addElement(new SelectionController(this, "gender", "Gender", true, "Select", Arrays.asList("Male", "Female"), true));
getFormController().addSection(section);
}
}
For more examples, browse the sample directory.
Features
NexusDialog supports many built-in fields for your form, like text boxes, date pickers, spinners, etc. The framework is also designed to be extensible so that you can easily add custom form elements if needed. Contributions are also welcome! If you've implemented a custom control that is useful, pull requests are welcome and appreciated! Currently, the following form elements are supported:
ValueController
: Shows a TextView containing a valueEditTextController
: EditText view that allows for free-form text input.CheckBoxController
: CheckBox view that allows for two-states: either checked or unchecked.DatePickerController
: Displays a date picker to allow choosing a specific dateTimePickerController
: Displays a time picker to allow choosing a specific timeSelectionController
: Displays a spinner with a list of item to select fromSearchableSelectionController
: Displays a (typically large) list of items to select from, with the ability to search the list and also allow free-form text.
Apps Using NexusDialog
Do you have an app that's utilizing NexusDialog? Let me know and I'll add a link to it here!
How to Add NexusDialog to Your Project
There are multiple ways to include your project, depending on your build environment:
Gradle
Add the following dependency to your build.gradle file for your project:
dependencies {
compile 'com.github.dkharrat.nexusdialog:nexusdialog:0.4.2'
}
Make sure your application is using the Android SDK v23 or later in your build.gradle file:
android {
compileSdkVersion 23
buildToolsVersion "23"
...
}
Maven
Add the following dependency to your pom.xml file for your project (requires android-maven-plugin 3.8.0+):
<dependency>
<groupId>com.github.dkharrat.nexusdialog</groupId>
<artifactId>nexusdialog</artifactId>
<version>0.4.2</version>
<type>aar</type>
</dependency>
Android Studio or IntelliJ 13+
Add the appropriate dependency in your build.gradle file and refresh your project.
How to Use NexusDialog
Once NexusDialog is setup as a dependency in your project (by following the instructions above), you can start creating forms right away! The main classes you will be working with the most are:
FormActivity
orFormActivityWithActionBar
: If you wish to use the default Activity implementation for NexusDialog, this is the base class for each activity you wish to display a form in. Your activity must inherit from it. Form setup is done in theinitForm()
method.FormController
: This is the main class that manages the form elements of NexusDialog. It provides simple APIs to quickly create and manage form fields.FormActivity
creates this class for you, or you can be create one manually for custom Activities.FormElementController
: Although you will not be using this class directly, you will be using its subclasses. All form elements (text boxes, labels, sections, etc.) inherit from this base class, which provides them common functionality and properties they need. Also, you could useFormSectionController
to group a set of form fields together.FormModel
: This class abstracts the data model your form will use. It's the interface that NexusDialog uses to access and update the underlying data model the form is based on. AFormActivity
uses it to initialize the field values to the desired values when its first displayed, as well as update the underlying model when values change in the UI.FromActivity
uses a default genericFormModel
based on a key-value store that is usually sufficient for most use cases. However, if you need more control over how the form data is retrieved and stored, you can provide your custom implementation (viaFormActivity#setModel
).
Add some fields grouped by section
public class RegistrationForm extends FormActivity {
@Override protected void initForm() {
setTitle("Register Account");
FormSectionController section1 = new FormSectionController(this, "Personal Info");
section1.addElement(new EditTextController(this, "firstName", "First name"));
section1.addElement(new EditTextController(this, "lastName", "Last name"));
getFormController().addSection(section1);
FormSectionController section2 = new FormSectionController(this, "Account");
section2.addElement(new EditTextController(this, "username", "Username"));
section2.addElement(new EditTextController(this, "password", "Password") {{
setSecureEntry(true);
}});
getFormController().addSection(section2);
}
}
Initialize fields to certain values when the form is first displayed
@Override protected void initForm() {
// form setup
// ...
getModel().setValue("firstName", "John");
getModel().setValue("lastName", "Smith");
}
To retrieve the current field value at any time:
getModel().getValue("firstName");
Listen to changes in fields:
getModel().addPropertyChangeListener("firstName", new PropertyChangeListener() {
@Override public void propertyChange(PropertyChangeEvent event) {
LOG.i("tag", "Value was: " + event.getOldValue() + ", now: " + event.getNewValue());
}
});
Please browse through the samples included with the project for examples on how NexusDialog can be used.
Documentation
See the current Javadoc.
Styling
TODO
Adding Custom Elements
If the built-in form controls provided by NexusDialog don't meet your needs, you can easily extend NexusDialog to
provide custom form elements. The common parent class for all form elements is FormElementController
. Among other
things, FormElementController
tells NexusDialog how to construct the view to display in the form.
Typically your custom element falls under one of these cases:
Your custom element needs to show a label before a custom field: in this case, consider inheriting from
LabeledFieldController
which can provide the label functionality for you.Your custom element needs full customization for how it's displayed: in this case, inherit from
FormElementController
and implement thecreateView
method to tell NexusDialog how to create the custom view.
Browse through the catalog sample for an example of implementing a custom element, or go over the code for the built-in form elements to get an idea how they work.
Planned Features
The framework is constantly being improved and new features are being implemented. The following improvements are planned:
- Support buttons
- Support sliders
Contributing
Contributions via pull requests are welcome! For suggestions, feedback, or feature requests, please submit an issue.
Author
Dia Kharrat - [email protected] Twitter: http://twitter.com/dkharrat
License
Copyright 2013 Dia Kharrat
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 all licence references and agreements mentioned in the NexusDialog README section above
are relevant to that project's source code only.