firebaseui

Cast Error with FirebaseRecyclerViewAdapter

血红的双手。 提交于 2019-12-24 05:07:05
问题 So I have a RecycleView that I'm to fill with a FirebaseRecyclerViewAdapter. I'm following this example: https://github.com/firebase/firebaseui-android#using-a-recyclerview I'm getting a strange error, though: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.view.ViewGroup This is what I have in onCreateView: RecyclerView recycler = (RecyclerView) mView.findViewById(R.id.rvTasks); recycler.setLayoutManager(new LinearLayoutManager(getActivity(

Trying to display users information in a recyclerview - Firebase

痴心易碎 提交于 2019-12-24 04:54:10
问题 My app is using Firebase. The user can register and login. In the main activity, there is a menu option called All Users . All I want for now is to display the registered users in a recyclerview. Of course this means that I will have to query the database using mUsersDatabase = FirebaseDatabase.getInstance().getReference().child("Users"); If I put a breakpoint in this line, I can read the users. That's no problem. Next, I use this page to implement the FirebaseRecyclerAdapter The full code is

Loading Images with Glide and FirebaseUI in newest Firebase Version (10.2.4)

╄→尐↘猪︶ㄣ 提交于 2019-12-23 18:13:46
问题 So I updated firebase to the newest version (10.2.4) alongside playservices, and suddenly all the images in my app loaded with Glide are no longer loading. If I have this in my build.gradle ext { supportLibraryVersion = '25.3.1' firebaseLibraryVersion = '10.2.1' playServicesLibraryVersion = '10.2.1' } dependencies { // play services compile "com.google.android.gms:play-services-places:$playServicesLibraryVersion" compile "com.google.android.gms:play-services-auth:$playServicesLibraryVersion"

How to set the orientation to portrait in firebase UI in Android

女生的网名这么多〃 提交于 2019-12-23 16:22:19
问题 I am using firebase UI for authentication, In case of ioS the orientation is not an issue, In case of android if the screen orientation of phone is auto rotated, the firebase UI will also get rotated. I have set the application orientation to portrait in manifest I have also added code to make my activity portrait in my class. Setting a custom UI to the Firebase UI with style <style name="FirebaseLoginTheme" parent="FirebaseUI"> <item name="android:screenOrientation">portrait</item> <item

Firebase UI login with Google is failing due to 12500(SIGN_IN_FAILED) error code

断了今生、忘了曾经 提交于 2019-12-23 15:50:35
问题 I am using Firebase UI to provide login for my app. When i try to login with Google it is giving error message com.firebase.ui.auth.FirebaseUiException: Code: 12500, message: 12500 . But i when try to integrate google login directly it is working fine. I Couldn't find the way to resolve this issue. Error code description in google document The sign in attempt didn't succeed with the current account. Unlike SIGN_IN_REQUIRED. when seeing this error code, there is nothing user can do to recover

No setter/field for while trying to populate a listview on firebase

走远了吗. 提交于 2019-12-23 09:58:52
问题 I am trying to retrieve data from firebase and display it on my listview using firebase-ui. The code runs fine but nothing is displayed on the list view. This is what I get from my logs: W/ClassMapper: No setter/field for -KNRXdDOlA9nV6qxXvOl found on class com.example.sammie.coreteccontacts.Sacco Here is my FirebaselistAdapter DatabaseReference mDatabaseReference = FirebaseDatabase.getInstance().getReference(); FirebaseListAdapter<Sacco> adapter = new FirebaseListAdapter<Sacco>(getActivity()

How to exclude item from a FirebaseRecyclerAdapter

你离开我真会死。 提交于 2019-12-23 08:25:00
问题 I have this code in my populateViewHolder : public void populateViewHolder(final CampaignHolder viewHolder, final Campaign campaign, final int position) { String k = getRef(position).getKey(); ref.child(k).child("users").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if (!dataSnapshot.hasChild(getUid())) { //Something... } } @Override public void onCancelled(DatabaseError databaseError) { } }); //...Populating the

How to exclude item from a FirebaseRecyclerAdapter

痞子三分冷 提交于 2019-12-23 08:23:30
问题 I have this code in my populateViewHolder : public void populateViewHolder(final CampaignHolder viewHolder, final Campaign campaign, final int position) { String k = getRef(position).getKey(); ref.child(k).child("users").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if (!dataSnapshot.hasChild(getUid())) { //Something... } } @Override public void onCancelled(DatabaseError databaseError) { } }); //...Populating the

How to exclude item from a FirebaseRecyclerAdapter

我的梦境 提交于 2019-12-23 08:22:03
问题 I have this code in my populateViewHolder : public void populateViewHolder(final CampaignHolder viewHolder, final Campaign campaign, final int position) { String k = getRef(position).getKey(); ref.child(k).child("users").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if (!dataSnapshot.hasChild(getUid())) { //Something... } } @Override public void onCancelled(DatabaseError databaseError) { } }); //...Populating the

Firebase RecylcerView Adapter Not Getting Accurate View Position

不打扰是莪最后的温柔 提交于 2019-12-23 05:34:09
问题 I am using the Firebase UI and am experiencing a unique issue. When I load the RecyclerView, there are no issues. I click an item on the RecyclerView and get the .push() value of the item that was clicked. It then takes data from that Firebase .push() value, which is stored in the Firebase database, and sends it to another activity. See images below: The second image is the activity that receives data via an intent. When I click back to the RecyclerView, I click "8" again and I am loading a