Code example for TableRow

Methods: getChildAt

0
 
    OnSeekBarChangeListener sbChange = new OnSeekBarChangeListener() {
        public void onProgressChanged(SeekBar s, int progress, boolean touch) { 
            if (touch) { 
                TableRow row = (TableRow) s.getParent(); 
                TextView changeval = (TextView) row.getChildAt(1); 
                changeval.setText(Integer.toString(progress)); 
            } 
        } 
 
        public void onStartTrackingTouch(SeekBar s) { 
        } 
 
        public void onStopTrackingTouch(SeekBar s) { 
        } 
    }; 
 
    private void checkRowColors() { 
        if (counter == 1) {
            int target = counter + 400;
            TextView tv = (TextView) findViewById(target);