Enable Focusable of edit textbox depend on checkbox is not working after disable the edit textbox in android
<p>I have tried to disable and enable the focusing of edittext box  depend on checkbox. While checkbox is checked, the textbox is focusable and if it is not checked, the textbox should be non-focusable. When i tried to enable focusing the text box after disable the textbox using the checkbox, it is not working. Here is my code. </p>

<pre><code> check_box.setOnCheckedChangeListener(new OnCheckedChangeListener() {

            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                // TODO Auto-generated method stub
                if(isChecked){
                    txt_time.setFocusable(true);
                } else {
                    txt_time.setFocusable(false);
                }

            }
        });
</code></pre>

<p>Thanks in advance..</p>
