Description
A simple library that can connect your autocomplete edittext to Google's places api
Google Places AutoComplete EditText alternatives and similar packages
Based on the "Kotlin" category.
Alternatively, view Google Places AutoComplete EditText alternatives based on common mentions on social networks and blogs.
-
CalendarView
A highly customizable calendar view and compose library for Android and Kotlin Multiplatform. -
Balloon
:balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android. -
kotlin-android-template
Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = โค๏ธ -
NotyKT ๐๏ธ
๐ NotyKT is a complete ๐Kotlin-stack (Backend + Android) ๐ฑ application built to demonstrate the use of Modern development tools with best practices implementation๐ฆธ. -
Material Chip View
Material Chip view. Can be used as tags for categories, contacts or creating text clouds -
DrawableToolbox
๐ ๏ธ The missing drawable toolbox for Android. Create drawables programmatically and get rid of the boring and always repeated drawable.xml files. -
Navigation Toolbar for Android
:octocat: Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion -
Pdf Viewer For Android
A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space. -
Capturable
๐Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image๐ผ๏ธ -
Pluto Debug Framework
Android Pluto is a on-device debugging framework for Android applications, which helps intercept Network calls, capture Crashes & ANRs, manipulate application data on-the-go, and much more. -
SSComposeCookBook
A Collection of major Jetpack compose UI components which are commonly used.๐๐๐ -
Carousel Recyclerview
Carousel Recyclerview let's you create carousel layout with the power of recyclerview by creating custom layout manager. -
CrunchyCalendar โ awesome calendar widget for android apps
5.4 0.0 Google Places AutoComplete EditText VS CrunchyCalendar โ awesome calendar widget for android appsA beautiful material calendar with endless scroll, range selection and a lot more! -
Permission Flow for Android
Know about real-time state of a Android app Permissions with Kotlin Flow APIs. -
SSCustomBottomNavigation
Animated TabBar with native control and Jetpack Navigation support..โจ๐๐ -
Only
:bouquet: An easy way to persist and run code block only as many times as necessary on Android. -
Nextflix-Composable
Includes jetpack compose, navigation, paging, hilt, retrofit, coil, coroutines, flow.. -
EasyPermissions-ktx
๐ Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher. -
Compose Compiler Reports to HTML Generator
A utility (Gradle Plugin + CLI) to convert Jetpack Compose compiler metrics and reports to beautified HTML page. -
FlowMVI
A Kotlin Multiplatform MVI library based on coroutines with a rich DSL and a powerful plugin system. -
Events Calendar
Events Calendar is a user-friendly library that helps you achieve a cool Calendar UI with events mapping. You can customise every pixel of the calendar as per your wish and still achieve in implementing all the functionalities of the native android calendar in addition with adding dots to the calendar which represents the presence of an event on the respective dates. It can be done easily, you are just a few steps away from implementing your own badass looking Calendar for your very own project! -
MidJourney Images Compose Multiplatform Mobile Application
3.7 9.3 Google Places AutoComplete EditText VS MidJourney Images Compose Multiplatform Mobile ApplicationThis application is developed to display the images created by MidJourney. The application is developed with Compose Multiplatform and works on many platforms including Android and iOS platforms. -
SSCustomEditTextOutLineBorder
Same as the Outlined text fields presented on the Material Design page but with some dynamic changes. ๐ ๐ -
Bytemask
Android Gradle Plugin that masks secret strings for the app in the source code making it difficult to extract from reverse engineering.
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of Google Places AutoComplete EditText or a related project?
README
Google Places AutoComplete EditText A simple library that can connect your autocomplete edittext to Google's places api
Supporting Places AutoComplete EditText
Google Places AutoComplete EditText is an independent project with ongoing development and support made possible thanks to donations made by [these awesome backers](BACKERS.md#sponsors). If you'd like to join them, please consider:
How to integrate into your app?
Integrating the project is simple a refined all you need to do is follow the below steps
Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.mukeshsolanki:Google-Places-AutoComplete-EditText:<latest-version>'
}
How to use the library?
Okay seems like you integrated the library in your project but how do you use it? Well its really easy just add the following to your xml design
.....
<AutoCompleteTextView
android:id="@+id/autoCompleteEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
.....
To connect the AutoCompleteTextView to the places api create a PlaceApi object and attach it to the AutoCompleteTextView like-wise
val placesApi = PlaceAPI.Builder().apiKey("YOUR_API_KEY").build(this@MainActivity)
autoCompleteEditText.setAdapter(PlacesAutoCompleteAdapter(this, placesApi))
That's pretty much it and your all wrapped up. You have successfully connected the Places Api to the AutoCompleteTextView.
Getting details of place
To get the selected address simply set an ItemClickListener
autoCompleteEditText.onItemClickListener =
AdapterView.OnItemClickListener { parent, _, position, _ ->
val place = parent.getItemAtPosition(position) as Place
autoCompleteEditText.setText(place.description)
}
To get the details of the place selected you can set a listener to get the details
placesApi.fetchPlaceDetails("placeId", object : OnPlacesDetailsListener {
override fun onError(errorMessage: String) {
Toast.makeText(this@MainActivity, errorMessage, Toast.LENGTH_SHORT).show()
}
override fun onPlaceDetailsFetched(placeDetails: PlaceDetails) {
//TODO do anything with placeDetails object
}
})
Places details you can get
Details | Value |
---|---|
id | get the record id (not to be confused with the place id) |
name | gets the name of the place |
address | gets a list of different address types like street number, route, locality, country, postal code |
lat | gets the latitude of the place |
lng | gets the longitude of the place |
place id | gets the id of the place |
url | gets the maps url of the place |
utc offset | gets the utc offset of the place |
vicinity | gets the vicinity of the place |
compound plus code | gets the expanded Google plus code |
global plus code | gets the shortened Google plus code |
Author
Maintained by Mukesh Solanki
Contribution
- Bug reports and pull requests are welcome.
- Make sure you use square/java-code-styles to format your code.
License
MIT License
Copyright (c) 2019 Mukesh Solanki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*Note that all licence references and agreements mentioned in the Google Places AutoComplete EditText README section above
are relevant to that project's source code only.