I have tried everything but my ScrollView doesn\'t work in my activity. I have activity where after user clicks button opens a table. I can\'t find a way that my table scrolls b
You can make it this way and in ScrollView
there must be only one child:
ScrollView scrollview = new ScrollView(context);
scrollview.setBackgroundColor(android.R.color.transparent);
scrollview.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
scrollview.addView(tableLayout);