bathlaha.blogg.se

Inflating listview android studio
Inflating listview android studio









inflating listview android studio

If you are using support library then you can change the actionbar drawable as ((YourParentActivity which has this fragment)(getActivity())).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#1b1b1b"))) Į.g ((MainActivity)(getActivity())).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#1b1b1b"))) Make sure that you have a listview defined in your layout fragment_movies which has id as getActionBar thing you will do in the activity which has this fragment.

inflating listview android studio

Then use this view to make use of layout elements as view.findViewById() instead of findViewById() and then finally at the end return this view Firstly from your oncreateview() you are returning your view so, instead use View view=inflater.inflate(R.agment_movies, container, false)











Inflating listview android studio