All Projects → AssIstne → IconDotTextView

AssIstne / IconDotTextView

Licence: MIT license
Convenient to add a View which contains icon, text and red dot.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to IconDotTextView

Swipelayout
A library what allows you to execute a swipe for the android platform
Stars: ✭ 150 (+581.82%)
Mutual labels:  custom-view
Certificatecamera
证件相机-证件拍照及裁剪
Stars: ✭ 187 (+750%)
Mutual labels:  custom-view
Apporder
骚操作之改造TabLayout,修改指示线宽增加切Tab过渡动画
Stars: ✭ 246 (+1018.18%)
Mutual labels:  custom-view
Android Animations
DIfferent animation samples on Android
Stars: ✭ 152 (+590.91%)
Mutual labels:  custom-view
Android Passcodeview
A custom view with keyboard and character display to be used for authentication
Stars: ✭ 182 (+727.27%)
Mutual labels:  custom-view
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+9831.82%)
Mutual labels:  custom-view
Ezchat
基于网易云信 IM SDK for Android,界面仿造QQ和微信,打造的一款简单的即时通讯 APP,目前可实现好友添加,个人资料修改,基础聊天功能(包括文字,表情,语音,视频,图片和位置信息发送接收功能),Based on Netease cloud letter IM SDK for Android, the interface mimics QQ and WeChat, to create a simple instant messaging APP, which can be realized by adding friends, modifying personal information, basic chatting functions (including text, emoticons, voice, video, Location information send and receive function).
Stars: ✭ 140 (+536.36%)
Mutual labels:  custom-view
PercentBarView
PercentBar
Stars: ✭ 26 (+18.18%)
Mutual labels:  custom-view
Tagimageview
高仿小红书标签添加功能 1.随点击处添加标签 2.计算标签位置 3.可将标签位置还原渲染至不同屏幕尺寸 4.拖拽删除标签
Stars: ✭ 186 (+745.45%)
Mutual labels:  custom-view
Parallaxrecyclerview
Parallax effect on every item of your RecyclerView.
Stars: ✭ 237 (+977.27%)
Mutual labels:  custom-view
Circularseekbar
Custom circular SeekBar (Circle, Semi-circle, and Ellipse) for Android
Stars: ✭ 166 (+654.55%)
Mutual labels:  custom-view
Loadmorewrapper
📦 make recyclerView supports load more and customize the footer view, without changes to the original adater of recyclerView. 在不改动 RecyclerView 原有的 adapter 的情况下,使 RecyclerView 滑动到底部的时候能够加载更多和自定义底部视图。
Stars: ✭ 179 (+713.64%)
Mutual labels:  custom-view
Android Youtube Player
YouTube Player library for Android and Chromecast, stable and customizable.
Stars: ✭ 2,510 (+11309.09%)
Mutual labels:  custom-view
Androidcustomview
一个简单的投票排名对比图
Stars: ✭ 150 (+581.82%)
Mutual labels:  custom-view
Colorseekbar
A colorful SeekBar for picking color
Stars: ✭ 249 (+1031.82%)
Mutual labels:  custom-view
Imageframe
高效省内存播放序列帧动画控件
Stars: ✭ 147 (+568.18%)
Mutual labels:  custom-view
Circularprogressbar
CircularProgressbar project let you create circular progressbar in android
Stars: ✭ 188 (+754.55%)
Mutual labels:  custom-view
RatioLayouts
A collection of ViewGroups which can have a constant width to height ratio.
Stars: ✭ 19 (-13.64%)
Mutual labels:  custom-view
Bezierseekbar
Beautiful custom View, SeekBar selector, easy to use, and rich in customization.漂亮的区间选择器,贝塞尔曲线优雅实现
Stars: ✭ 252 (+1045.45%)
Mutual labels:  custom-view
Jpagerslidingtabstrip
🔥A useful tablayout modify from astuetz/PagerSlidingTabStrip
Stars: ✭ 233 (+959.09%)
Mutual labels:  custom-view

IconDotTextView

Convenient to add a View which contains icon, text and red dot.

Why this View?

Many app has a view which cotains an icon, some text. And it will show a red dot when the app wants to notify the user there are something which are needed to be checked.

Normally, we will do that with a FrameLayout contains a TextView and a View(sometimes another TextView when there are text in the dot). And with this view, you can get rid of all those nested views.

Usage

simplely add this to your build.gradle.

compile 'com.assistne.android:icon-dot-text-view:1.0'

and then you can use it in your layout like:

<com.assistne.icondottextview.IconDotTextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    app:text="Category"
    app:icon="@drawable/ic_shopping_cart_black_48dp"
    app:dot_visible="true"
    app:dot_text="400"
    />

that's it.

Preview

Demo

Supported Attribute

  1. icon : set the icon.
  2. icon_size : set the size of the icon. Default it will use the intrinsic size of the drawable.
  3. icon_width and icon_height : set the width and the height seperately, which will override icon_size.
  4. spacing : the spacing between the icon and the text.
  5. direction : determine the position of the icon and the text. It can be set to row, row_reserve, column and column_reserve. Default it is column which means the icon is above the text.
  6. text, textSize and textColor : just like the TextView.
  7. dot_visible : is the dot visible. Default is not visible.
  8. `dot_size' : the size of the dot.
  9. dot_color : color of the dot. Default is Red.
  10. dot_text, dot_textSize and dot_textColor : the text in the dot.
  11. dot_alignToIcon : the dot can align to the icon or the boarder of the view. Default it aligns to the icon.
  12. dot_alignTo : determine the position of the dot. Default the dot is at the right-top.
  13. dot_marginTop, dot_marginRight, dot_marginBottom, dot_marginLeft : the margin of the dot.

Feel free to push an issue to let me know if there are any bugs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].