Categories
Mastering Development

load more stuck at loading view – recycler view

I’m trying to implement the logic of load more in recycler view from here it works well with me showing/hiding the loading indicator, but, when last load more list is empty (size = 0 ) It doesn’t work and stuck at loading because the notifyItemRangeInserted not work as the size is zero. so can anyone […]

Categories
Mastering Development

How can I get all the data FirebaseRecylerAdapter android studio realtime database

I’m using the Firebase Realtime Database with Android Studio. Code java. I use a real-time database. I try to bring all the posts of the people the user is following. but i can’t bring all the posts . Only the last posts sent by users is coming I have this database: Post class : public […]

Categories
Development

Where do lifecycle methods, and other methods, get their parameter values?

In the following Android lifecycle method: @Override public View onCreateView( LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = super.onCreateView(inflater, container, savedInstanceState); … return view; } onCreateView takes in a ‍‍‍‍‍‍‍‍‍‍LayoutInflater, @Nullable Viewgroup, and a @Nullable Bundle. The issue I have is in the sample program I am referring to: sceneform-android-sdk There […]

Categories
Development

Access AutoComplete inside Fragment of Tab Layout

Following is my onCreate code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i(TAG, “Inside Base Drawer…”); mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager()); // Set up the ViewPager with the sections adapter. mViewPager = (ViewPager) findViewById(R.id.container); mViewPager.setAdapter(mSectionsPagerAdapter); TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout); mViewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout)); tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(mViewPager){ @Override public void onTabSelected(TabLayout.Tab tab){ tabPosition = tab.getPosition(); } }); } And following […]

Categories
Development

how do i make a recyclerview with data from firebase clickable with an intent

i am trying to write a code where data from firebase can be populated in recyclerview and also make it clickable so that it can pass the clicked data to a different activity anytime it is clicked package com.example.helpresponse; import android.app.ProgressDialog; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.View; import android.widget.AdapterView; […]

Categories
Development

I want to delete specific data from ‘SQLITE-DATABASE’ but it is noT working

i hope you will be all fine.. i have a problem in sqlite databasse in android i want to delete specifci data from sqlite databse through cardview in android but it is not working when i uninsatll the app and again install it in mobile first time the data hase been removed but after that […]

Categories
Development

Is it possible to fetch Array of Double values inside listView by using retrofit?

I have exchange rates api (https://api.exchangeratesapi.io/latest?base=USD) which has a array of double values for different currency,i have also BaseAdapter for listView and i want to fetch this data in a listView and save the timestamp of the last request somewhere. and i want it to look like this: Example: DKK 6.74 HUF 299.56 …. This […]

Categories
Development

How to implement parent-child Recyclerview on Android

can you give me some reference about parent-child recycleview? i have successfully made parent-Recycleview but i’m stuck to pass child-Recycleview when im clicked item from parent NB: i’m use dummy data This is example of recyclerview I want to create: and this is my code RecycleParentAdapter.java public class RecycleParentMenuAdapter extends RecyclerView.Adapter<RecycleParentMenuAdapter.ViewHolder>{ private ArrayList<Store> mData; private […]

Categories
Development

Android Studio RecyclerView: No adapter attached; skipping layout

Help the problem is that when running the application nothing appears in my recyclerview, only error android studio : E/RecyclerView: No adapter attached; skipping layout Salon ListActivity public class SalonListActivity extends AppCompatActivity implements IOnLoadCountSalon, IBranchLoadListener { IOnLoadCountSalon iOnLoadCountSalon; IBranchLoadListener iBranchLoadListener; AlertDialog dialog; @BindView(R.id.txt_salon_count) TextView txt_salon_count; @BindView(R.id.recycler_salon) RecyclerView recycler_salon; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); […]

Categories
Android Development

Error “ArrayListfound: Object” in Android Studio 3.5

Am new but I need help about this error in Android Studio 3.5: protected void publishResults (CharSequence charSequence, FilterResults filterResults) { adapter.setSpacecrafts((ArrayList) filterResults.values); adapter.refresh(); } ERROR: [unchecked] unchecked castrequired: ArrayListfound object [unchecked] unchecked cast required: ArrayList found: Object Complete Code: package info.camposha.retrofitclientsidesearch; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.SearchView; import android.view.LayoutInflater; import […]