我想为<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="br.com."
android:versionCode="1"
android:versionName="2.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="11" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_OWNER_DATA" />
<uses-permission android:name="android.permission.READ_OWNER_DATA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false"
android:xlargeScreens="true" />
<application
android:name=".BvApplication"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name=".BvNewsstandActivity"
android:launchMode="singleTop"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name=".LoginActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="br.com.digitalpages.reader.activity.HelpActivity"
android:theme="@style/Transp" />
<activity
android:name="br.com.digitalpages.reader.ReaderActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
<activity
android:name="br.com.digitalpages.commons.activity.LoadingActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity
android:name="br.com.digitalpages.commons.activity.WebActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
</application>
中的一行实现动画。该行被定义为点<canvas>
的数组。
很容易将这样的数组补间到另一个长度相同的状态。
但是如何处理开始状态和状态结束的情况有多长?例如,我有一个带点的三角形(闭合线):
{x, y}
我想用三角形将这个三角形设置为正方形:
[{x:0, y:0}, {x:0, y:10}, {x:10, y:10}]
此类案例是否有任何实现或库?或者任何有用的算法?