Code example for LayerDrawable

Methods: setLayerInset

     * Suggest to the UI that the title bar can be hidden. The UI will then 
     * decide whether or not to hide based off a number of factors, such 
     * as if the user is editing the URL bar or if the page is loading 
    public void suggestHideTitleBar() { 
        if (!isLoading() && !isEditingUrl() && !mTitleBar.wantsToBeVisible()
                && !mNavigationBar.isMenuShowing()) {
    protected final void showTitleBarForDuration() { 
    protected final void showTitleBarForDuration(long duration) {
        Message msg = Message.obtain(mHandler, MSG_HIDE_TITLEBAR);
        mHandler.sendMessageDelayed(msg, duration);
Connect your IDE to all the code out there  Get Codota for Java