Android Tag 编辑框 - TagsEditText

Rosalie26O 9年前
   <p>Tag输入控件。</p>    <h2>运行效果:</h2>    <p><img src="https://simg.open-open.com/show/c8bef509e1a2694fa8e9318165a10a25.png" alt="Android Tag 编辑框 - TagsEditText" width="400" height="711"></p>    <h2>如何使用</h2>    <p>第一步:Add it in your root build.gradle at the end of repositories:</p>    <pre>  allprojects {      repositories {          maven { url "https://jitpack.io" }      }  }</pre>    <p>第二步. Add the dependency</p>    <pre>  dependencies {      compile 'com.github.mabbas007:TagsEditText:v0.95'  }</pre>    <p>第三步. Add TagsEditText to your layout file</p>    <pre>  <mabbas007.tagsedittext.TagsEditText          android:id="@+id/tagsEditText"          android:layout_width="match_parent"          android:layout_height="wrap_content"          TagsEditText:allowSpaceInTag="true"          TagsEditText:tagsCloseImageRight="@drawable/tag_close"          TagsEditText:tagsBackground="@drawable/square"          TagsEditText:tagsCloseImageLeft="@drawable/dot"          TagsEditText:tagsTextColor="@color/blackOlive"          TagsEditText:tagsTextSize="@dimen/defaultTagsTextSize"          TagsEditText:tagsCloseImagePadding="@dimen/defaultTagsCloseImagePadding"/></pre>