Created
April 8, 2019 12:56
-
-
Save PatilShreyas/3e575e22b3480ee2c0559ae0ec1ef5e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
mSwipeRefreshLayout = findViewById(R.id.swipe_refresh_layout); | |
//Initialize RecyclerView | |
mRecyclerView = findViewById(R.id.recycler_view); | |
mRecyclerView.setHasFixedSize(true); | |
LinearLayoutManager mManager = new LinearLayoutManager(this); | |
mRecyclerView.setLayoutManager(mManager); | |
//Initialize Database | |
mDatabase = FirebaseDatabase.getInstance().getReference().child("posts"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment