All Projects → tobiasschuerg → android-prefix-suffix-edit-text

tobiasschuerg / android-prefix-suffix-edit-text

Licence: MIT license
EditText with support for non editable prefix and suffix.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to android-prefix-suffix-edit-text

Sharpview
安卓带有尖角气泡的控件(TextView,ImageView,EditText,Layout),支持渐变色,圆角等自定义属性
Stars: ✭ 137 (+280.56%)
Mutual labels:  view, edittext
VerifyBlocksView
Android view for providing blocks (Edit Texts) to achieve verification process.
Stars: ✭ 28 (-22.22%)
Mutual labels:  view, edittext
MTextField
A new Material Design text field that comes in a box, based on [Google Material Design guidelines]
Stars: ✭ 32 (-11.11%)
Mutual labels:  edittext, edittextview
Viewtooltip
A fluent tooltip for Android
Stars: ✭ 1,029 (+2758.33%)
Mutual labels:  view, edittext
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-58.33%)
Mutual labels:  edittext, edittextview
ViewWorld
自定义View合集,展示各种自定义View/控件。项目包含了自定义Banner轮播图控件,自定义验证码输入框,自定义TabLayout等控件,持续更新中😉😉😉
Stars: ✭ 94 (+161.11%)
Mutual labels:  view, edittext
Hyena
鬣狗快速开发库(2018年6月停止维护)
Stars: ✭ 21 (-41.67%)
Mutual labels:  view, edittext
TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration)
Stars: ✭ 169 (+369.44%)
Mutual labels:  view
SignatureView
【Android View】:好用的Android电子签名板,能保存所签名的图片
Stars: ✭ 89 (+147.22%)
Mutual labels:  view
yii2-presenter
Yii2 View Presenter
Stars: ✭ 13 (-63.89%)
Mutual labels:  view
simple-analog-clock
Simple clock view for displaying uh...time?
Stars: ✭ 24 (-33.33%)
Mutual labels:  view
android-animations
Perform tweened animations such as Attention, Bounce, Fade, Flip, Rotate, Slide and Zoom on Views
Stars: ✭ 118 (+227.78%)
Mutual labels:  view
TicTacToe
No description or website provided.
Stars: ✭ 40 (+11.11%)
Mutual labels:  view
SMDiagramView
Diagram View for iOS
Stars: ✭ 44 (+22.22%)
Mutual labels:  view
react-native-masonry-brick-list
Staggered Or Masonary List View For React Native Written in pure js
Stars: ✭ 24 (-33.33%)
Mutual labels:  view
view
Yii view rendering library
Stars: ✭ 42 (+16.67%)
Mutual labels:  view
BlockEditText
Block EditText is a library provide an input view present in multiple block style that common use in TAC or credit card field.
Stars: ✭ 113 (+213.89%)
Mutual labels:  edittext
table-layout
Styleable plain-text table generator. Useful for formatting console output.
Stars: ✭ 18 (-50%)
Mutual labels:  view
prax
Experimental rendering library geared towards hybrid SSR+SPA apps. Focus on radical simplicity and performance. Tiny and dependency-free.
Stars: ✭ 18 (-50%)
Mutual labels:  view
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (+152.78%)
Mutual labels:  edittext

android-prefix-suffix-edit-text

EditText with support for non editable prefix and suffix.

Sample Screenshot

Howto?

Either directly via xml:

<com.tobiasschuerg.prefixsuffix.PrefixSuffixEditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="numberDecimal"
    android:text="24"
    app:prefix="Age: "
    app:suffix=" years"
    android:textColorHint="@color/colorPrimary"/>

or programmatically in code:

// just a prefix:
edit_text_dollar.prefix = "$"


// suffix with color
edit_text_euro.suffix = ""
edit_text_euro.setHintTextColor(Color.GREEN)


// both, prefix and suffix
edit_text_age.prefix = "Age: "
edit_text_age.suffix = " years"

See sample code.

Setting the color

The color can be set via xml:

android:textColorHint="@color/colorPrimary"

and programmatically

prefixSuffixView.setHintTextColor(Color.GREEN)

Add as Library

Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.tobiasschuerg:android-prefix-suffix-edit-text:version'
	}

Replace version by the latest release.

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].