我正在使用属性动画来旋转片段离开屏幕.以下是我的动画xml代码:
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<objectAnimator
android:duration="500"
android:propertyName="rotationY"
android:valueFrom="-70"
android:valueTo="0" >
</objectAnimator>
<objectAnimator
android:duration="500"
android:propertyName="alpha"
android:valueFrom="0"
android:valueTo="1" >
</objectAnimator>
Run Code Online (Sandbox Code Playgroud)
我想以左边缘的中心点作为枢轴旋转.这该怎么做?
我试图在我的Ubuntu系统上进行kivy工作.我按照他们的wesbite的指示.
但是当我尝试从他们的网站运行以下hello world代码时:
import kivy
kivy.require('1.5.1') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
return Button(text='Hello World')
if __name__ == '__main__':
MyApp().run()
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
[INFO ] Kivy v1.5.1
[INFO ] [Logger ] Record log in /home/malik/.kivy/logs/kivy_13-03-08_6.txt
[INFO ] [Factory ] 137 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> …Run Code Online (Sandbox Code Playgroud)