android:RecyclerView set adapter











up vote
0
down vote

favorite












i am new to android,i want to create a list with recyclerview.
i have recycler view in my code and when i run it give me force close,
and i know my problem is on set adapter -> RecyclerviewAdapter
because when i comment recyclerview.setAdapter(mAdapte);
my app work fine



code of Market.class :



public class Market extends AppCompatActivity {


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_market);


// 1. get a reference to recyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.RView);

// this is data fro recycler view
RecyclerViewDataObject items = {
new RecyclerViewDataObject( "John Weak" , "Goalkeeper" , 99 , 990 ),
new RecyclerViewDataObject( "Mamad Seyed" , "Backward" , 35 , 350 ),
new RecyclerViewDataObject( "Mostafa Barimani" , "Forward" , 65 , 650 ),
new RecyclerViewDataObject( "Reza Dahmarde" , "Backward" , 70 , 700 ),
new RecyclerViewDataObject( "Sina Ashrafpour" , "Forward" , 85 , 850 )
};

recyclerView.setHasFixedSize(true);
// 2. set layoutManger
recyclerView.setLayoutManager(new LinearLayoutManager(Market.this));
// 3. create an adapter
RecyclerViewAdapter mAdapter = new RecyclerViewAdapter(items);
// 4. set adapter
recyclerView.setAdapter(mAdapter);
// 5. set item animator to DefaultAnimator
recyclerView.setItemAnimator(new DefaultItemAnimator());



}


}



code of RecyclerViewAdapter.class :



public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {



private RecyclerViewDataObject items;


public RecyclerViewAdapter(RecyclerViewDataObject dataObjects){
this.items = dataObjects;
}

@Override
public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View itemLayoutView = LayoutInflater.from(parent.getContext())
.inflate(R.layout.recycler_view_item, null);

ViewHolder viewHolder = new ViewHolder(itemLayoutView);
return viewHolder;
}


@Override
public void onBindViewHolder(RecyclerViewAdapter.ViewHolder holder, int position) {

holder.name.setText(items[position].getName());
holder.post.setText(items[position].getPost());
holder.rank.setText(items[position].getRank());
holder.value.setText(items[position].getValue());

}



public static class ViewHolder extends RecyclerView.ViewHolder {

public TextView name;
public TextView rank;
public TextView post;
public TextView value;

public ViewHolder(View itemLayoutView) {

super(itemLayoutView);
name = (TextView) itemLayoutView.findViewById(R.id.txt_name1);
post = (TextView) itemLayoutView.findViewById(R.id.txt_post1);
rank = (TextView) itemLayoutView.findViewById(R.id.txt_rank1);
value = (TextView) itemLayoutView.findViewById(R.id.txt_value1);

}
}


@Override
public int getItemCount() {
return items.length;
}


}



Logcat :



11-15 11:26:24.114 12175-12175/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kikojas, PID: 12175
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5389)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
. . .


enter image description here



enter image description here



if any body knows problem i am so interested to know that










share|improve this question




















  • 1




    can you post the stacktrace? You can find it in the logcat tab in Android Studio
    – Jorge Gil
    Nov 19 at 21:13










  • i add my logcat at the end of my code
    – sajad
    Nov 20 at 16:33










  • but i cant add all of them
    – sajad
    Nov 20 at 16:33










  • because it consists of 262000 character
    – sajad
    Nov 20 at 16:34










  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
    – Dr4ke the b4dass
    Nov 20 at 18:55

















up vote
0
down vote

favorite












i am new to android,i want to create a list with recyclerview.
i have recycler view in my code and when i run it give me force close,
and i know my problem is on set adapter -> RecyclerviewAdapter
because when i comment recyclerview.setAdapter(mAdapte);
my app work fine



code of Market.class :



public class Market extends AppCompatActivity {


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_market);


// 1. get a reference to recyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.RView);

// this is data fro recycler view
RecyclerViewDataObject items = {
new RecyclerViewDataObject( "John Weak" , "Goalkeeper" , 99 , 990 ),
new RecyclerViewDataObject( "Mamad Seyed" , "Backward" , 35 , 350 ),
new RecyclerViewDataObject( "Mostafa Barimani" , "Forward" , 65 , 650 ),
new RecyclerViewDataObject( "Reza Dahmarde" , "Backward" , 70 , 700 ),
new RecyclerViewDataObject( "Sina Ashrafpour" , "Forward" , 85 , 850 )
};

recyclerView.setHasFixedSize(true);
// 2. set layoutManger
recyclerView.setLayoutManager(new LinearLayoutManager(Market.this));
// 3. create an adapter
RecyclerViewAdapter mAdapter = new RecyclerViewAdapter(items);
// 4. set adapter
recyclerView.setAdapter(mAdapter);
// 5. set item animator to DefaultAnimator
recyclerView.setItemAnimator(new DefaultItemAnimator());



}


}



code of RecyclerViewAdapter.class :



public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {



private RecyclerViewDataObject items;


public RecyclerViewAdapter(RecyclerViewDataObject dataObjects){
this.items = dataObjects;
}

@Override
public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View itemLayoutView = LayoutInflater.from(parent.getContext())
.inflate(R.layout.recycler_view_item, null);

ViewHolder viewHolder = new ViewHolder(itemLayoutView);
return viewHolder;
}


@Override
public void onBindViewHolder(RecyclerViewAdapter.ViewHolder holder, int position) {

holder.name.setText(items[position].getName());
holder.post.setText(items[position].getPost());
holder.rank.setText(items[position].getRank());
holder.value.setText(items[position].getValue());

}



public static class ViewHolder extends RecyclerView.ViewHolder {

public TextView name;
public TextView rank;
public TextView post;
public TextView value;

public ViewHolder(View itemLayoutView) {

super(itemLayoutView);
name = (TextView) itemLayoutView.findViewById(R.id.txt_name1);
post = (TextView) itemLayoutView.findViewById(R.id.txt_post1);
rank = (TextView) itemLayoutView.findViewById(R.id.txt_rank1);
value = (TextView) itemLayoutView.findViewById(R.id.txt_value1);

}
}


@Override
public int getItemCount() {
return items.length;
}


}



Logcat :



11-15 11:26:24.114 12175-12175/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kikojas, PID: 12175
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5389)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
. . .


enter image description here



enter image description here



if any body knows problem i am so interested to know that










share|improve this question




















  • 1




    can you post the stacktrace? You can find it in the logcat tab in Android Studio
    – Jorge Gil
    Nov 19 at 21:13










  • i add my logcat at the end of my code
    – sajad
    Nov 20 at 16:33










  • but i cant add all of them
    – sajad
    Nov 20 at 16:33










  • because it consists of 262000 character
    – sajad
    Nov 20 at 16:34










  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
    – Dr4ke the b4dass
    Nov 20 at 18:55















up vote
0
down vote

favorite









up vote
0
down vote

favorite











i am new to android,i want to create a list with recyclerview.
i have recycler view in my code and when i run it give me force close,
and i know my problem is on set adapter -> RecyclerviewAdapter
because when i comment recyclerview.setAdapter(mAdapte);
my app work fine



code of Market.class :



public class Market extends AppCompatActivity {


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_market);


// 1. get a reference to recyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.RView);

// this is data fro recycler view
RecyclerViewDataObject items = {
new RecyclerViewDataObject( "John Weak" , "Goalkeeper" , 99 , 990 ),
new RecyclerViewDataObject( "Mamad Seyed" , "Backward" , 35 , 350 ),
new RecyclerViewDataObject( "Mostafa Barimani" , "Forward" , 65 , 650 ),
new RecyclerViewDataObject( "Reza Dahmarde" , "Backward" , 70 , 700 ),
new RecyclerViewDataObject( "Sina Ashrafpour" , "Forward" , 85 , 850 )
};

recyclerView.setHasFixedSize(true);
// 2. set layoutManger
recyclerView.setLayoutManager(new LinearLayoutManager(Market.this));
// 3. create an adapter
RecyclerViewAdapter mAdapter = new RecyclerViewAdapter(items);
// 4. set adapter
recyclerView.setAdapter(mAdapter);
// 5. set item animator to DefaultAnimator
recyclerView.setItemAnimator(new DefaultItemAnimator());



}


}



code of RecyclerViewAdapter.class :



public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {



private RecyclerViewDataObject items;


public RecyclerViewAdapter(RecyclerViewDataObject dataObjects){
this.items = dataObjects;
}

@Override
public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View itemLayoutView = LayoutInflater.from(parent.getContext())
.inflate(R.layout.recycler_view_item, null);

ViewHolder viewHolder = new ViewHolder(itemLayoutView);
return viewHolder;
}


@Override
public void onBindViewHolder(RecyclerViewAdapter.ViewHolder holder, int position) {

holder.name.setText(items[position].getName());
holder.post.setText(items[position].getPost());
holder.rank.setText(items[position].getRank());
holder.value.setText(items[position].getValue());

}



public static class ViewHolder extends RecyclerView.ViewHolder {

public TextView name;
public TextView rank;
public TextView post;
public TextView value;

public ViewHolder(View itemLayoutView) {

super(itemLayoutView);
name = (TextView) itemLayoutView.findViewById(R.id.txt_name1);
post = (TextView) itemLayoutView.findViewById(R.id.txt_post1);
rank = (TextView) itemLayoutView.findViewById(R.id.txt_rank1);
value = (TextView) itemLayoutView.findViewById(R.id.txt_value1);

}
}


@Override
public int getItemCount() {
return items.length;
}


}



Logcat :



11-15 11:26:24.114 12175-12175/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kikojas, PID: 12175
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5389)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
. . .


enter image description here



enter image description here



if any body knows problem i am so interested to know that










share|improve this question















i am new to android,i want to create a list with recyclerview.
i have recycler view in my code and when i run it give me force close,
and i know my problem is on set adapter -> RecyclerviewAdapter
because when i comment recyclerview.setAdapter(mAdapte);
my app work fine



code of Market.class :



public class Market extends AppCompatActivity {


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_market);


// 1. get a reference to recyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.RView);

// this is data fro recycler view
RecyclerViewDataObject items = {
new RecyclerViewDataObject( "John Weak" , "Goalkeeper" , 99 , 990 ),
new RecyclerViewDataObject( "Mamad Seyed" , "Backward" , 35 , 350 ),
new RecyclerViewDataObject( "Mostafa Barimani" , "Forward" , 65 , 650 ),
new RecyclerViewDataObject( "Reza Dahmarde" , "Backward" , 70 , 700 ),
new RecyclerViewDataObject( "Sina Ashrafpour" , "Forward" , 85 , 850 )
};

recyclerView.setHasFixedSize(true);
// 2. set layoutManger
recyclerView.setLayoutManager(new LinearLayoutManager(Market.this));
// 3. create an adapter
RecyclerViewAdapter mAdapter = new RecyclerViewAdapter(items);
// 4. set adapter
recyclerView.setAdapter(mAdapter);
// 5. set item animator to DefaultAnimator
recyclerView.setItemAnimator(new DefaultItemAnimator());



}


}



code of RecyclerViewAdapter.class :



public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {



private RecyclerViewDataObject items;


public RecyclerViewAdapter(RecyclerViewDataObject dataObjects){
this.items = dataObjects;
}

@Override
public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View itemLayoutView = LayoutInflater.from(parent.getContext())
.inflate(R.layout.recycler_view_item, null);

ViewHolder viewHolder = new ViewHolder(itemLayoutView);
return viewHolder;
}


@Override
public void onBindViewHolder(RecyclerViewAdapter.ViewHolder holder, int position) {

holder.name.setText(items[position].getName());
holder.post.setText(items[position].getPost());
holder.rank.setText(items[position].getRank());
holder.value.setText(items[position].getValue());

}



public static class ViewHolder extends RecyclerView.ViewHolder {

public TextView name;
public TextView rank;
public TextView post;
public TextView value;

public ViewHolder(View itemLayoutView) {

super(itemLayoutView);
name = (TextView) itemLayoutView.findViewById(R.id.txt_name1);
post = (TextView) itemLayoutView.findViewById(R.id.txt_post1);
rank = (TextView) itemLayoutView.findViewById(R.id.txt_rank1);
value = (TextView) itemLayoutView.findViewById(R.id.txt_value1);

}
}


@Override
public int getItemCount() {
return items.length;
}


}



Logcat :



11-15 11:26:24.114 12175-12175/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kikojas, PID: 12175
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5389)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
. . .


enter image description here



enter image description here



if any body knows problem i am so interested to know that







java android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 8:33

























asked Nov 19 at 21:07









sajad

41




41








  • 1




    can you post the stacktrace? You can find it in the logcat tab in Android Studio
    – Jorge Gil
    Nov 19 at 21:13










  • i add my logcat at the end of my code
    – sajad
    Nov 20 at 16:33










  • but i cant add all of them
    – sajad
    Nov 20 at 16:33










  • because it consists of 262000 character
    – sajad
    Nov 20 at 16:34










  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
    – Dr4ke the b4dass
    Nov 20 at 18:55
















  • 1




    can you post the stacktrace? You can find it in the logcat tab in Android Studio
    – Jorge Gil
    Nov 19 at 21:13










  • i add my logcat at the end of my code
    – sajad
    Nov 20 at 16:33










  • but i cant add all of them
    – sajad
    Nov 20 at 16:33










  • because it consists of 262000 character
    – sajad
    Nov 20 at 16:34










  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
    – Dr4ke the b4dass
    Nov 20 at 18:55










1




1




can you post the stacktrace? You can find it in the logcat tab in Android Studio
– Jorge Gil
Nov 19 at 21:13




can you post the stacktrace? You can find it in the logcat tab in Android Studio
– Jorge Gil
Nov 19 at 21:13












i add my logcat at the end of my code
– sajad
Nov 20 at 16:33




i add my logcat at the end of my code
– sajad
Nov 20 at 16:33












but i cant add all of them
– sajad
Nov 20 at 16:33




but i cant add all of them
– sajad
Nov 20 at 16:33












because it consists of 262000 character
– sajad
Nov 20 at 16:34




because it consists of 262000 character
– sajad
Nov 20 at 16:34












java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
– Dr4ke the b4dass
Nov 20 at 18:55






java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kikojas/com.kikojas.app.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class com.cedarstudios.cedarmapssdk.MapView. This tells you where the error is. In your MainActivity xml file, probably activity_main.xml. Check for errors in your MapView. Please add this xml for review
– Dr4ke the b4dass
Nov 20 at 18:55



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382640%2fandroidrecyclerview-set-adapter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382640%2fandroidrecyclerview-set-adapter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python