如何隐藏自定义选项卡操作栏

Ume*_*han 5 android chrome-custom-tabs android-customtabs

在此输入图像描述嗨,我是自定义标签的新手,我只想隐藏操作栏.有没有办法做到这一点任何链接,代码和概念将提前感谢!

这是代码!

CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();
    intentBuilder.setStartAnimations(this, R.anim.slide_in_right, R.anim.slide_out_left);
    intentBuilder.setExitAnimations(this, android.R.anim.slide_in_left,
        android.R.anim.slide_out_right);

    //Open the Custom Tab        
    intentBuilder.build().launchUrl(context, Uri.parse("https://developer.chrome.com/"));    
Run Code Online (Sandbox Code Playgroud)

May*_*gar -3

您可以像这样在您的活动中隐藏 Acton Bar

getSupportActionBar().hide();
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助。