I have an HorizontalScrollView and a Linear layout

```
   <HorizontalScrollView
    android:id="@+id/scrollView"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/filesScrollerLayout"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
    </LinearLayout>
</HorizontalScrollView>

```

Programmaticaly I'm trying to add views in the linearLayout with the following way:

```
     LinearLayout layout = (LinearLayout)findViewById(R.id.filesScrollerLayout);

     ImageView imageView1 = new ImageView(this);
     ImageView imageView2 = new ImageView(this);
     ImageView imageView3 = new ImageView(this);
     imageView1.setImageDrawable(Drawables);
     imageView2.setImageDrawable(Drawables);
     imageView3.setImageDrawable(Drawables);

```

The problem is that in the horizontalscroll view there are big gaps between the images. I just want the images to be next to each other. How can I succeed that?