Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> 使用android.support.v8.renderscript制作的特效

使用android.support.v8.renderscript制作的特效

編輯:關於Android編程

\

https://github.com/daimajia/AndroidViewHover


<喎?/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+1eLKwmdpdGh1YsnP0ru49tbQufqzzNDy1LHX9rXE0ru49szY0KejrNbQufqzzNDy1LG438rWu7nKx82mxaO1xCiyu7n9xaMmIzM2OTI0O7XEtrzF3Ln6zeLIpcHLo6y5+sTawfSyu9ehKaGjPC9wPgo8cD7V4rj20KFkZW1vwO/D5sq508O1vbXEysdBbmRyb2lk1qez1r/ioaqhqlJlbmRlclNjcmlwdKGj1qez1tXiuPZqYXKw/LXExL/CvNTaXHNka1xidWlsZC10b29sc1zA78Pmo6woztLKx9XSwcu6w9K7u+GyxdXStb3V4rj2o6xhbmRyb2lkLnN1cHBvcnQudjgucmVuZGVyc2NyaXB0sru1w7K7y7XX1Ly6u7nKx7j2ssvE8bChfrrctuC2q873sru2rqOssru5/c7S09DW1r6ryfGyu7Tto6y2rrXD1PXDtMily7y/vKOs1PXDtMilveK+9s7KzOKjrM77zvvX1M7Sse3R79K7z8IpPC9wPgo8cD67s9fFttS088WjtcSz57Ddo6zO0s/C1NjBy9XiuPbP7sS/o6zIu7rz1NplY2xpcHNlwO/Qwr2ov73I67T6wuujrLLiytSho73hufu3os/WzsrM4rK7ydmhraGtPC9wPgo8cD7K18/I0OjSqsztvNPJz8PmzfjWt8/Ct73M4bmptcRqYXKw/M/C1Ni12Na3o6zT0G5pbmVvbGRhbmRyb2lkoaJhbmRyb2lkRWFzLi6homFuZHJvaWR2aWV3Li6horu509C49mFuZHJvaWR2aWV3aG92ZXKjrLK7uf3X7rrz0ru49s7Sw7vM7bzTtb3P7sS/wO+jrNLyzqrO0r+9sbS1xLT6wuvKx9axvdPTw8/C1Ni1xM/uxL/A77XEbGlicm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XRpb27V4rj2wOCjrM7SysfF5bf+tcTO5czlzba12MHLo6HWqrXA1ebP4LXEztImIzMwNTI0O8Dhu6m7qbXEwffPwsC0wcuhraGtPC9wPgo8cD48YnI+CjwvcD4KPHA+1+6688uzwPvN6rPJwcvV4rj2ZGVtb7XEsuLK1NTL0NCjoTwvcD4KPHA+PGJyPgo8L3A+CjxwPnBzOs38vMfQtLj21tjSqrXEo6zKudPDcmVuZGVyc2NyaXB0u7nQ6NKqPC9wPgo8cD48L3A+CjxwPgoxLiDU2sTj0OjSqsq508NSZW5kZXJTY3JpcHS1xMDg1tCjrLW8yOtSZW5kZXJTY3JpcHTNvNDOv+Kw/KO6YW5kcm9pZC5zdXBwb3J0LnY4LnJlbmRlcnNjcmlwdCCho8jnufvE48Tj0tG+rdPQwcvE2tbDtcRSbmVkZXJTY3JpcHQowP3I58Tj08O1xMrHQW5kcm9pZAogNC4zsOaxvimjrMTj0OjSqrDRtbzI67D8tNM8Y29kZT5hbmRyb2lkLnJlbmRlcnNjcmlwdDwvY29kZT64xM6qPGNvZGU+YW5kcm9pZC5zdXBwb3J0LnY4LnJlbmRlcnNjcmlwdDwvY29kZT6hozwvcD4KPHByZSBjbGFzcz0="brush:java;">import android.support.v8.renderscript.*;

2. 在你的project.properties裡,確保你的目標代碼是android-18,並加入下列代碼:

renderscript.target=18
renderscript.support.mode=true
sdk.buildtools=18.1.0

這就可以了!通過RenderScript支持庫,你能夠繼續在app開發中使用原生的RenderScript包(有一些小小的例外情況,下面會提到),並且你還能在你自己的腳本中使用RenderScript工具鏈的最新特性。

For complete details on how to set up the RenderScript Support Library, see Accessing RenderScript Java APIs.


  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved