This is example of a custom view. Masked edit text has predefined text length and shows how many symbols user should input.
You should determine maxLength parameter in xml, by default it will be set on 4.
By default it draws a accent color dots in the place where should be letters.
But you can change dots color with setPointColor()
.
Also you could set your custom drawable from resources with setPointDrawable()
.
Drawable size will be resized automatically to a view height.
##License
Copyright 2016 JustTrust
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.