firebaseui

How to be notified when FirebaseListAdapter finishes?

可紊 提交于 2019-12-19 04:40:09
问题 I'm using the FirebaseListAdapter and I need to display a ProgressDialog, but I don't know how to know when it finishes loading. public class TabFragment1 extends ListFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.tab_fragment_1, container, false); ListView eventosView = (ListView) rootView.findViewById(android.R.id.list); Firebase ref = new Firebase(//myappurl); Firebase

Android Firebase chat RecyclerView auto scroll to bottom when new item is added

佐手、 提交于 2019-12-18 05:03:41
问题 im developing an android chat using firebase. i tried to research about this problem but i cant find a good solutions. hope someone can help me. my problem i want the RecyclerView to auto scroll if new item is added. here is my code. @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ View rootView = inflater.inflate(R.layout.chatlayoutchat, container, false); Connectivity connectivity=new Connectivity(); if(connectivity

FireStorePagingAdapter not receiving realtime updates

时光总嘲笑我的痴心妄想 提交于 2019-12-17 16:54:36
问题 I am testing FirestorePagingAdapter from https://github.com/firebase/FirebaseUI-Android/tree/version-3.4.0-dev The problem is, I'm not receiving update / change / delete events (when items do change). What can I be missing that everything works perfect, but I just don't receive the realtime events? 回答1: What you're seeing is the expected behavior. The FirestorePagingAdapter in the FirebaseUI library is designed to get data, not to listen for realtime updates. 来源: https://stackoverflow.com

How do I setup FirebaseAdapter in Android Studio?

久未见 提交于 2019-12-17 16:53:40
问题 I am trying to read data in real time from Firebase into a custom ArrayAdapter. From my research, it looks like FirebaseListAdapter has built in functionality to handle this. However, I am unable to get my code to recognize the FirebaseListAdapter class. How do I get the FirebaseListAdapter to work? Gradle File apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.example.quizzingcompanion" minSdkVersion 15

Retrieving the Firebase key from onItemClick in FirebaseListAdapter

隐身守侯 提交于 2019-12-17 10:06:29
问题 I have a Firebase DB which I'm using the push() method to add entries to DB, thus generating the random key as a reference for each entry. In part of the application I'm using a FirebaseListAdapter to populate some DB entries into a list view. Then I'm implementing setOnItemClickListener on my list. What I want to do here is to return the reference for each entry I click on. //Firebase DB setup mDatabaseStolen = FirebaseDatabase.getInstance().getReference().child(testing); myListView

firebaserecycleradapter() cannot be applied to FirebaseRecyclerAdapter

好久不见. 提交于 2019-12-17 02:37:58
问题 Can someone please tell what's the error in that specific line. Here is the error message showing. package com.example.souravkumar.sqaurewallpapers; import android.os.Bundle; import android.os.PersistableBundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView;

Firebase List Adapter Constructor error

纵然是瞬间 提交于 2019-12-17 02:32:07
问题 I created a function to display a chat message, I followed a tutorial, and I also looked at the documentation for the Firebase list adapter, but no matter what I do, I get this error: Error:(98, 19) error: constructor FirebaseListAdapter in class FirebaseListAdapter<T> cannot be applied to given types; required: FirebaseListOptions<ChatMessage> found: Chat,Class<ChatMessage>,int,DatabaseReference reason: actual and formal argument lists differ in length where T is a type-variable: T extends

How to notify FirestorePagingAdapter?

这一生的挚爱 提交于 2019-12-14 04:10:33
问题 I am using FirestorePagingAdapter for showing data from Firestore and paginate the data. I want to refresh the adapter with new data when Firestore changes . notifyDataSetChanged() is not working when ever I want to notify data .currently I am calling this : public void setPaging(Query query) { FirestorePagingOptions<AddFabricModel> options = new FirestorePagingOptions.Builder<AddFabricModel>() .setLifecycleOwner(this) .setQuery(query, config, AddFabricModel.class) .build(); adapter=new

Firebase : RecyclerView: No adapter attached; skipping layout

烈酒焚心 提交于 2019-12-14 03:21:32
问题 I just started out with Firebase and its been great so far. However, when I try to hook my data in a card view using Firebase UI and Firebase RecyclerAdapter, I get the following error on my log cat which says $ E/RecyclerView: No adapter attached; skipping layout This is my MainActivity.java package helloworld.firebase.com.helloworld; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import

Getitem method in firestore recycler adapter returning null

梦想与她 提交于 2019-12-14 02:24:07
问题 This is the error i get: FATAL EXCEPTION: main Process: neoncore.com.onepiece, PID: 19429 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])' on a null object reference at com.google.android.gms.internal.zzevb$zza.zza(Unknown Source) at com.google.android.gms.internal.zzevb.zza(Unknown Source) at com.google.android.gms.internal.zzevb.zza(Unknown Source) at com.google.firebase.firestore