草庐IT

Share-Sheet

全部标签

android - 如何在 android 中使用 Share Intent 分享图片+文本

我使用此代码,但它无法正常工作。StringBody="DealsName:"+Bussinessname+"\n"+"Deals:"+deal+"\n"+"Address:"+city+","+country;Intentshare=newIntent(android.content.Intent.ACTION_SEND);UriscreenshotUri=Uri.parse(Images.Media.EXTERNAL_CONTENT_URI+"/"+image);share.setType("image/*");share.putExtra(Intent.EXTRA_SUBJECT

java - 在 Bottom Sheet 中更新 recyclerview 内容失败

我想通过单击事件更改BottomSheetView中的列表内容,但我只有空白工作表。这是一个从BottomSheetSample(github.com/niravkalola/BottomSheetSample)修改而来的demo。ma​​inActivity.javapackagecom.nkdroid.bottomsheetsample;importandroid.content.DialogInterface;importandroid.os.Bundle;importandroid.support.annotation.NonNull;importandroid.support

javascript - Android - 如何使用 PhoneGap Share 插件

我正在尝试使用PhoneGapShare插件,它应该会显示原生Android“共享”窗口,允许用户选择要共享到哪个应用程序。https://github.com/phonegap/phonegap-plugins/tree/master/Android/Share我有一个调用以下代码的超链接(在github上提供)。window.plugins.share.show({subject:'Iliketurtles',text:'http://www.mndaily.com'},function(){},//Successfunctionfunction(){alert('Sharefai

Android:嵌套 Bottom Sheet 点击/拖动触摸事件问题

我有一个BottomSheet嵌套在另一个BottomSheet中(FrameLayouts使用BottomSheet布局行为)我还有几个“透视View”(FrameLayouts),它们附加了点击监听器,可在点击时分别展开BottomSheet。所以应用程序基本上有3个主屏幕。'maincontainer',然后是第一个'bottomsheet',可以全屏展开,然后在第一个bottomsheet的底部,是第二个bottomsheet,也可以展开全屏。问题:当我将RecyclerView添加到嵌套的BottomSheet“容器”View时,拖动停止对第二个速览View(Sheet2Pe

android - Bottom Sheet 的隐藏状态

我正在尝试为BottomSheet设置隐藏状态,但它不起作用。有什么问题?bottomBar=BottomSheetBehavior.from(findViewById(R.id.bottom_bar));bottomBar.setState(BottomSheetBehavior.STATE_HIDDEN); 最佳答案 记住在Activity/fragment开始时隐藏BottomSheet时添​​加它bottomSheetBehavior=BottomSheetBehavior.from(bottom_sheet_view_he

android - 全屏 Bottom Sheet ,顶部有关闭 (X) 按钮

我正在尝试从谷歌设计库中实现一个BottomSheet。单击按钮应打开覆盖整个Activity窗口的BottomSheet。就像我们在Gmail的收件箱中打开电子邮件一样。但是,它应该从底部打开并向下滑动以关闭。单击按钮应打开BottomSheet,向下滑动或左上角关闭(X)按钮应关闭工作表。我已经设置了这样的东西:我正在这样初始化它:mBottomSheet=(NestedScrollView)findViewById(R.id.bottom_sheet);mBottomSheetBehavior=BottomSheetBehavior.from(mBottomSheet);mBut

android - "Bluetooth share has stopped working"执行LeScan时

我面前有一堆各种各样的Android手机都运行4.3/4.4,它们似乎都存在蓝牙问题。我正在运行的应用程序只是使用此回调扫描周围的其他蓝牙设备:http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.LeScanCallback.html只是对数据进行LogCatting,但仍有问题...有没有人知道这个错误并修复了它?我真的需要在明天为我的应用程序演示准备的最后期限之前稳定蓝牙扫描...谢谢。编辑:据说在4.4.3(或4.4.4)中已解决。(当然,我们介绍项目的那天……对我们没有好处)。主要问

安卓 : Share session between Webview and httpclient

我的WebView中实际上有一个已记录的session。但我也使用httpclient从网络发送和获取数据。我在互联网上看到无法获取WebView的内容,因此我需要使用我的httpclient从web服务获取数据。问题是这个网络服务使用session...而我的session在我的WebView中,所以httpclient没有它,我无法访问网络服务的内容。我看到很多关于这个问题的帖子,但我不明白解决方案。这是我在onPageStarted上所做的:CookieManagermgr=CookieManager.getInstance();Log.i("URL",url);Log.i("C

android - 如何处理支持/设计库新 Bottom Sheet 的问题?

背景我使用了bottom-sheet的修改版本库(here,基于thislibrary,也写了关于它here),以便在折叠(也称为“窥视”)状态和展开状态之间有一个很好的过渡。图书馆有它的问题,但总的来说,我已经解决了所有问题。问题最近我们发现,在从所有广告网络屏幕返回到具有BottomSheet的屏幕后,BottomSheet会进入一种奇怪的展开状态。我决定是时候尝试支持库的新BottomSheet(显示here),但我发现它有很多基本的相关问题:BottomSheet立即显示,但高度错误。它必须立即配置高度,不支持“wrap_content”,展开时也不能有“match_paren

android - 如何从浏览器接收 "Share URL"?

我阅读了这篇文章(HowdoIhandlethebrowser's"sharepage"intentinandroid?),我可以获取共享链接来检测我的应用程序,现在如何让Activity接收URL?找到答案:Intentintent=getIntent();if(savedInstanceState==null&&intent!=null){Log.d(TAG,"intent!=null");if(intent.getAction().equals(Intent.ACTION_SEND)){Log.d(TAG,"intent.getAction().equals(Intent.ACT