How to make Horizontal ListView
<p>I want to make a Horizontal listview, but i don't want to use the library of third-party. So, i try to use PagerAdapter but i can do it. 
I don't know how to fix it.
This is my code i use to load photo:</p>

<pre><code>public class GalleryActivity extends AppCompatActivity {
public static final String TAG = "GalleryActivity";
public static final String EXTRA_NAME = "images";
ArrayList&lt;Actor&gt; actors = new ArrayList&lt;&gt;();
private GalleryPagerAdapter _adapter;

@InjectView(R.id.pager) ViewPager _pager;
@InjectView(R.id.thumbnails) LinearLayout _thumbnails;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_gallery);
    ButterKnife.inject(this);

    importActor();

    _adapter = new GalleryPagerAdapter(this);
    _pager.setAdapter(_adapter);
    _pager.setOffscreenPageLimit(6);

}

public void importActor(){
    Bitmap bitmap = BitmapFactory.decodeResource(GalleryActivity.this.getResources(), R.drawable.nhaphuong);
    Bitmap bitmap1 = BitmapFactory.decodeResource(GalleryActivity.this.getResources(),R.drawable.subo);
    Bitmap bitmap2 = BitmapFactory.decodeResource(GalleryActivity.this.getResources(),R.drawable.truonggiang);

    Actor actor = new Actor(5,"Nhã Phương",bitmap);
    Actor actor1 = new Actor(15,"Trường Giang",bitmap2);
    Actor actor2 = new Actor(999,"Subo",bitmap1);

    actors.add(actor);
    actors.add(actor1);
    actors.add(actor2);
}


class GalleryPagerAdapter extends PagerAdapter {

    Context _context;
    LayoutInflater _inflater;

    public GalleryPagerAdapter(Context context) {
        _context = context;
        _inflater = (LayoutInflater) _context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    @Override
    public int getCount() {
        return actors.size();
    }

    @Override
    public boolean isViewFromObject(View view, Object object) {
        return view == ((RelativeLayout) object);
    }

    @Override
    public Object instantiateItem(ViewGroup container, final int position) {
        View view = _inflater.inflate(R.layout.one_actor, container, false);
        container.addView(view);

        // Get the border size to show around each image
        int borderSize = _thumbnails.getPaddingTop();

        // Get the size of the actual thumbnail image
        int thumbnailSize = ((FrameLayout.LayoutParams)
                _pager.getLayoutParams()).bottomMargin - (borderSize*2);

        // Set the thumbnail layout parameters. Adjust as required
        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(thumbnailSize, thumbnailSize);
        params.setMargins(0, 0, borderSize, 0);

        OneActor oneActor = new OneActor();
        oneActor.avatar = (ImageView) view.findViewById(R.id.imgActor);
        oneActor.name = (TextView) view.findViewById(R.id.tvActorName);
        oneActor.cmtCount = (TextView) view.findViewById(R.id.tvCmtCount);
        view.setTag(oneActor);
        oneActor.avatar.setImageBitmap(actors.get(position).getAvatar());
        oneActor.cmtCount.setText(actors.get(position).getCmtcout() + "");
        oneActor.name.setText(actors.get(position).getName());

        return view;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
        container.removeView((LinearLayout) object);
    }
    class OneActor{
        ImageView avatar;
        TextView name, cmtCount;
    }
}
</code></pre>

<p>This is my xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"&gt;
&lt;HorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="72dp"
    android:layout_gravity="center"&gt;
    &lt;LinearLayout
        android:id="@+id/thumbnails"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:paddingTop="2dp"/&gt;
&lt;/HorizontalScrollView&gt;
</code></pre>

<p></p>

<p>Tell my how to fix it or give me a tutoral please!</p>