title: HorizontalScrollView adds space between views
body: <p>I have HorizontalScrollView and the problem is that after I add views, I have blank spaces between these views.. Here is a pic:<br>
  <img src="https://i.stack.imgur.com/UqA2v.png" alt="enter image description here"></p>
  
  <p>Here is the code of the class:</p>
  
  <pre><code>public class HomeFeatureLayout extends HorizontalScrollView {
      public HomeFeatureLayout(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
      }
  
      public HomeFeatureLayout(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      public HomeFeatureLayout(Context context) {
          super(context);
      }
  
      public void setFeatureItems() {
          LinearLayout internalWrapper = new LinearLayout(getContext());
          internalWrapper.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
          internalWrapper.setOrientation(LinearLayout.HORIZONTAL);
          addView(internalWrapper);
          // this.mItems = items;
          for (int i = 0; i &lt; 10; i++) {
              ImageView im = new ImageView(getContext());
              im.setImageResource(R.drawable.aaaa);
              im.setScaleType(ScaleType.CENTER_INSIDE);
              im.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT));
  
  
              internalWrapper.addView(im);
          }
      }
  }
  </code></pre>
  
  <p>And MainActivity:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          HomeFeatureLayout home = new HomeFeatureLayout(this);
          home.setFeatureItems();
          home.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
  
          setContentView(home);
  
      }
  </code></pre>
  
  <p>Why are there blank spaces between each 2 images? </p>