ListView listview = new ListView(context);
LinearLayout.LayoutParams layout_190 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);
listview.setLayoutParams(layout_190);
listview.setAdapter(adapterViewAndroid);
relativeLayout_716.addView(listview);
答案 0 :(得分:0)
您不能使用listView水平显示项目,应该在github.com/MeetMe/Android-HorizontalListView
中使用recyclerView或自定义listView