Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

aqoong/HashTagEditTextView

Open more actions menu

Repository files navigation

HashTagEditTextView

[Android CustomView] HashTag Edit TextView

Alt Text

How to Use

.xml setting

<com.aqoong.lib.hashtagedittextview.HashTagEditTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:itemMaxLength="5"                               //Length of tag
        app:itemMaxCount="5"                                //Number of tags
        app:autoPoundSign="true"                            //Enter '#' automatically by blanking.
        app:itemMaxLengthOverMent="The tag is too long." 
        app:itemMaxCountOverMent="Too many tags."
        />

.java

    HashTagEditTextView tagTextView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ...
        String[] hashTagArray = tagTextView.getInsertTag();
        ...
    }

Add HashTagEditTextView Lib

  • project build.gradle
  allprojects {
    repositories {
      google()
      jcenter()
      ...
      maven { url "https://jitpack.io"}
      ...
    }
  }
  • app build.gradle
  dependencies {
    ...
    implementation 'com.github.aqoong:HashTagEditTextView:Tag'
    ...
  }

About

[Android CustomView] HashTag Edit TextView

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.