Home

Awesome

README

SSCustomEditTextOutlineBorder

Kotlin Version Platform API Android Weekly Android Arsenal

Getting Started

SSCustomEditTextOutLineBorder is a small kotlin library for android to support outlined (stroked) text in EditText widgets same as Material Design Outlined Box but without Floating Label.

The actual features are:

Demo


demo_data

Gradle Dependency

dependencies {
	implementation 'com.github.simformsolutions:SSCustomEditTextOutLineBorder:1.0.15'
}

All Attributes


AttributeDescriptionDefault
app:isErrorEnableWhether the EditText error is enabledfalse
app:custom_component_titleSet Outlined border title textR.string.app_name
app:custom_component_editText_hintSet EditText hintR.string.app_name
app:custom_component_maxlineSet maximum height of the EditText1
app:custom_component_minlineSet minimum height of the EditText1
app:custom_component_title_colorSet Outlined title color#666666
app:custom_component_title_error_colorSet Outlined title error color#f15454
app:custom_component_border_colorSet Outlined border color#979797
app:custom_component_border_error_colorSet Outlined border error color#f15454
app:custom_component_title_bg_colorSet Outlined border title background colorR.color.colorPrimary
app:custom_component_editText_bg_colorSet EditText background colorR.color.colorPrimary
app:custom_component_maxLengthSet EditText maxLength99
android:inputTypeSet EditText inputTypeEditorInfo.TYPE_TEXT_VARIATION_NORMAL
app:custom_component_border_widthSet Outlined border width1
app:isToggleEnableWhether Password Toggle is enabledfalse

Usage


<com.simform.customcomponent.SSCustomEdittextOutlinedBorder
            android:id="@+id/edtAbout"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/_10sdp"
            android:inputType="textMultiLine|textCapSentences"
            app:custom_component_editText_hint="@string/edt_hint_about"
            app:custom_component_maxline="3"
            app:custom_component_minline="3"
            app:custom_component_maxLength="25"
            app:errorTextValue="errorText"
            app:isErrorEnable="false"
            app:isToggleEnable = "true"
            app:custom_component_title_color="@color/color_brownish_grey_two"
            app:custom_component_title_error_color="@color/color_error"
            app:custom_component_border_color="@color/color_warm_grey"
            app:custom_component_border_error_color="@color/color_error"
            app:custom_component_title="@string/edt_title_about"
            app:layout_constraintEnd_toEndOf="@+id/edtPassword"
            app:layout_constraintStart_toStartOf="@+id/edtPassword"
            app:layout_constraintTop_toBottomOf="@+id/edtPassword"
            app:textValue="aboutText"/>

Find this library useful? :heart:

Support it by joining stargazers for this repository. :star:

🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! :muscle:

Check out our Contributing Guide for ideas on contributing.

Bugs and Feedback

For bugs, feature requests, and discussion please use GitHub Issues.

Awesome Mobile Libraries

License

Copyright 2020 Simform Solutions

   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.