Skip to content

Instantly share code, notes, and snippets.

View SUNITECH19's full-sized avatar
🤩
I may be slow to respond.

Shailendra Lodhi SUNITECH19

🤩
I may be slow to respond.
View GitHub Profile
@SUNITECH19
SUNITECH19 / ActivityWelcome.java
Last active February 23, 2021 10:15
Check Internet Connection Using BroadcastReceiver
// Activity : Where you need to impement ConnectionListener
public class ActivityWelcome extends AppCompatActivity implements ConnectionListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);
// Call
@SUNITECH19
SUNITECH19 / LoadMoreItems.java
Created February 1, 2021 09:06
Android : How to Add dialog to load more items in recycler view in android .
// You Can Copy and paste this code in your fragment or activity...
// Here I've paste code from my project, Do change whatever you want.
// recyclerViewBookingList -> recyclerView
// getCurrentListRef() : return a list...
//
private boolean isLoading = false;
private void initScrollListener() {
@SUNITECH19
SUNITECH19 / custom_progress_icon.xml
Last active February 1, 2021 08:59
Android : How to create Custom Circular Progress bar in android.
<?xml version="1.0" encoding="utf-8"?>
<!--use rotate tag to rotate the drawable-->
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360">
<!--shape tag is used to