Unable to start activity:UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView

what should i do??? Correct your code. UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView A subclass of AdapterView like a ListView can’t have children manually added either in the layout file or added in code. So if you have this in one of your layouts: <ListView // .. other attributes> <// other views <– … Read more

gridView with different cells sizes, pinterest style

Is it a bit late to answer? check this library from etsy. it looks very promising. https://github.com/etsy/AndroidStaggeredGrid I think it is newer version of https://github.com/maurycyw/StaggeredGridView . Updated. Try using RecyclerView StaggeredGridLayoutManager from google instead RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view); recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)); recyclerView.setItemAnimator(new DefaultItemAnimator()); recyclerView.setAdapter(adapter);