title: listView items disappears on scroll for android 2.3
body: <p><img src="https://i.stack.imgur.com/pYInI.png" alt="enter image description here"> on load of Fragment.
  <img src="https://i.stack.imgur.com/8Bcds.png" alt="enter image description here"> after scrolling smoothly data appears. but again disappera</p>
  
  <p>Android List View on scroll content gets invisible only for 2.3.
  working fine for 4.0 and above. 
  problem is when I scroll the ListView the data gets disappear and images will be shown only.
  If i scroll smoothly and Tap for one or two sec. on list the data will shown but on scroll the data gets disappear.</p>
  
  <p>Below is my adapter code - </p>
  
  <pre><code>public class RestaurantListAdapter extends BaseAdapter {
      private ArrayList&lt;RestaurantList&gt; restaurantList;
      private LayoutInflater inflater;
      private ImageLoader imageLoader;
      private Context context;
      private ViewHolder viewHolder = null;
      DisplayImageOptions options;
  
      public RestaurantListAdapter(Activity activity,
              ArrayList&lt;RestaurantList&gt; restaurantList) {
          this.context = activity;
          this.restaurantList = restaurantList;
  
          this.inflater = LayoutInflater.from(this.context);
  
          imageLoader = ImageLoader.getInstance();
          options = new DisplayImageOptions.Builder().cacheInMemory(true)
                  .cacheOnDisc(true).bitmapConfig(Bitmap.Config.RGB_565).build();
      }
  
      public int getCount() {
          return restaurantList.size();
      }
  
      public Object getItem(int position) {
          return position;
      }
  
      public long getItemId(int position) {
          return position;
      }
  
      public View getView(int position, View convertView, ViewGroup parent) {
  
          if (convertView == null) {
              viewHolder = new ViewHolder();
  
              convertView = inflater.inflate(
                      R.layout.restaurant_list_item_layout, null);
  
              viewHolder.restaurantNameTextView = (TextView) convertView
                      .findViewById(R.id.restaurantNameTextView);
              viewHolder.restaurantAddressTextView = (TextView) convertView
                      .findViewById(R.id.restaurantAddressTextView);
              viewHolder.restaurantPinTextView = (TextView) convertView
                      .findViewById(R.id.restaurantPinTextView);
              viewHolder.restaurantPhoneTextView = (TextView) convertView
                      .findViewById(R.id.restaurantPhoneTextView);
              viewHolder.favoriteImageButton = (ImageButton) convertView
                      .findViewById(R.id.favoriteImageButton);
  
  
              convertView.setTag(viewHolder);
          } else {
              viewHolder = (ViewHolder) convertView.getTag();
          }
  
          RestaurantList restaurant = restaurantList.get(position);
  
          viewHolder.restaurantNameTextView.setText(restaurant
                  .getRestaurantName());
          viewHolder.restaurantAddressTextView.setText(restaurant
                  .getRestaurantAddress());
          viewHolder.restaurantPinTextView.setText(restaurant.getRestaurantPin());
          viewHolder.restaurantPhoneTextView.setText(restaurant
                  .getRestaurantPhone());
          viewHolder.favoriteImageButton.setFocusable(false);
  
          viewHolder.restaurantNameTextView.setVisibility(View.VISIBLE);
  
  
          return convertView;
      }
  
      static class ViewHolder {
          TextView restaurantNameTextView;
          TextView restaurantAddressTextView;
          TextView restaurantPinTextView;
          TextView restaurantPhoneTextView;
          ImageButton favoriteImageButton;
          ImageView restaurentImageView;
      }
  
  }
  </code></pre>