我一直在尝试使用android站点上显示的示例示例在多个共享元素上实现动画转换
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(this,
Pair.create(view1, "agreedName1"),
Pair.create(view2, "agreedName2"));
Run Code Online (Sandbox Code Playgroud)
但是当我尝试在Eclipse IDE中的示例应用程序上实现此代码时,它说
The method makeSceneTransitionAnimation(Activity, View, String) in the type ActivityOptions is not applicable for the arguments (MyActivity, Pair<View,String>, Pair<View,String>)
Run Code Online (Sandbox Code Playgroud)
我可以在那里使用一些帮助.谢谢.
我对python知之甚少,所以如果我的问题是一个非常基本的问题我会道歉.
假设我有一个清单
lst = [1,2,3,4,5,6,7,8,9,10]
Run Code Online (Sandbox Code Playgroud)
现在我想知道的是,如果有任何方法可以在python中编写以下代码而不使用range()或xrange():
for i in lst:
for j in lst after element i: '''This is the line i want the syntax for'''
#Do Something
Run Code Online (Sandbox Code Playgroud)
第二个循环是在元素之后访问元素,i即,如果i = 3,则j必须从4到10循环,所以如果i和j打印的数字对将是(1,2)..(1,10) ,(2,3)......(2,10),(3,4)..(3,10)等
我不知道在任何搜索引擎上搜索什么或输入什么查询.
任何帮助将非常感激.