《Android进阶》之第四篇 ViewPagerIndicator的使用

1、先将这个开源框架下载到本地:

Administrator@QH-20141231RFQJ /d/hixin
$ cd ViewPagerIndicator/

Administrator@QH-20141231RFQJ /d/hixin/ViewPagerIndicator
$ git clone https://github.com/JakeWharton/ViewPagerIndicator.git
Cloning into 'ViewPagerIndicator'...
remote: Counting objects: 2700, done.
remote: Total 2700 (delta 0), reused 0 (delta 0), pack-reused 2700 eceiving obje
cts:  98% (2646/2700), 3.11 MiB | 188.00 KiB/s
Receiving objects: 100% (2700/2700), 3.21 MiB | 191.00 KiB/s, done.
Resolving deltas: 100% (1169/1169), done.
Checking connectivity... done.

2、在eclipse中新建android的工程,如下选择,Location选择Library所在的路径。(new—>project...)

这样一个library工程就建立好啦

 

3、在需要使用这个开源框架的项目中,右键点击项目名称,点击Add,就会自动找到这个刚建立好的library工程

 

 

 

程序打包成jar:explort

 

posted @ 2015-04-14 15:29  疾风剑  阅读(290)  评论(0编辑  收藏  举报