title: Android adding dynamic ImageViews to HorizontalScrollView does not work
body: <p>I am desperately trying to achieve this for a quite long time but still could not make it work.
  I have a ListView where in inside my Adapter I am trying to add image views dynamically based on my data. But, ScrollView does not show up with added images. When I tried myLinearLayout.getChildCount(), it gives proper results!!</p>
  
  <p>What am I doing wrong? Any help is much appreciated :)</p>
  
  <pre><code>&lt;!-- ScrollView (This lies inside listView's child view) --&gt;
  &lt;HorizontalScrollView
          android:id="@+id/card_txn_horizontal_scroll"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="left"&gt;
  
          &lt;LinearLayout
              android:id="@+id/scroll_view_linear"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="horizontal"
              android:background="@color/header_bg"&gt;
         &lt;/LinearLayout&gt;
   &lt;/HorizontalScrollView&gt;
  
  LinearLayout sharedWithView = (LinearLayout) convertView.findViewById(R.id.scroll_view_linear);
  for (User sharer : data.getSharerModelList()) {
         ImageView mImageView = (ImageView) mInflator.inflate(R.layout.photo, null);
         Picasso.with(mImageView.getContext())
            .load(expense.getPayeeModel().getProfilePicUrl())
            .centerCrop()
            .resize(QuickReturnUtils.dp2px(mImageView.getContext(), 38),
                                      QuickReturnUtils.dp2px(mImageView.getContext(), 38))
                              .placeholder(R.drawable.ic_launcher)
                              .error(android.R.drawable.stat_notify_error)
                              .into(mImageView);
                      sharedWithView.addView(mImageView);
                  }
  </code></pre>