Android TagView-HashTagView

Overview

Android TagView

Android TagView-HashTagView

Android Arsenal

Xamarin version, written by @fernandolopes
https://github.com/fernandolopes/Xamarin.Android.TagView

Simple android view to display collection of colorful tags efficiently. You can edit the tag's style, and set listener of selecting or deleting tag. Example usages can be found in example project.

Screen

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.

Gradle

repositories {
   maven {
       url "https://jitpack.io"
   }
}
dependencies {
   compile 'com.github.Cutta:TagView:1.3'
}

Usage

<com.cunoraz.tagview.TagView
            xmlns:tagview="http://schemas.android.com/apk/res-auto"
            android:id="@+id/tag_group"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_margin="10dp" 
            tagview:lineMargin="5dp" 
            tagview:tagMargin="5dp" 
            tagview:textPaddingLeft="8dp" 
            tagview:textPaddingTop="5dp" 
            tagview:textPaddingRight="8dp" 
            tagview:textPaddingBottom="5dp" />
TagView tagGroup = (TagView)findviewById(R.id.tag_view);
//You can add one tag
tagGroup.addTag(Tag tag);
//You can add multiple tag via ArrayList
tagGroup.addTags(ArrayList<Tag> tags);
//Via string array
addTags(String[] tags);

 
  //set click listener
     tagGroup.setOnTagClickListener(new OnTagClickListener() {
           @Override
           public void onTagClick(Tag tag, int position) {
           }
       });
       
  //set delete listener
           tagGroup.setOnTagDeleteListener(new OnTagDeleteListener() {
           @Override
           public void onTagDeleted(final TagView view, final Tag tag, final int position) {
           }
       });

//set long click listener
     tagGroup.setOnTagLongClickListener(new OnTagLongClickListener() {
           @Override
           public void onTagLongClick(Tag tag, int position) {
           }
       });

Sample APK

https://www.dropbox.com/s/m1y1npssj5b4bck/app-debug.apk?dl=0

Credits

License

Copyright 2015 Cüneyt Çarıkçi.

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.

Comments
  • Supporting drag and drop on tags

    Supporting drag and drop on tags

    Hi, I am just getting on board with the library. Would like to know if there is any way to drag and drop tags from one TagView to another. My use case is to create a tag filter using the tags from the tag view. Thanks, Prasanna

    opened by ghost 5
  • Implementation OOP Methods for encapsulation

    Implementation OOP Methods for encapsulation

    Normally, that class (Tag.class) should be encapsulation If you want to access member variables, you should use getter / setter method. If not, it is against the OOP principle.

    and i was updated build setting :D

    opened by TerryJung 3
  • TagView.removeAll and remove(i) dosn't work

    TagView.removeAll and remove(i) dosn't work

    I have a bug.

    first. i add 4 Tag in A Fragment. and then i start to B Fragment to update Tag . A fragment also need to update sync. and i Transfer a List to A fragment with EventBus. in A Fragment , once i get Event , i call TagView.removeall(),then add new Tag. but the 4 previous Tag is still visible. but my Log tell me, after removeAll , the TagView.getChildCount() is 0. so it should be removeall.

    tagView.removeAll(); Logger.e(TAG,"tagView.getChildCount() = "+tagView.getChildCount()); Can you help me ?

    opened by lwj1994 3
  • First Tag text size greater than device width, Tag does not show.

    First Tag text size greater than device width, Tag does not show.

    If i add the first tag which is the header tag in your lib, and if its width is greater than device width, then the tags are not getting displayed in the view, or they are not getting added in the tag group. And also after the header tag being larger than the screen, if i add other small letters tags then, they are also not getting added and displayed.

    opened by parthvora25 3
  • The gradle dependency is not working in android studio

    The gradle dependency is not working in android studio

    opened by parthvora25 2
  • Problem with add two TagView in the same Layout

    Problem with add two TagView in the same Layout

    Hi, There is a problem to add two different TagView in the same layout? when i try to do this is i get a error..

    Theme: themes:{default=overlay:com.cyngn.hexo, iconPack:com.cyngn.hexo, fontPkg:com.cyngn.hexo, com.android.systemui=overlay:com.cyngn.hexo, com.android.systemui.navbar=overlay:com.cyngn.hexo} android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.design.internal.NavigationMenuItemView

    The code i used is <com.cunoraz.tagview.TagView android:id="@+id/tag_group" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="10dp" />

    and when i duplicate this (and change the id name..) i get the error.

    Thanks, Meni.

    opened by meni432 1
  • Tag unique ID

    Tag unique ID

    Hello,

    Could you please add an optional string property to the Tag object, called "uniqueID" or something like that, so I can use this to tell the difference between two tags with the same text (users with the same display name)?

    Thanks!

    opened by daerimin 1
  • LocalVariable why?

    LocalVariable why?

    See no need of creation additional local variable targetTag.

    deletableView.setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View v) {
                            if (mDeleteListener != null) {
                                Tag targetTag = tag;
                                mDeleteListener.onTagDeleted(TagView.this, targetTag, position);
                            }
                        }
                    });
    
    opened by mtychyna 1
  • Methods count & gradle build settings

    Methods count & gradle build settings

    I would love to see the gradle settings to include this into your app in the README.md as well as the methods count as this plays a huge role in modern android development.

    If you want me to I can create a pull-request.

    Here are the Infos:

    Gradle

    repositories {
        maven {
            url "https://jitpack.io"
        }
    }
    
    dependencies {
        compile 'com.github.Cutta:TagView:c15dd8288a'
    }
    

    Taken from Android-Arsenal

    Methods-Count

    The badge indicating the methods-count. Taken from methodscount.com

    opened by meierjan 1
  • Change in documentation required

    Change in documentation required

    In current readme.md, The xml tag for TagView is <cuneyt.example.com.tagview.Tag.TagView

    Which is not found in classpath, such giving exception.

    Replacing above line with <com.cunoraz.tagview.TagView works and gives no exception. Please update documentation reflecting this change.

    opened by PrashamTrivedi 1
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 0
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 5% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 7.54kb | 7.04kb | 6.66% | | /app/src/main/res/mipmap-xhdpi/ic_launcher.png | 4.73kb | 4.46kb | 5.76% | | /app/src/main/res/mipmap-hdpi/ic_launcher.png | 3.34kb | 3.24kb | 2.90% | | /app/src/main/res/mipmap-mdpi/ic_launcher.png | 2.15kb | 2.10kb | 2.40% | | | | | | | Total : | 17.76kb | 16.83kb | 5.20% |


    📝docs | :octocat: repo | 🙋issues | 🏅swag | 🏪marketplace

    opened by imgbot[bot] 0
  • add spannable support

    add spannable support

    It's now possible to use with spannable strings.

    Sample usage:

    SpannableString spannableText=  new SpannableString(text);
    . . . 
    new Tag(spannableText);
    

    ss_tagview_spannable_support

    opened by fatihergin 0
  • TagView not display tag in proper format At first Time

    TagView not display tag in proper format At first Time

    when 1st time Tagview is call it don't show the tags in proper format .single tag shown in single line at 1st call, after 1st call it will work correct

    opened by ParasharAnkit 1
  • Colour of the tag not changing

    Colour of the tag not changing

    I'm trying to change colour of the tag if the tag is clicked. I'm doing this is onTagClickListener, code can be found below:

    private OnTagClickListener onTagClickListener = new OnTagClickListener() { @Override public void onTagClick(Tag tag, int i) {
    tag.tagTextColor = getContext().getColor(R.color.black); } };

    Is it possible to change colour of the tag this way? Also, I need to change colour of the tag depending on the present colour of the tag. Is it possible to do using this library? Thanks.

    opened by ranganatha2g 0
  •  When used in recycle view, addTags can not be updated.

    When used in recycle view, addTags can not be updated.

    When used in recycle view, addTags can not be updated. Do not calculate screen length. It is vertical alignment. You can not do notifyDataSetChanged because addTags in adapter. What should I do?

    opened by Ahyounglove 2
Owner
Cüneyt Çarıkçi
Android Developer
Cüneyt Çarıkçi
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. U

Kaede Akatsuki 663 Nov 19, 2022
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. U

Kaede Akatsuki 663 Nov 19, 2022
:four_leaf_clover:A beautiful android tag group widget.

AndroidTagGroup The TagGroup is a special layout with a set of tags. You can use it to tag people, books or anything you want. Also you can contribute

Jun Gu 2.5k Jan 2, 2023
Tagcloud component for android

TagCloudView English Sample 扫码下载示例APK 简介 TagCloudView是一个基于ViewGroup实现的控件,支持将一组View展示为一个3D球形集合,并支持全方向滚动。 UI效果 Image 使用 Eclipse copy代码,或使用ADT的maven插件 An

moxun 1.6k Dec 20, 2022
Simple android view to display list of colorful tags efficiently.

Android TagView Simple android view to display collection of colorful tags efficiently. Library uses TextView as a base, and creates custom Spanes to

Michał Charmas 175 Nov 11, 2022
A TagView library for Android. Customize your own & Drag effect.

AndroidTagView An Android TagView library. You can customize awesome TagView by using this library. Screenshots Usage Step 1 Add below dependency in y

lujun 1.7k Dec 29, 2022
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. U

Kaede Akatsuki 663 Nov 19, 2022
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. U

Kaede Akatsuki 663 Nov 19, 2022
A TagView library for Android. Customize your own & Drag effect.

AndroidTagView An Android TagView library. You can customize awesome TagView by using this library. Screenshots Usage Step 1 Add below dependency in y

lujun 1.7k Dec 29, 2022
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.

AnyChart for Android AnyChart Android Charts is an amazing data visualization library for easily creating interactive charts in Android apps. It runs

AnyChart 2k Jan 4, 2023
android-delicious Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play.

Delicious Android Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play. Fea

Alexander Blom 137 Nov 20, 2022
Quality-Tools-for-Android 7.5 0.0 L5 Java This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android platform.

Quality Tools for Android This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android pl

Stéphane Nicolas 1.3k Dec 27, 2022
BlackDex is an Android unpack tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phones or emulators, you can unpack APK File in several seconds.

BlackDex is an Android unpack tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phones or emulators, you can unpack APK File in several seconds.

null 4.3k Jan 2, 2023
Learn Jetpack Compose for Android by Examples. Learn how to use Jetpack Compose for Android App Development. Android’s modern toolkit for building native UI.

Learn Jetpack Compose for Android by Examples. Learn how to use Jetpack Compose for Android App Development. Android’s modern toolkit for building native UI.

MindOrks 382 Jan 5, 2023
Android-application used as an introduction to Android development and Android APIs.

Android-application used as an introduction to Android development and Android APIs. This application is an implementation of the game Thirty and written in Kotlin.

Oscar Johansson 0 Nov 6, 2021
Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

OpenBytes 1 Feb 18, 2022
AndroidIDE - an IDE for Android to develop full featured Android apps on Android smartphones.

AndroidIDE - an IDE for Android to develop full featured Android apps on Android smartphones.

Akash Yadav 615 Dec 27, 2022
Android cutout screen support Android P. Android O support huawei, xiaomi, oppo and vivo.

CutoutScreenSupport Android cutout screen support Android P. Android O support huawei, xiaomi, oppo and vivo. Usage whether the mobile phone is cutout

hacket 5 Nov 3, 2022
Android Library to rapidly develop attractive and insightful charts in android applications.

williamchart Williamchart is an Android Library to rapidly implement attractive and insightful charts in android applications. Note: WilliamChart v3 h

Diogo Bernardino 4.9k Dec 30, 2022