Note that there are some explanatory texts on larger screens.

plurals
  1. POGrid View buttons get distorted when scroll is used
    primarykey
    data
    text
    <pre><code>public View getView(int position, View convertView, ViewGroup parent) { Button btn; if (convertView == null) { // if it's not recycled, initialize some // attributes btn = new Button(mContext); KeypadButton keypadButton = mButtons[position]; switch(keypadButton.mCategory) { case MEMORYBUFFER: btn.setBackgroundResource(R.drawable.keypadmembuffer1); break; case CLEAR: btn.setBackgroundResource(R.drawable.keypadclear1); break; case NUMBER: btn.setBackgroundResource(R.drawable.keypad1); break; case OPERATOR: btn.setBackgroundResource(R.drawable.keypadop1); break; case OTHER: btn.setBackgroundResource(R.drawable.keypadother1); break; case RESULT: btn.setWidth(8000); btn.setBackgroundResource(R.drawable.keypadresult1); break; case DUMMY: btn.setBackgroundResource(R.drawable.appvertical1); break; default: btn.setBackgroundResource(R.drawable.keypad1); break; } // Set OnClickListener of the button to mOnButtonClick if(keypadButton != KeypadButton.DUMMY) btn.setOnClickListener(mOnButtonClick); else btn.setClickable(false); // Set CalculatorButton enumeration as tag of the button so that we // will use this information from our main view to identify what to do btn.setTag(keypadButton); } else { btn = (Button) convertView; } btn.setText(mButtons[position].getText()); return btn; } </code></pre> <p>Evertime I use scroll on my screen first row buttons get mixed up with the last row buttons. Please help . I am new to android . donot know wht to do?? I have a very limited knowledge of using contextView. Can it be corrected if I remove if else block.</p>
    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.
    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