欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Android實(shí)現(xiàn)3D標(biāo)簽云簡單效果-創(chuàng)新互聯(lián)

本文實(shí)例為大家分享了Android實(shí)現(xiàn)3D標(biāo)簽云效果展示的具體代碼,供大家參考,具體內(nèi)容如下

創(chuàng)新互聯(lián)公司是專業(yè)的陳倉網(wǎng)站建設(shè)公司,陳倉接單;提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作,網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行陳倉網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

一、關(guān)于3D標(biāo)簽云

TagCloudView是一個(gè)完全基于Android ViewGroup編寫的控件,支持將一組View展示為一個(gè)3D標(biāo)簽云,并支持全方向滾動(dòng)。
GitHub中的鏈接地址

(一)效果

頁面上標(biāo)簽的數(shù)據(jù)可以自己定義,數(shù)據(jù)頁面可以滑動(dòng)選擇。

(二)AndroidStudio中使用

1.在build.gradle中添加

compile ‘com.moxun:tagcloudlib:1.0.3'

2.在布局文件中引入

3.設(shè)置Adapter 繼承TagsAdapter,實(shí)現(xiàn)以下方法

(1)public int getCount();

返回Tag數(shù)量

(2)public View getView(Context context, int position, ViewGroup parent);

返回每個(gè)Tag實(shí)例

(3)public Object getItem(int position);

返回Tag數(shù)據(jù)

(4)public int getPopularity(int position);

針對(duì)每個(gè)Tag返回一個(gè)值,但是什么作用

4.標(biāo)簽云對(duì)象的屬性設(shè)置

二、簡單的使用示例

(一)布局文件activity_main.xml設(shè)計(jì)

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:app="http://schemas.android.com/apk/res-auto"
 android:id="@+id/activity_main"
 android:layout_width="match_parent"
 android:layout_height="match_parent">

 <com.moxun.tagcloudlib.view.TagCloudView
  android:id="@+id/tcv_tags"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:autoScrollMode="uniform"
  app:radiusPercent="0.8" />

</RelativeLayout>

網(wǎng)站題目:Android實(shí)現(xiàn)3D標(biāo)簽云簡單效果-創(chuàng)新互聯(lián)
文章起源:http://chinadenli.net/article8/cdpsip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供移動(dòng)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)公司、搜索引擎優(yōu)化響應(yīng)式網(wǎng)站營銷型網(wǎng)站建設(shè)、面包屑導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管