Use of custom carousel image framework and custom carousel image framework

Source: Internet
Author: User

Use of custom carousel image framework and custom carousel image framework

I am a relatively lazy person .. I don't want to talk too much about advanced things. I just want to express it in a simple way .... It is a miserable story for a girl to be a programmer .. Haha

Now let's talk about the use of this framework.

First, your project needs to introduce this dependent library, and then you are working on the heap code...

The xml in your main method must be the package name + class name of your dependent library.

In this way, the java code is very simple. You only need to initialize it.



Private void initAD (){
/**
* Initialize data in carousel Images
*/
For (int I = 0; I Ad ad = new Ad ();
Ad. setImg (img [I]);
Data. add (ad );
}
AdScrollLayout. addImageAndBitMapState (data, R. drawable. point_normal,
R. drawable. point_selected );
}

Hope you like it... Top up

There is no fixed source code for this use... I really don't know how to use it. You can find me...

There is my contact method in the document. The article is just my opinion. If you have any bad ideas, please kindly advise ....

 

Let's take a look at the actual situation.

This is the result of round-robin playback .. You can also slide it manually...

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.