我想沿x轴旋转视图.我尝试执行以下操作:
AnimationSet anim=new AnimationSet(true);
RotateAnimation rotate=new RotateAnimation(0.0f,-10.0f,RotateAnimation.ABSOLUTE,0.5f,RotateAnimation.RELATIVE_TO_SELF,0.5f);
rotate.setFillAfter(true);
rotate.setDuration(5000);
rotate.setRepeatCount(0);
anim.addAnimation(rotate);
View relatv1=(View)findViewById(R.id.relativeLayout1);
relatv1.setAnimation(anim);
Run Code Online (Sandbox Code Playgroud)
但我改为视图沿y轴旋转.我怎样才能完成x轴旋转?
我正在尝试在我的 Web 应用程序中设置社交注册(google、facebook、twitter)。我使用 Django Rest Framework 作为后端,使用 Angular2 作为前端。标准注册适用于 django-rest-auth。我想用 django-allauth 设置社交认证部分。社会认证场景是:
但首先,我不知道如何将用户重定向到 facebook 授权页面。当我访问http://localhost:8000/rest-auth/facebook/ 时,表单所需的数据是“访问令牌”和“代码”。但是要设置这些数据,我必须从 facebook 授权页面获取它们。我对吗?我该怎么做?如何将用户重定向到社交(facebook、google、twitter)授权页面?
django-rest-framework django-allauth django-rest-auth angular
我是新手使用这门Collections课程.
我想按降序对一堆检查标记进行排序,(430,400,372,500)然后按顺序显示数字(System.out.println()),以便500标记获得位置1,430标记获得位置2等.
我怎么做?