首页 \ 问答 \ 在分享帖子后,在Android中使用Fabric中的架构是否有任何回调方法?(Is there any callback method in twitter using fabric in android after sharing the post?)

在分享帖子后,在Android中使用Fabric中的架构是否有任何回调方法?(Is there any callback method in twitter using fabric in android after sharing the post?)

我使用以下代码在Twitter上发布推文,用于自定义登录按钮

File file = captureScreen();
TweetComposer.Builder builder = new TweetComposer.Builder(getActivity())
.text("just setting up my Fabric.")
.image(Uri.fromFile(file));
builder.show();

与图像共享帖子工作正常,是否有任何回调方法成功向用户显示警报。

提前致谢。


I have used the following code to post the tweet in twitter,for the custom login button

File file = captureScreen();
TweetComposer.Builder builder = new TweetComposer.Builder(getActivity())
.text("just setting up my Fabric.")
.image(Uri.fromFile(file));
builder.show();

sharing the post with image is working fine, is there any call back method to show alert to user in success.

Thanks in advance.


原文:https://stackoverflow.com/questions/38429017
更新时间:2023-09-30 12:09

最满意答案

我开始以三角形为中心,然后事情变得更容易......

var Triangle = paper.polyline("-5,5 0,-5 5,5");

http://codepen.io/anon/pen/PNQXbQ


I'd start with centering your triangle, then things get easier...

var Triangle = paper.polyline("-5,5 0,-5 5,5");

http://codepen.io/anon/pen/PNQXbQ

相关问答

更多
  • 我认为它应该如此简单 text.attr({ text: 'my new text'}); 所以 setTimeout( function() { text.attr({ text: 'my new text'}) }, 2000 ); 会测试它 I think it should be as simple as text.attr({ text: 'my new text'}); so setTimeout( function() { text.attr({ text: 'my new text'} ...
  • 我开始以三角形为中心,然后事情变得更容易...... var Triangle = paper.polyline("-5,5 0,-5 5,5"); http://codepen.io/anon/pen/PNQXbQ I'd start with centering your triangle, then things get easier... var Triangle = paper.polyline("-5,5 0,-5 5,5"); http://codepen.io/anon/pen/PNQX ...
  • 在var纸行之后你有一个顽皮的逗号,它应该是一个分号,因为你没有在下一行定义一个变量。 var paper = Snap(500,500); //<-- this semicolon Snap.load('ringing-phone.svg', .... You have a naughty comma after the var paper line, it should be a semicolon, as you aren't defining a variable on the next line ...
  • 我认为问题在于你不能将动画应用到一个集合(编辑:现在可能),所以你必须将它应用到每个元素。 为此,您可以使用forEach命令,所以... grabPathRectangles.forEach( function(elem,i) { elem.animate({fill: 'red'}, 1000, mina.ease); }); Jsfiddle在这里... http://jsfiddle.net/DZ4wZ/3/ 或者我怀疑你可以把它们放到一个小组中,并且如果这样做更有意义,就可 ...
  • 如果您不包含自己的旋转中心,Snap将使用其计算的边界框中心来旋转。 所以它就像删除它一样简单。 start_gear.animate({ transform: 't630, 240 r540' }, 3000, mina.bounce); 的jsfiddle 如果您只想旋转,并且元素已经应用了变换,则需要包含前一个变换,因此不会被覆盖。 要获得先前的变换,它只是element.transform()。 所以完整的命令将是...... start_gear.animate({ transform: sta ...
  • 只需更新路径的d属性即可。 首先选择路径,如果它尚未存储在变量中: var path = Snap("#p"); 然后更新: path.attr({ d: newD }); Just update the d attribute of the path. < ...
  • 你的意思是这样的吗? var paper = Snap(200,200); var pattern = paper.image("logo.svg",0,0,50,50) .pattern(0,0,50,50); var path = paper.path("M0,0h200v200h-200z").attr("fill", pattern); Do you mean like this? var paper = Snap(200,200); var pattern = paper.image("l ...
  • selectAll将返回一组。 因此,您需要迭代该集合,可能需要使用forEach .... var pathSet = s.selectAll( 'path' ); pathSet.forEach( function( myPath ) { var pathConfig = { from : myPath.attr( 'd' ), to : myPath.attr( 'data-path-hover' ) }; el.add ...
  • 使用s.selectAll("path")返回一组所有路径。 然后你可以使用forEach()来应用你的点击功能来遍历它们。 // wrap existing var s = Snap("#mysvg"); // select inside of the nested element // and add click event handler 'changeColor' var paths = s.selectAll("pa ...
  • 根据文档 ,Snap在动画之后有一个回调函数 如果你想排序几个,你可以使这个更容易一些,并创建一个函数,在那里你只需将它传递给动画数组(参见底部的示例)... var s = Snap("#svg"); var anim1 = function() { triangleClone.animate({'transform' : 'r90,200,200 T400,300'}, 1000, mina.linear, anim2); } var anim2 = function() { tr ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)