I want set 55000 height to ListView
This process long a time ( about 5-6 seconds )
I use below code but not working in Thread
new Thread(new Runnable() {
@Override
public void run() {
params.height = 55000;
lstContent.setLayoutParams(params);
lstContent.requestLayout();
lstContent.post(new Runnable() {
@Override
public void run() {
lstContent.setVisibility(View.VISIBLE);
}
});
}
}).start();
If i use setLayoutParams
in Runnable
, application not work for 5-6 seconds until load complete