Tag Archives: background

17,089 views

Change TableRow background color if on row click Android example

Change table row background color if user click on row Android example code. MainActivity.java public class MainActivity extends Activity { Boolean bColorYellow = true; TextView hTextView; TableRow hTableRow; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); hTextView = (TextView)findViewById(R.id.idTextView); hTableRow … Continue reading

Posted in Android Examples Code | Tagged , , , , , | Comments Off on Change TableRow background color if on row click Android example
20,941 views

Change background color dynamically View TableRow setBackgroundColor Android example

How change background color of View Android sample. MainActivity.java public class MainActivity extends Activity { TextView hTextView; TableRow hTableRow; Button hButton, hButtonStop; private Handler mHandler = new Handler(); private int nCounter = 0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); … Continue reading

Posted in Android Examples Code | Tagged , , , , , , | Comments Off on Change background color dynamically View TableRow setBackgroundColor Android example