Created
December 24, 2017 13:53
-
-
Save hkakutalua/ef1c70e7935f50e3f64e817acc10a210 to your computer and use it in GitHub Desktop.
Initial version of PopularMoviesActivity
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
public class PopularMoviesActivity extends AppCompatActivity { | |
RecyclerView mPopularMoviesRecyclerView; | |
ProgressBar mMoviesLoadProgressBar; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_popular_movies); | |
mPopularMoviesRecyclerView = findViewById(R.id.recycler_view_popular_movies); | |
mMoviesLoadProgressBar = findViewById(R.id.progress_movies_load); | |
LinearLayoutManager linearLayoutManager = new LinearLayoutManager( | |
this, | |
LinearLayoutManager.VERTICAL, | |
false); | |
PopularMoviesAdapter popularMoviesAdapter = new PopularMoviesAdapter(this); | |
mPopularMoviesRecyclerView.setLayoutManager(linearLayoutManager); | |
mPopularMoviesRecyclerView.setAdapter(popularMoviesAdapter); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment