Skip to content

Instantly share code, notes, and snippets.

@ashishrawat2911
Last active August 26, 2018 12:55
Show Gist options
  • Save ashishrawat2911/0d7845cd395908e31e5d7a96fb4145e0 to your computer and use it in GitHub Desktop.
Save ashishrawat2911/0d7845cd395908e31e5d7a96fb4145e0 to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
RecyclerView recyclerView;
PhotographerAdapter adapter;
List<Photographer> photographersList;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
recyclerView = findViewById(R.id.recyclerview);
recyclerView.setHasFixedSize(true);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment