1

I have a tabbed activity with 6 tabs. It's a lotto ticket picker. I created the grid like this. Every grid has 90 generetad TextViews. The activity start in 2-3 seconds.

Grid

dobosvok
  • 35
  • 1
  • 5

1 Answers1

0

You can do heavy stuff in a thread. In your onCreate method:

Thread t = new Thread() {
    public void run() {
        //do heavy work here
        final int result=42;
        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                //call methods of your views here.
                textView.setText(result +"");
            }
        });
    }
};
t.start();
neoexpert
  • 465
  • 1
  • 10
  • 20