Coder Social home page Coder Social logo

androidtagview's Introduction

AndroidTagView

android的云标签。 参考了网上的几个开源项目。

simple2

示例如下:

	<com.ginsmile.androidtagview.HotTagView
            android:id="@+id/htv2"
            android:layout_below="@id/htv"
            android:padding="5dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:text_size="8sp"
            app:text_color="#F1FFFF"
            app:stroke_width="3dp"
            app:line_color="@color/colorAccent"
            app:background_color="@color/colorPink"
            app:textview_padding_left="8dp"
            app:textview_padding_right="8dp"
            app:textview_padding_top="4dp"
            app:textview_padding_bottom="4dp"
            app:textview_margin_left="2dp"
            app:textview_margin_right="2dp"
            app:textview_margin_top="2dp">
        </com.ginsmile.androidtagview.HotTagView>

解释:

  • app:text_size="8sp" 文字大小
  • app:text_color="#F1FFFF" 文字颜色
  • app:stroke_width="3dp" 边框宽度
  • app:line_color="@color/colorAccent" 边框颜色
  • app:background_color="@color/colorPink" 每个小TagView的背景色
  • app:textview_padding="8dp" 每个小TagView里面文字的Padding,不能和以下四个同时使用
  • app:textview_padding_left="8dp" 每个小TagView里面文字的PaddingLeft
  • app:textview_padding_right="8dp"
  • app:textview_padding_top="4dp"
  • app:textview_padding_bottom="4dp"
  • app:textview_margin="2dp" 每个TagView的Margin,不能和以下四个同时使用
  • app:textview_margin_left="2dp" 每个TagView的MarginLeft
  • app:textview_margin_right="2dp"
  • app:textview_margin_top="2dp"
  • app:textview_margin_bottom="2dp"

参考资料:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.