I have searched the internet for a few days and still cannot solve my problem
I would like to open the photo album and add an overlay with elements an image icon as abutton and a textview so that people press the image then the textview will display a message.
Now, everyting is ok except when scrolling. The message seems appear randomly in other textview. Any ways can keep the message in correct position? I have referenced this ViewHolder - good practice but still fail. My code is:
holder.ordernumber.addTextChangedListener(new TextWatcher()
{
public void onTextChanged(CharSequence s, int start, int before, int count) {
mynum_message[position]=s.toString();
}
public void beforeTextChanged(CharSequence s, int start, int count,int after) {
}
public void afterTextChanged(Editable s) {
}
});
I use an array mynum_message to store the message is a position
and set the text using
holder.mymessage.setText(String.valueOf(mynum_message[position]));
anyone please help! Alex