Special effects made using android. support. v8.renderscript, androidsupportv8

Source: Internet
Author: User

Special effects made using android. support. v8.renderscript, androidsupportv8

Https://github.com/daimajia/AndroidViewHover


This is a special effect made by a Chinese programmer on github. Chinese programmers are quite cool (but they can't stay in China ).

In this demo, RenderScript is the Android support library. The directory that supports this jar package is in \ sdk \ build-tools \. (I found it after a while. android. support. v8.renderscript has to say that I am a newbie ~ A lot of things don't understand, but I have a good spirit. I know how to think about it and how to solve the problem. I will praise myself)

With the worship of Daniel, I downloaded this project, and then created a new Plugin in eclipse to test the code. Many problems found ......

First, add the jar packages provided at the bottom of the above URL, including nineoldandroid and androidEas .., androidview .. there is also an androidviewhover, but I didn't add the last one to the project, because the code I copied directly uses the source code file of the library in the downloaded project, this androidviewhover is only after library packaging. Although it is faster to compile the class, I have not used this jar package for testing, and I can see how others write this jar code. If Multiple dex is added, a large number of errors occur due to repeated jar packages or classes. As an experienced cainiao, I realized my problem and solved it.

Finally, add the project library file support-v7, this step is not smooth, because the activity in this demo inherits ActionBarActivity, and this class in the jar package of v7, however, after adding the library file, the file still cannot be found, and an error occurs:

Excerpt:

The type android. support. v4.app. TaskStackBuilder $ SupportParentable cannot be resolved.

Today, when using The ActionBar of a lower version, when inheriting The ActionBarActivity, The "The type android. support. v4.app. taskStackBuilder $ SupportParentable cannot be resolved. it is indirectly referenced from required. class files "error. I have been checking the Internet for a long time and finally solved it.

Problem Source: because in the copy of the jar package of the project, the Eclipse built-in android-support-v4.jar package copied to the 'android-support-v7-appcompat 'Library Project, replacing the original android-support-v4.jar, an error is reported when the version of Eclipse is low.

Solution: Of course, replace the android-support-v4.jar with the android-support-v4.jar under .. \ sdk \ extras \ android \ support \ v7 \ appcompat \ libs.

PS: due to temporary negligence, we have been searching for and solving the error issue for a lot of time. Record it here.



I did solve the problem according to the above method. I removed the v4 and v7jar packages in the v7 library project file, added them to my project, and finally cleaned them, no error is reported. This demo is quite special. I have used many other open-source git resources. I just want to say that the cool guys will integrate the resource code for my use, and then upgrade the experts! It is useful to com. makeramen. RoundImageView and the class com. squareup. picasso. Transformation. I admire it! My tears shed tears when I knew the truth ......


Finally, we successfully completed the testing and running of this demo!


Ps: forget to write an important one. You still need to use renderscript

1. In the class where you need to use RenderScript, import the RenderScript graphics library package: android. support. v8.renderscript. If you already have the built-in RnederScript (for example, you are using Android 4.3), you need to import the package fromandroid.renderscriptChangeandroid.support.v8.renderscript.

import android.support.v8.renderscript.*;

2. In your project. properties, make sure that your target code is android-18 and add the following code:

renderscript.target=18renderscript.support.mode=truesdk.buildtools=18.1.0

That's all! With the RenderScript support library, you can continue to use the native RenderScript package in app development (with some minor exceptions, which will be mentioned below ), you can also use the latest features of the RenderScript toolchain in your own scripts.

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



What software can be used to create special effects subtitles?

If you want to create karaoke subtitles, we recommend that you use the little grizzly bear with premiere, preferably Pro 1.5 with complete functions and less resource occupation. If you want to install Premiere first, and then install little grizzly bear, you can import the subtitles made with little grizzly bear into the Premiere. This is the case for an MTV of your own...

How can I use the software to create a special effect for instant migration?

Audio and video production, special effects, editing, editing, and merging must adopt: fully compatible video editing and production master: PREMIERE general edition, which is the best video processing software, allows you to edit, synthesize, increase, or decrease music videos, perform image cutting, special effects, blue screens, subtitles, sound separation and merging, and sound changes. You can make pictures into videos as you wish. PREMIERE general edition, supports WINDOWS 7, XP, WIN2K 32-bit, and 64-bit (all WINDOWS systems are supported) Secure download (the download page provides free basic tutorials): You can use it permanently after installation ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.