资源简介
Android 抛物线动画, 用 Android Object Animator实现

代码片段和文件信息
package com.example.testpicture;
import android.animation.Keyframe;
import android.animation.objectAnimator;
import android.animation.PropertyValuesHolder;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.onclickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.animation.BounceInterpolator;
import android.view.inputmethod.EditorInfo;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.example.model.ParabolaAlgorithm;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout layout = new LinearLayout(this);
layout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT LayoutParams.MATCH_PARENT));
layout.setPadding(0 100 0 0);
layout.setOrientation(LinearLayout.VERTICAL);
final ImageView imageView = new ImageView(this);
imageView.setImageResource(R.drawable.face_0_063);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT
LayoutParams.WRAP_CONTENT);
params.setMargins(0 200 0 0);
imageView.setLayoutParams(params);
final TextView textView1 = new TextView(this);
textView1.setText(“第一坐标点(空格区分x y)“);
layout.addView(textView1);
final EditText editText1 = new EditText(this);
editText1.setPadding(20 10 20 10);
editText1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT LayoutParams.WRAP_CONTENT));
editText1.setHint(“第一坐标点(空格区分x y)“);
editText1.setText(“6 15“);
editText1.setSingleLine();
editText1.setInputType(EditorInfo.TYPE_CLASS_NUMBER);
layout.addView(editText1);
final TextView textView2 = new TextView(this);
textView2.setText(“第二坐标点(空格区分x y)“);
layout.addView(textView2);
final EditText editText2 = new EditText(this);
editText2.setHint(“第二坐标点(空格区分x y)“);
editText2.setPadding(20 10 20 10);
editText2.setSingleLine();
editText2.setInputType(EditorInfo.TYPE_CLASS_NUMBER);
editText2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT LayoutParams.WRAP_CONTENT));
editText2.setText(“50 70“);
layout.addView(editText2);
final TextView textView3 = new TextView(this);
textView3.setText(“第三坐标点(空格区分x y)“);
layout.addView(textView3);
final EditText editText3 = new EditText(this);
editText3.setHint(“第三坐标点(空格区分x y)“);
editText3.setPadding(20 10 20 10);
editText3.setSingleLine();
editText3.setInputType(EditorInfo.TYPE_CLASS_NUMBER);
editText3.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT LayoutParams.WRAP_CONTENT));
editText3.setText(“120 -100“);
layout.addView(editText3);
Button button = new Button(this);
button.setText(“test“);
button.setPadding(20 10 20 10);
button.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 885 2014-12-30 11:19 ParabolaAlgorithm.java
文件 5098 2015-11-10 18:39 MainActivity.java
相关资源
- AndroidStudio版直连sqlserver
- android带百分比进度条的文件上传,使
- 美食天下项目Android版源码和Web版源码
- Android之自定义ToggleButton使用
- Android非常漂亮的登录界面
- pc与android通过usb socket实现手机通信
- android毕业设计
- 百度地图自定义Markerandroid
- Android分区工具包
- android-support-v4.jar已打包进去源代码
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- android 视频播放器 项目和原码
- Android【动画】【特效】 17种动画特效
- 基于Android智能家居详细设计(经典)
- android通过JDBC连接Mysql数据库
- Android通讯录的源代码
- android 瀑布流Demo
- 指纹传感器FPC1080在android下的驱动
- delphi xe5 android 调用照相机摄像头拍照
- Android手机连连看游戏源码
- android-sdk-windows v2.3离线完整版
- android 底部弹出菜单(带透明背景)
- Android工程模式简介.rar
- Android蓝牙和Cors网络开发源码
- Android powermanger wakelock
- Android v7的一些jar包
- 最新android supportV7包
- android图片压缩工具类分享
- 单机搭建Android(解决Network is unreach
评论
共有 条评论