getView not getting called when data set is changed

HI,
I have a following arrayAdapter :

 
 final ArrayAdapter<Alphabet> alphabetArrayAdapter;
        final List<Alphabet> alphabetList = getAlphabets();
 Log.d("count = "," "+alphabetList.size());
        alphabetArrayAdapter = new ArrayAdapter<Alphabet>(this, R.layout.activity_apps_list, alphabetList) {
            @Override
            public View getView(int position, View convertView, ViewGroup parent) {
                Alphabet alphabet = getItem(position);
                TextView view = (TextView) convertView;
                if (convertView == null) {
                    view = (TextView) LayoutInflater.from(getContext()).inflate(R.layout.alphabet_text_view, parent, false);
                }
                view.setText(String.valueOf(alphabet.letter));
                view.setTextColor(getResources().getColor(R.color.opaqueWhite));
                if (alphabet.shouldBeHighlighted)
                    view.setTextColor(getResources().getColor(R.color.white));
                return view;
            }
        };

Open in new window


At some point in code i modified the alphabetList and called                 alphabetArrayAdapter.notifyDataSetChanged();

As per my understanding the getView() function of the adapter should get called. But it didnt get called.

The adapter is set like -         nonScrollableListView.setAdapter(alphabetArrayAdapter);

And the view is :
<co.riva.vader.database.NonScrollableListView
            android:id="@+id/alphabet_list"
            android:layout_width="22dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="17dp"
            android:listSelector="@android:color/transparent"
            android:background="@android:color/transparent"
            android:divider="@android:color/transparent"
            android:dividerHeight="3dp"
            android:orientation="vertical"/>
    </LinearLayout>

Open in new window


what could be the reason for this ?
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

krakatoaCommented:
Maybe you also need :

void      setNotifyOnChange(boolean notifyOnChange)
Control whether methods that change the list (add(T), insert(T, int), remove(T), clear()) automatically call notifyDataSetChanged().
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
krakatoaCommented:
So did you implement the  setNotifyOnChange() method at all?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.