• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Interactive Feedback Dialog for Android inspired from Google Maps Review section

Feedback Dialog for Android

Download License

An Interactive Feedback Dialog for Android inspired from Google Maps Review section

It's very important to have a feedback loop, where you're constantly thinking about what you've done and how you could be doing it better. - Elon Musk

Getting feedback from your customers, prospects is the most important task for developing and moving a product. Getting inspired from Google Maps Review section, I've compiled and crafted this library to make sure this utility will be helpful to get feedback from customers easily without any monotonous forms fillup and with less input.

Few usecases

Install dependency

compile 'design.ivisionblog.apps:feedback-dialog:0.0.1-alpha'

Getting Started

As simple as AlertDialog API,

          FeedBackDialog mDialog = new FeedBackDialog(MainActivity.this)
                .setBackgroundColor(R.color.bgcolor)
                .setIcon(R.drawable.brand_icon)
                .setIconColor(R.color.brand_color)
                .setTitle(R.string.brand_name)
                .setDescription(R.string.brand_description)
                .setReviewQuestion(R.string.customer_review_question)
                .setPositiveFeedbackText(R.string.positive_feedback_text)
                .setNegativeFeedbackText(R.string.negative_feedback_text)
                .setAmbiguityFeedbackText(R.string.ambiguity_feedback_text)
                .setOnReviewClickListener(new FeedBackActionsListeners() {
                    @Override
                    public void onPositiveFeedback(FeedBackDialog dialog) {
                        Log.d(LOG_TAG,"positive feedback callback");
                        dialog.dismiss();
                    }

                    @Override
                    public void onNegativeFeedback(FeedBackDialog dialog) {
                        Log.d(LOG_TAG,"negative feedback callback");
                        dialog.dismiss();
                    }

                    @Override
                    public void onAmbiguityFeedback(FeedBackDialog dialog) {
                        Log.d(LOG_TAG,"ambiguity feedback callback");
                        dialog.dismiss();
                    }

                    @Override
                    public void onCancelListener(DialogInterface dialog) {
                        Log.d(LOG_TAG,"feedback dialog cancel listener callback");
                        dialog.dismiss();
                    }
                })
                .show();  // Finally don't forget to call show()

Feedback Dialog API

You can check below some of the exposed API methods to control the Dialog apperance and actions. Hereby I'll try to maintain backward compatibility for Minor version and patch version and probably breaking changes in Major version changes ( refer semver )

  1. setIcon(@DrawableRes int mIcon) - set Drawable Image at top of the Dialog as Icon.
  2. setTitle(@StringRes int mTitle) - set Title or Brand Name for the Feedback Dialog
  3. setDescription(@StringRes int mDescription) - set Description or Additional text for Feedback Dialog
  4. setPositiveFeedbackText(@StringRes int mPositiveFeedbackText) - set Positive Feedback button text
  5. setNegativeFeedbackText(@StringRes int mNegativeFeedbackText) - set Negative Feedback button text
  6. setAmbiguityFeedbackText(@StringRes int mAmbiguityFeedbackText - set Ambiguity Feedback button text
  7. setPositiveFeedbackIcon(@DrawableRes int mPositiveFeedbackIcon) - set Positive Feedback button Icon as drawable resource
  8. setNegativeFeedbackIcon(@DrawableRes int mNegativeFeedbackIcon) - set Negative Feedback button Icon as drawable resource
  9. setAmbiguityFeedbackIcon(@DrawableRes int mAmbiguityFeedbackIcon) - set Ambiguity Feedback button Icon as drawable resource
  10. setBackgroundColor(@ColorRes int mBackgroundColor) - set Feedback Dialog background color
  11. setIconColor(@ColorRes int mIconColor) - set Title and Action Icon colors
  12. setReviewQuestion(int mReviewQuestion) - set Questionable message to end-user which is shown in Dialog
  13. setOnReviewClickListener(FeedBackActionsListeners reviewActionsListeners) - set Feedback Action listeners which implements action listeners callback.
  14. dismiss() - dismiss the active Feedback Dialog

API's which are added or removed will be updated in the above list. If possible, there will be seperate documentation site with examples in upcoming revisions.

RoadMap

  • Animating Popup style for dialog Icon and adding shadow to it.
  • Swipe left for next review similar to Google Maps reviews.
  • Animating Feedback dialog while opening and closing.

Inspiration

As Active Google Maps reviewer, usually I would answer review questions via Google Maps for Android. They have similar but better dialog to collect information and facts about the places with lot of animations like swipe, popup. Inspired from those user interface just thought to develop a component for collecting feedback without filling-up huge forms or monotonous UI.

Contribution and Issues

We love contributions from everyone. By participating in this project, you agree to abide by the thoughtbot code of conduct.

We expect everyone to follow the code of conduct anywhere in thoughtbot's project codebases, issue trackers, chatrooms, and mailing lists.

Contributing Code

Make your change, with new passing tests. Follow the style guide.

Push to your fork. Write a good commit message. Submit a pull request.

Others will give constructive feedback. This is a time for discussion and improvements, and making the necessary changes will be required before we can merge the contribution.

License

Apache-2.0

More Repositories

1

materialsteppers

Material Design Stepper Library for Android
Java
101
star
2

code-pathfinder

Code Pathfinder, the open-source alternative to GitHub CodeQL. Built for advanced structural search, derive insights, find vulnerabilities in code.
Go
33
star
3

android

My leanings with Android Udacity
Java
10
star
4

app-indexing

App Indexing API - Google Developers Sample
Java
8
star
5

cc150

my workouts on "Cracking the coding interview 189 programming interview questions and solutions"
C
8
star
6

App-invites

App invites - Facebook Developers.App Invites are a rich and personal way for people to invite their Facebook friends to a mobile app.Example repo For Android App Project build with Android Studio.
Java
7
star
7

instamojo-webhook

instamojo webhook handling and verification library for Express js Middleware
JavaScript
5
star
8

material-tab-layout

Material Design Tab Layout with Recyclerview in Fragments - Android Support Library Example
Java
4
star
9

bottom-navigation-drawer

Bottom Navigation Drawer Android design support library Sample Tutorial
Java
3
star
10

P4-Build-it-Bigger

P4 : Udacity Project - Build It Bigger - Added Paid and Free Flavors with Admob Integration
Java
3
star
11

waterloo-grt-live-map

GRT Bus and LRT Service Live Map Feed via Protobuf
JavaScript
2
star
12

phonegap-flashlight-app

πŸ”¦ Flashlight App made with Phonegap πŸ”¦
Java
2
star
13

web-programming-lab

Web programming Lab Workouts
HTML
2
star
14

bottomsheets-android-materialdesign-support-library-tutorial

Android Bottom Sheet Example - Android Support Library Tutorial - i-visionblog
Java
2
star
15

assembly_primer

Assembly
1
star
16

p5-make-your-app-material

Project P5 : Make your App Material - Material Design Guidelines
Java
1
star
17

waf

1
star
18

nextcloud-android

Java
1
star
19

wearable-codelab

Android wearable Google Codelab practice exercise
Java
1
star
20

json-flattening

Python
1
star
21

irccloud-android

Java
1
star
22

cs50

my learnings and project with CS50 - I regret that i should've took this course in my first year of UG.Anyways i'm really blessed to have such wonderful lecture from David.J.melan from Harvard University.
C
1
star
23

android-loaders

Android Loaders Component Example
Java
1
star
24

firebase-chat-app-realtime

Firebase Realtime Chat Application for Android
Java
1
star
25

DEVAA-TestCaseDriver

Java
1
star
26

sourcegraph-cody-gateway-cli

Sourcegraph Cody Gateway CLI App
Go
1
star
27

go-ubiquitous

udacity p6 - Develop Watch face for wearable
Java
1
star
28

Simple-Calculator

Simple Calculator Application written to play on UnitTest.
Java
1
star
29

android-demo

Android App Demo
Java
1
star
30

algorithmic-toolbox

My workouts on Algorithmic Toolbox Course by University of California, San Diego - Coursera
C++
1
star
31

sampledemoapp

Java
1
star
32

stepperTest

This is PlayGround and experimenting new steppers component for Android - Material Design - Join with me to Develop awesome library which will be useful for community.
Java
1
star