<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:orientation="horizontal"
>
</LinearLayout>
</HorizontalScrollView>
가로 스크롤뷰 생성한뒤 그 안에 레이아웃 잡아준다음
레이아웃에 꽂아줄 view 생성한뒤에(xml 별도 작성)
해당 레이아웃에 class 에서 layout.addView(v,0) 으로 for 문 돌려서 추가해주시면 됩니다.
LinearLayout aaa = findViewById(....id);
View v = LayoutInflater.from(context).inflate(...id, null);
for(...){
aaa.addView(v,0)
}