0

I have disabled the android address bar by using the below line of code.

  if(isAddressBarEnabled)
        mLayout.findViewById(R.id.address_bar).setVisibility(View.VISIBLE);
    else
        mLayout.findViewById(R.id.address_bar).setVisibility(View.GONE);

Here as i click on a link it would first show the address bar and once the page is loaded it would disappear. I want to disable the address bar while loading also. Is it possible.

sundeep
  • 601
  • 1
  • 8
  • 21
  • use this in manifest file for activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" – sai Nov 16 '12 at 12:03

1 Answers1

0

From Android View docs add this XML code to the address_bar layout.

android:visibility="gone"
PearsonArtPhoto
  • 38,970
  • 17
  • 111
  • 142
  • i want to control it. Like i cannot set it as disabled permanently i would handle it, like disable only when required. editing the question accordingly. – sundeep Nov 16 '12 at 12:04
  • You can always change it. You can't really change it until the program is running, but you can set it up how you wan to before the program starts. – PearsonArtPhoto Nov 16 '12 at 12:16
  • i want to change it while the program is running dynamically – sundeep Nov 16 '12 at 12:33