草庐IT

IntentBuilder

全部标签

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

嗨,我是自定义选项卡的新手,我只想隐藏操作栏。有什么办法可以做到这一点,任何链接、代码和概念将不胜感激,在此先感谢!这是代码!CustomTabsIntent.BuilderintentBuilder=newCustomTabsIntent.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.s

android - 隐藏/禁用 Chrome 自定义选项卡中的默认菜单

我在android中实现了新的ChromeCustomTab,我使用下面的代码打开Stringurl="http://www.flipkart.com/";intcolor=Color.BLUE;CustomTabsIntent.BuilderintentBuilder=newCustomTabsIntent.Builder();intentBuilder.setToolbarColor(color);intentBuilder.setShowTitle(true);CustomTabActivityHelper.openCustomTab(this,intentBuilder.bui

android - 如何在Chrome自定义标签android中隐藏url

我已经在android中实现了新的Chrome自定义标签,我正在使用以下代码打开Uriuri=Uri.parse("https://akash.plobal.com/ploicy");CustomTabsIntent.BuilderintentBuilder=newCustomTabsIntent.Builder();intentBuilder.setToolbarColor(Color.BLACK);intentBuilder.setShowTitle(true);intentBuilder.build().launchUrl(getActivity(),uri);我需要在工具栏标题

android - 如何在Chrome自定义标签android中隐藏url

我已经在android中实现了新的Chrome自定义标签,我正在使用以下代码打开Uriuri=Uri.parse("https://akash.plobal.com/ploicy");CustomTabsIntent.BuilderintentBuilder=newCustomTabsIntent.Builder();intentBuilder.setToolbarColor(Color.BLACK);intentBuilder.setShowTitle(true);intentBuilder.build().launchUrl(getActivity(),uri);我需要在工具栏标题

android - 在 Android 中更改 PlaceAutocomplete.IntentBuilder 的提示文本

我正在创建一个Android应用程序。因为我正在使用PlaceAutocomplete.IntentBuilder从Google获取地址。我想更改PlaceAutocompleteView中搜索框的提示文本。我使用下面的代码打开PlaceAutocompleteView。Intentintent=newPlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY).build(this);startActivityForResult(intent,requestCode);屏幕截图: 最佳答案

android - 如何使用 ShareCompat.IntentBuilder 启动 Activity

我正在尝试添加共享Intent以发布到GooglePlus,但似乎无法解决传递新的ShareCompat.IntentBuilder的问题(Android支持库类)到startActivity方法。我开始使用thisexample.我的应用程序是使用Android2.2平台编译的。是否有可能有另一种支持方式来启动Activity以启动共享Intent。IntentBuildershareIntent=ShareCompat.IntentBuilder.from(MyActivity.this);shareIntent.setText(message);shareIntent.setSu

android - PlacePicker.IntentBuilder 打开后立即关闭

我在我的应用程序中实现了PlacePicker.IntentBuilderUI。在最长的时间内它没有问题,但现在一旦UI出现,它就会关闭,我不确定为什么。疯狂的事情是查看logcat它不会崩溃或导致任何异常所以我不知道问题是什么。这是创建和调用它的类。packagecom.example.apthagreat.faf;importandroid.app.AlertDialog;importandroid.content.DialogInterface;importandroid.content.Intent;importandroid.os.AsyncTask;importandroi