Posts

Showing posts with the label google-maps

Implement a search bar like Google Maps' in an Android application

Image
Implement a search bar like Google Maps' in an Android application I'm building an app that makes use of Google Maps API, and I want it to have a floating search bar at the top, exactly like the one present in Google Maps app. I've found out about Places Autocomplete, but the application will not search for places but another kind of data that the users will have created. I've also found out about a library named Float Search View, but it's been discontinued for some time already, therefore I'd like to pass on this. I'd also like to create it manually because this is the first Android app I'll be building, I want to learn. I have tried implementing a SearchView in my XML: SearchView <android.support.v7.widget.SearchView android:id="@+id/searchView" android:layout_width="match_parent" android:layout_height="wrap_content" app:iconifiedByDefault="false" app:queryHint="@string/search_hint...

read data firebase and display on ListView [on hold]

read data firebase and display on ListView [on hold] MY Database (Firebase) Can You Help Me Fix This ? I tried it but it does not appear in List view, is there Something wrong ? Help Me. im Stack in here ............................................................................................................................................................................................................................................................................................................................................................................................... package com.tracking.rahadiansyah.tracking; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import com.google.firebase.database.ChildEventListener; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.Dat...