I implemented a listview in my layout:
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView>
and then in my activity I set its adapter:
mListView = (ListView) findViewById(R.id.listView);
mListView.setAdapter(new MyAdapter(this, R.layout.list_item, mListImages));
MyAdapter handles the getView and displays the list vertically:
images1
images2
....
Can it display the list horizontally? this way:
image1 image2 ....
(for sure it should work with scroll and display all the images)
I saw that this result can be achieved with RecycleView and LayoutManager that gets Horizontal as a parameter but I have implemented the ListView already, which doesn't have the method "setLayoutManager". and I need it to work for API 15 and above.