Accounts AutoComplete

An M-compatible custom AutoCompleteTextView that shows the user's Google accounts as autocomplete suggestions.

License

License

Categories

Categories

Auto Application Layer Libs Code Generators Doma Data ORM
GroupId

GroupId

au.com.domain
ArtifactId

ArtifactId

accounts-autocomplete
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

Accounts AutoComplete
An M-compatible custom AutoCompleteTextView that shows the user's Google accounts as autocomplete suggestions.
Project URL

Project URL

https://github.com/DomainGroupOSS/accounts-autocomplete
Source Code Management

Source Code Management

https://github.com/DomainGroupOSS/accounts-autocomplete

Download accounts-autocomplete

How to add to project

<!-- https://jarcasting.com/artifacts/au.com.domain/accounts-autocomplete/ -->
<dependency>
    <groupId>au.com.domain</groupId>
    <artifactId>accounts-autocomplete</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/au.com.domain/accounts-autocomplete/
implementation 'au.com.domain:accounts-autocomplete:1.0.0'
// https://jarcasting.com/artifacts/au.com.domain/accounts-autocomplete/
implementation ("au.com.domain:accounts-autocomplete:1.0.0")
'au.com.domain:accounts-autocomplete:aar:1.0.0'
<dependency org="au.com.domain" name="accounts-autocomplete" rev="1.0.0">
  <artifact name="accounts-autocomplete" type="aar" />
</dependency>
@Grapes(
@Grab(group='au.com.domain', module='accounts-autocomplete', version='1.0.0')
)
libraryDependencies += "au.com.domain" % "accounts-autocomplete" % "1.0.0"
[au.com.domain/accounts-autocomplete "1.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 24.1.1
com.android.support » design jar 24.1.1
com.google.android.gms » play-services-auth jar 9.2.1

Project Modules

There are no modules declared in this project.

accounts-autocomplete

An M-compatible custom AutoCompleteTextView that shows the user's Google accounts as autocomplete suggestions.

This widget is based on the GMail behaviour of subtly asking for permissions for autcompleting email addresses.

Before permission is granted:
Allow Suggestions

After permission is granted:
With Suggestions

Usage

compile 'au.com.domain:accounts-autocomplete:1.0.0'

Drop in au.com.domain.AccountsAutoCompleteTextView in your layout:

<au.com.domain.AccountsAutoCompleteTextView
        android:id="@+id/accounts_autocomplete"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

and set it up in the Activity:

mAccountsAutoCompleteTextView.setParentActivity(this);

or Fragment:

mAccountsAutoCompleteTextView.setParentFragment(this);

You would then need to override the onRequestPermissionsResult callback:

@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    mAccountsAutoCompleteTextView.onPermissionResponse(requestCode, permissions, grantResults);
}
au.com.domain

Domain Group OSS

Versions

Version
1.0.0