• Stars
    star
    663
  • Rank 67,991 (Top 2 %)
  • Language
    Java
  • Created almost 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Android TagView Widget. You can edit the tag's style, and set listener of selecting or deleting tag.

Android-Cloud-TagView-Plus

###Introduction An Android Cloud Tag Widget. You can edit the tag's style, and set listener of selecting or deleting tag. Used in APP with ten millions of users.

###Screenshot Sample

Sample

used in app with ten millions of users(YY)

enter image description here

###Feature

  • Editable Style of Text, such as Font size and color.
  • Editable Style of Tag, Background/Pressed Color, Radius effect, Custom Background, Delete mode.
  • Listener of tag selecting and deleting.
  • Can be created from XML file or Java code.

###Sample Apk download apk

###Usage used in xml file

<me.kaede.tagview.TagView
            android:id="@+id/tagview"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            app:lineMargin="5dp"
            app:tagMargin="3dp"
            app:textPaddingBottom="3dp"
            app:textPaddingLeft="10dp"
            app:textPaddingRight="10dp"
            app:textPaddingTop="3dp">
</me.kaede.tagview.TagView>

or used by java code

TagView tagview2 = new TagView(this);
tagview2.setLineMargin(20f);//dp
tagview2.setTagMargin(20f);
tagview2.setTextPaddingLeft(20f);
tagview2.setTextPaddingTop(20f);
tagview2.setTextPaddingRight(20f);
tagview2.setTexPaddingBottom(20f);

add a lot of tags

String[] tags = getResources().getStringArray(R.array.continents);
tagView.addTags(tags);

add a tag in details

Tag tag = new Tag("Tag Text");
tag.tagTextColor = Color.parseColor("#FFFFFF");
tag.layoutColor =  Color.parseColor("#DDDDDD");
tag.layoutColorPress = Color.parseColor("#555555");
//or tag.background = this.getResources().getDrawable(R.drawable.custom_bg);
tag.radius = 20f;
tag.tagTextSize = 14f;
tag.layoutBorderSize = 1f;
tag.layoutBorderColor = Color.parseColor("#FFFFFF");
tag.isDeletable = true;
tagView.addTag(tag);

###To-Do List

  • Animation Support
  • Multi Tag Arrange Type (such as Right-To-Left arrange)
  • Improve Performance

###Problem TagView supports to be used as ItemView in ListView/GridView/RecyclerView, but it will remove and re-add its tags very frequently when you are flinging. Therefore the performance of TagView in ItemView maybe not good if you have a lot of ItemViews using TagView. And in this situation it is advised to use SpannableString instead of views. I will add SpannableString version of TagView to improve the performance in ItemView.

###Substitute

##中文 ###简介 Android上的云标签控件,除了能设置标签的样式外,还能监听标签的点击和删除事件。目前已在千万级用户的应用上使用。

###特点

  • 支持设置标签内容的样式,如字体大小、颜色
  • 支持设置标签的颜色(或者自定义布局)、点击效果、圆角效果、是否可删除
  • 能监听标签的点击和删除事件
  • 支持从代码或者XML创建TagView

###待完成

  • 动画效果

###License

Copyright 2015 Kaede Akatsuki

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

android-dynamical-loading

🔌 Android plugin development library (Frontia) and tech introductions, which means that you can upgrade your Android APP or fix emergent bugs, as well as reduce the file size of Apk without any re-installation.
Java
1,076
star
2

android-mvp-pattern

An android simple but clear sample project for MVP pattern, including mvp usage with eventbus. @Deprecated, try google official solution: https://developer.android.com/topic/libraries/architecture/
Java
696
star
3

fresco-sample-usage

Android demo project as sample usage for Facebook's Fresco in detail, which is an awesome image loading library for Android.
Java
213
star
4

Andriod-Seamless-ViewPager-Header

SeamlessViewpagerHeader offers a Viewpager with a scrollable header, like Android Lollipop Contacts or Google Play Pagers.
Java
129
star
5

notion-up

Use NotionUp (Notion Backup) + CircleCI to backup your notion data nightly.|自动备份 Notion 数据。|Notion データのバックアップを自動化する
Python
121
star
6

notion-down

Notion >> Markdown. Python utility that converts Notion pages into MD files, along with intergation to build static webpages such as Hexo | 自动从 Notion 笔记生成 MD 文件,并部署到 Hexo 静态博客 | Notion Pages より Markdown Files をコンバートする、更に Hexo Webpages までの自動化も可能
Python
120
star
7

dualapp-mediastore-compatibility

安卓双开/分身 MediaStore 兼容性测试。Tuning of Android MediaStore & File IO compatibility issues between HostProfile App and WorkProfile/DualApp/MultiApp.
Java
34
star
8

gradle-maven-publication

Gradle maven artifacts publishing walkaround with 'maven', 'maven-publish', 'android-maven' gradle plugins. The project contains both of scripts and custom gradle plugin which are designed to make the publishing jobs much simpler and correct. Of course, both java & android project are supported!
Groovy
18
star
9

Feya

'Feya' is a repo for code snippet tweaking. Nothing can be found here.
Java
14
star
10

how-old-camera

An android application for Microsoft how-old.net, as Sample usage for Android `MVP` design pattern and `android-async-http`.
Java
12
star
11

b-log

BLog is not blog but an android logcat entended utility library. It helps to log message to file as well as print in logcat window.
Java
12
star
12

comment-formatter

Comment Formatter is an IntelliJ plugin that formats comments to a friendly style.
Java
10
star
13

aab-signer

Android AppBundle aab package signing tool.
10
star
14

pixel-bar

Google's Pixel-like search bar for launcher
Kotlin
9
star
15

Android-MarqueeView

Android上的跑马灯布局,布局里面的内容会像跑马灯一样滚动。
Java
6
star
16

android-swipe-loading-view

SwipeLoadingView offers a LoadingView like drawer when you are swiping on it. You can use this view when you want to switch something like video or picture.
Java
5
star
17

junwind

Get Java thread's stacktrace by native tid.
Java
5
star
18

leakcanary-demo

Demo project for Square's LeakCanary, a awesome library that help you to detect memory leak in your Android project.
Java
4
star
19

intransitives

Gradle plugin for intransitive-complie dependencies.
Groovy
2
star
20

Android-SquareLayout

Android SquareLayout
Java
2
star
21

rainy-mood

Android APP wiht rain sounds of different scenes. It was created for me because I had been in trouble with sleep for a long time and this APP is helpful.
Java
2
star
22

moe-navigator

nijigen website navigator
HTML
1
star
23

hackintosh-changelog

Hackintosh setups (CLOVER/OC) for my PC: Z170i + 6700K Desktop, XPS 9360 QHD+ Laptop
ASL
1
star