home

2011년 8월 24일 수요일

layout setVisibility(View.VISIBLE) is not working.

If doesn't show after setVisibility(View.VISIBLE), try this.

==================================================

mId = (View) findViewById(R.id.myID);
new Thread(new Runnable() {
    public void run() {
        mId.post(new Runnable() {
            public void run() {
                mId.setVisibility(View.VISIBLE);
            }
        });
    }
}).start();