Remove configurations options from google fileViewer in webView Android Studio

I am displaying google drive files in my app using google drive file viewer in a webView. The fileViewer diplays a top bar with the file name and login option and a bar in the bottom with some options.

Is it possible to hide the top bar and bottom bar?

I think it is possible to do this through javascript in AndroidStudio, but I don’t know how to do it

This is the Phone screen with the webView:
[Phone screen with the webview]

this is my code on Android Studio to diplay the webview:

  private WebView webView;


    @SuppressLint("SetJavaScriptEnabled")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit);

        String fileId = "1HHNdVFfGSnLLXsvpN5ITEktsdNENLT-jYl1guyNqgZw";
        String url = "https://docs.google.com/file/d/" + fileId + "/view";
        initializeWebViewer(url);
    }

    @SuppressLint("SetJavaScriptEnabled")
    public void initializeWebViewer(String url) {

        webView = (WebView) findViewById(R.id.webViewViewer);

        Log.i("url", url);

        webView.setWebViewClient(new MyWebViewClient());
        WebSettings webViewSettings = webView.getSettings();
        webViewSettings.setJavaScriptCanOpenWindowsAutomatically(true);
        webViewSettings.setJavaScriptEnabled(true);
        webView.loadUrl(url);


    }

    public class MyWebViewClient extends WebViewClient {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            return false;
        }
    }

I used devTools to get the code from page in my phone (I think it is in html, I’m new to this, so sorry if I confused javascript, html or something else) I used the "select an item in the page to inspect it" and erased the code to see if it really was what I was looking for:

I think this is the top bar element in the devTools (If I erase it goes away):

<div class="ndfHFb-c4YZDc-Wrql6b ndfHFb-c4YZDc-N4imRe-NMrWyd-RCfa3e" role="toolbar">
  <div class="ndfHFb-c4YZDc-Wrql6b-SmKAyb" style="margin-right: 12px; padding-left: 12px;">
    <div class="ndfHFb-c4YZDc-Wrql6b-hOcTPc" style="left: 12px;">
      <div class="ndfHFb-c4YZDc-Wrql6b-Bz112c" tabindex="-1" role="img" aria-label="Ícone de Apresentações Google" style="background-image: url(&quot;//ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_presentation_x32.png&quot;); background-position: left top; background-repeat: no-repeat;"></div>
      <div class="ndfHFb-c4YZDc-Wrql6b-jfdpUb" tabindex="-1">
        <div class="ndfHFb-c4YZDc-Wrql6b-V1ur5d" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc" data-tooltip-align="b,c" data-tooltip-offset="-6">Apresentação sem título</div>
        <div class="ndfHFb-c4YZDc-Wrql6b-V1ur5d ndfHFb-c4YZDc-Wrql6b-V1ur5d-hpYHOb">Apresentação sem título</div>
        <div class="ndfHFb-c4YZDc-Wrql6b-K4efff-V1ur5d" style="display: none;"></div>
        <div class="ndfHFb-c4YZDc-Wrql6b-K4efff-V1ur5d ndfHFb-c4YZDc-Wrql6b-K4efff-V1ur5d-hpYHOb"></div>
      </div>
      <div class="ndfHFb-c4YZDc-Wrql6b-C7uZwb-b0t70b">
        <div class="ndfHFb-c4YZDc-to915-LgbsSe ndfHFb-c4YZDc-C7uZwb-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe ndfHFb-c4YZDc-C7uZwb-ibnC6b-Btuy5e ndfHFb-c4YZDc-LgbsSe-OWB6Me" role="button" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc"
          data-tooltip-align="b,c" data-tooltip-offset="-6" aria-disabled="true" aria-hidden="true" aria-label="Bloqueado" data-tooltip="Bloqueado" style="user-select: none; display: none;">
          <div class="ndfHFb-c4YZDc-Bz112c ndfHFb-c4YZDc-C7uZwb-LgbsSe-Bz112c ndfHFb-c4YZDc-pGuBYc-Bz112c">
            <div class="ndfHFb-aZ2wEe" dir="ltr">
              <div class="ndfHFb-vyDMJf-aZ2wEe auswjd">
                <div class="aZ2wEe-pbTTYe aZ2wEe-v3pZbf">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-oq6NAc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-gS7Ybc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-nllRtd">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="ndfHFb-c4YZDc-Wrql6b-DdWCyb-b0t70b" style="display: none;">
      <div class="ndfHFb-c4YZDc-Wrql6b-FNFY6c-J42Xof-qMHh7d" style="display: none;">
        <div class="ndfHFb-c4YZDc-Wrql6b-FNFY6c ndfHFb-c4YZDc-to915-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe" role="button" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc" data-tooltip-align="b,c"
          data-tooltip-offset="-6" aria-hidden="true" aria-label="Abrir" data-tooltip="Abrir" style="user-select: none; display: none;">
          <div class="ndfHFb-c4YZDc-FNFY6c-DWWcKd-Bz112c" style="display: none;"></div>
          <div class="ndfHFb-c4YZDc-FNFY6c-V67aGc">Abrir</div>
        </div>
        <div class="ndfHFb-c4YZDc-Wrql6b-PlOyMe ndfHFb-c4YZDc-to915-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe" role="button" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc" data-tooltip-align="b,c"
          data-tooltip-offset="-6" style="user-select: none; display: none;" aria-hidden="true">
          <div class="ndfHFb-c4YZDc-Wrql6b-PlOyMe-bN97Pc">Extrair</div>
          <div class="ndfHFb-c4YZDc-Wrql6b-HDMZaf-Bz112c">
            <div class="ndfHFb-aZ2wEe" dir="ltr">
              <div class="ndfHFb-vyDMJf-aZ2wEe auswjd">
                <div class="aZ2wEe-pbTTYe aZ2wEe-v3pZbf">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-oq6NAc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-gS7Ybc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-nllRtd">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="ndfHFb-c4YZDc-Wrql6b-qMHh7d ndfHFb-c4YZDc-to915-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe" role="button" aria-expanded="false" aria-haspopup="true" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc"
          data-tooltip-align="b,c" data-tooltip-offset="-6" aria-label="Abrir com" data-tooltip="Abrir com" style="user-select: none; display: none;" aria-hidden="true">
          <div class="ndfHFb-c4YZDc-Wrql6b-FNFY6c-hgDUwe"></div>
          <div class="ndfHFb-c4YZDc-Wrql6b-qMHh7d-SmKAyb">
            <div class="ndfHFb-c4YZDc-Wrql6b-qMHh7d-fmcmS" tabindex="-1">Abrir com</div>
            <div class="ndfHFb-c4YZDc-Wrql6b-xl07Ob-LgbsSe-hFsbo">
              <div class="ndfHFb-c4YZDc-Bz112c"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="ndfHFb-c4YZDc-Wrql6b-zM6fo-GMvhG-b0t70b" style="display: none;">
        <div class="ndfHFb-c4YZDc-zM6fo-GMvhG-Bz112c ndfHFb-c4YZDc-Bz112c"></div><span class="ndfHFb-c4YZDc-zM6fo-GMvhG-fmcmS" tabindex="0" role="alert"></span></div>
      <div class="ndfHFb-c4YZDc-Wrql6b-C7uZwb-b0t70b"></div>
    </div>
    <div class="ndfHFb-c4YZDc-Wrql6b-AeOLfc-b0t70b">
      <div class="ndfHFb-c4YZDc-GSQQnc-LgbsSe ndfHFb-c4YZDc-to915-LgbsSe" aria-label="Ver em outra janela" style="display: none;">
        <div class="ndfHFb-c4YZDc-Bz112c ndfHFb-c4YZDc-DH6Rkf-Bz112c"></div>
      </div>
      <div class="ndfHFb-c4YZDc-Wrql6b-LQLjdd">
        <div class="ndfHFb-c4YZDc-to915-LgbsSe ndfHFb-c4YZDc-Wrql6b-htvI8d-wcotoc-ndfHFb" style="display: none;">
          <div>
            <div class="ndfHFb-aZ2wEe" dir="ltr">
              <div class="ndfHFb-vyDMJf-aZ2wEe auswjd">
                <div class="aZ2wEe-pbTTYe aZ2wEe-v3pZbf">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-oq6NAc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-gS7Ybc">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
                <div class="aZ2wEe-pbTTYe aZ2wEe-nllRtd">
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-pehrl-TpMipd">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                  <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                    <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="ndfHFb-c4YZDc-Wrql6b-C7uZwb-b0t70b">
          <div class="ndfHFb-c4YZDc-to915-LgbsSe ndfHFb-c4YZDc-C7uZwb-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe ndfHFb-c4YZDc-C7uZwb-LgbsSe-SfQLQb-Bz112c ndfHFb-c4YZDc-LgbsSe-OWB6Me" role="button" data-tooltip-unhoverable="true" data-tooltip-delay="500"
            data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc" data-tooltip-align="b,c" data-tooltip-offset="-6" aria-disabled="true" aria-hidden="true" aria-label="Fazer o download" data-tooltip="Fazer o download" style="user-select: none; display: none;">
            <div class="ndfHFb-c4YZDc-Bz112c ndfHFb-c4YZDc-C7uZwb-LgbsSe-Bz112c ndfHFb-c4YZDc-nupQLb-Bz112c">
              <div class="ndfHFb-aZ2wEe" dir="ltr">
                <div class="ndfHFb-vyDMJf-aZ2wEe auswjd">
                  <div class="aZ2wEe-pbTTYe aZ2wEe-v3pZbf">
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-pehrl-TpMipd">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                  </div>
                  <div class="aZ2wEe-pbTTYe aZ2wEe-oq6NAc">
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-pehrl-TpMipd">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                  </div>
                  <div class="aZ2wEe-pbTTYe aZ2wEe-gS7Ybc">
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-pehrl-TpMipd">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                  </div>
                  <div class="aZ2wEe-pbTTYe aZ2wEe-nllRtd">
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-LK5yu">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-pehrl-TpMipd">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                    <div class="aZ2wEe-LkdAo-e9ayKc aZ2wEe-qwU8Me">
                      <div class="aZ2wEe-LkdAo aZ2wEe-hj4D6d"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="ndfHFb-c4YZDc-z5C9Gb-LgbsSe ndfHFb-c4YZDc-to915-LgbsSe VIpgJd-TzA9Ye-eEGnhe ndfHFb-c4YZDc-LgbsSe" role="button" aria-expanded="false" aria-haspopup="true" data-tooltip-unhoverable="true" data-tooltip-delay="500" data-tooltip-class="ndfHFb-c4YZDc-tk3N6e-suEOdc"
            data-tooltip-align="b,c" data-tooltip-offset="-6" aria-label="Mais ações" data-tooltip="Mais ações" style="user-select: none;" aria-hidden="false" tabindex="0">
            <div class="ndfHFb-c4YZDc-Bz112c"></div>
          </div>
        </div>
      </div>
      <div class="ndfHFb-c4YZDc-mKZypf-bEDTcc">
        <div class="ndfHFb-c4YZDc-mKZypf-bEDTcc-LgbsSe tk3N6e-LgbsSe tk3N6e-LgbsSe-JIbuQc" role="button" tabindex="0" style="user-select: none;">Fazer login</div>
      </div>
    </div>
  </div>
</div>

And this is the lower bar :

<div class="punch-viewer-nav punch-viewer-nav-fixed">
  <div class="goog-inline-block goog-flat-button goog-flat-button-disabled" role="button" aria-disabled="true" title="Anterior (←)" style="user-select: none;">
    <div class="punch-viewer-icon punch-viewer-left goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button goog-flat-button-disabled" role="button" aria-disabled="true" title="Pausar" aria-hidden="true" style="user-select: none; display: none;">
    <div class="punch-viewer-icon punch-viewer-pause goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-disabled="false" title="Reproduzir" tabindex="0" style="user-select: none;">
    <div class="punch-viewer-icon punch-viewer-play goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-disabled="false" title="Próximo (→)" style="user-select: none;" tabindex="0">
    <div class="punch-viewer-icon punch-viewer-right goog-inline-block"></div>
  </div>
  <div class="goog-toolbar-separator goog-toolbar-separator-disabled goog-inline-block" aria-disabled="true" role="separator" style="user-select: none;">&nbsp;</div>
  <div class="goog-inline-block goog-flat-menu-button" role="listbox" aria-hidden="false" aria-expanded="false" aria-haspopup="true" aria-activedescendant=":y" tabindex="0" style="user-select: none;">
    <div class="goog-inline-block goog-flat-menu-button-caption" id=":y" role="option" aria-selected="true" aria-setsize="5" aria-posinset="1">Slide 1</div>
    <div class="goog-inline-block goog-flat-menu-button-dropdown" aria-hidden="true">&nbsp;</div>
  </div>
  <div class="goog-toolbar-separator goog-toolbar-separator-disabled goog-inline-block" aria-disabled="true" role="separator" style="user-select: none;">&nbsp;</div>
  <div class="goog-inline-block goog-flat-button" role="button" tabindex="0" title="Ativar o apontador laser (L)" style="user-select: none;">
    <div class="punch-viewer-laser-icon punch-viewer-on-laser-icon goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button goog-flat-button-disabled" role="button" title="Desativar o apontador laser (L)" aria-disabled="true" aria-hidden="true" style="user-select: none; display: none;">
    <div class="punch-viewer-laser-icon punch-viewer-off-laser-icon goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-disabled="false" title="Tela inteira (Ctrl+Shift+F)" tabindex="0" style="user-select: none;">
    <div class="punch-viewer-icon punch-viewer-full-screen goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button goog-flat-button-disabled" role="button" aria-disabled="true" title="Sair do modo tela cheia (Ctrl+Shift+F)" aria-hidden="true" style="user-select: none; display: none;">
    <div class="punch-viewer-icon punch-viewer-exit-full-screen goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-expanded="false" aria-haspopup="true" aria-disabled="false" title="Abrir o menu de opções" tabindex="0" style="user-select: none;">
    <div class="punch-viewer-icon-large punch-viewer-options goog-inline-block"></div>
  </div>
  <div class="goog-inline-block goog-flat-button goog-flat-button-disabled" role="button" aria-disabled="true" title="Parar apresentação (Esc)" aria-hidden="true" style="user-select: none; display: none;">
    <div class="punch-viewer-exit-text goog-inline-block">Sair</div>
  </div>
  <div class="punch-viewer-progress-bar goog-inline-block" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" role="progressbar" aria-live="polite" style="display: none;">
    <div class="progress-bar-thumb" style="width: 100%;"></div>
  </div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-hidden="true" aria-describedby=":x" aria-disabled="false" style="user-select: none; display: none;">
    <div class="punch-viewer-icon punch-viewer-error goog-inline-block"></div>
  </div>
  <div class="goog-toolbar-separator goog-toolbar-separator-disabled goog-inline-block" aria-hidden="true" aria-disabled="true" role="separator" style="user-select: none; display: none;">&nbsp;</div>
  <div class="goog-inline-block goog-flat-button" role="button" aria-hidden="true" title="Avisos de acesso às mídias" style="user-select: none; display: none;">
    <div class="punch-viewer-icon punch-viewer-media-error-icon"></div>
  </div><span><div class="punch-viewer-nav-logo"><div class="punch-viewer-nav-logo-image goog-inline-block"></div></div></span></div>

26 thoughts on “Remove configurations options from google fileViewer in webView Android Studio”

  1. I managed to hide the top bar using

    webView.loadUrl("javascript:(function() { " +
                        "document.getElementsByClassName('ndfHFb-c4YZDc-Wrql6b-SmKAyb')[0].style.display='none'; })()"); 
    
    Reply

Leave a Comment