View fragment_view;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
List<String> datalist2 = new ArrayList<>();
datalist2.add("FirstAid");
datalist2.add("Login");
datalist2.add("Profile");
datalist2.add("Ambulance");
datalist2.add("Medicine");
datalist2.add("News");
datalist2.add("HRM");
fragment_view = inflater.inflate(R.layout.fragment_menu_bar, container, false);
list_view_menu_adapter adapter2=new list_view_menu_adapter (getContext(),datalist2);
final ListView L2= (ListView) fragment_view.findViewById(R.id.menu_scroll_list);
L2.setAdapter(adapter2);
如何在没有RecyclerView的情况下将该列表更改为水平当前显示为verticaly