Hello i have some problem with implementation of AssymetricGridView it still crashing but i dont know what is wrong how to implement it correctly with my adapter there is error Link to AssymetricGridView library. Thank you
Adapter must be an instance of AsymmetricGridViewAdapter
at com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView.setAdapter(AsymmetricGridView.java:71)
at com.gabriel.movies.fragment.MainFragment.render(MainFragment.java:140)
at com.gabriel.movies.fragment.MainFragment$MyTask.onPostExecute(MainFragment.java:228)
at com.gabriel.movies.fragment.MainFragment$MyTask.onPostExecute(MainFragment.java:161)
My code
Hello i have some problem with implementation of AssymetricGridView it still crashing but i dont know what is wrong how to implement it correctly with my adapter there is error Link to AssymetricGridView library. Thank you
Adapter must be an instance of AsymmetricGridViewAdapter at com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView.setAdapter(AsymmetricGridView.java:71) at com.gabriel.movies.fragment.MainFragment.render(MainFragment.java:140) at com.gabriel.movies.fragment.MainFragment$MyTask.onPostExecute(MainFragment.java:228) at com.gabriel.movies.fragment.MainFragment$MyTask.onPostExecute(MainFragment.java:161) My code
<com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gridView1" android:layout_width="match_parent" android:layout_height="match_parent" />
AsymmetricGridView gridview; List list;
AdapterCategory adapter;
and adapter code
public class AdapterCategory extends ArrayAdapter {
ItemCategory object;
private Activity activity;
private List item;
private int row;