Note that there are some explanatory texts on larger screens.

plurals
  1. POin my code textview not show bold what will i do?
    primarykey
    data
    text
    <p>in my fourthscree class selected text will not show bold only Breakfast wil show bold Lunch and supper not shoe bold when i press img2 or img3 tell me what will i do?? all values show on Toast but not maketext bold only when pres img is make Breakfast will be bold lunch and supper not show bold</p> <pre><code> img1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent iMenuList = new Intent(thirdstep.this, fourthscreen.class); iMenuList.putExtra("Menuitem", txt1.getText().toString()); startActivity(iMenuList); } }); img2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent iMenuList = new Intent(thirdstep.this, fourthscreen.class); iMenuList.putExtra("Menuitem", txt2.getText().toString()); startActivity(iMenuList); } }); img3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent iMenuList = new Intent(thirdstep.this, fourthscreen.class); iMenuList.putExtra("Menuitem", txt3.getText().toString()); startActivity(iMenuList); } }); } } public class fourthscreen extends Activity Breakfast = (TextView) findViewById(R.id.txtfourth1); Lunch = (TextView) findViewById(R.id.txtfourth2); Supper = (TextView) findViewById(R.id.txtfourth3); Bundle bundle = this.getIntent().getExtras(); String param1 = bundle.getString("Menuitem"); Toast.makeText(fourthscreen.this, param1, Toast.LENGTH_LONG).show(); if(param1.equalsIgnoreCase("BreakFast")) { Breakfast.setTypeface(null, Typeface.BOLD); } else if(param1.equalsIgnoreCase("Lunch")) { Lunch.setTypeface(null, Typeface.BOLD); } else if(param1.equalsIgnoreCase("Supper")) { Lunch.setTypeface(null, Typeface.BOLD); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload