Code example for ListAdapter

Methods: unregisterDataSetObserver

0
 
		} 
 
		@Override 
		public void unregisterDataSetObserver(final DataSetObserver observer) {
			wrapped.unregisterDataSetObserver(observer);
 
		} 
 
		private TextView findTextView(final View view) {
			if (view instanceof TextView) return (TextView) view;
			if (!(view instanceof ViewGroup)) return null;
			final ViewGroup view_group = (ViewGroup) view;
			final int child_count = view_group.getChildCount();
			for (int i = 0; i < child_count; i++) {
				final View child = view_group.getChildAt(i);
				if (child instanceof TextView) return (TextView) child;
				if (child instanceof ViewGroup) {
					final TextView tv = findTextView(child);
					if (tv != null) return tv;
				}