Home

Awesome

AutoscaleEditText

AutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size.

Latest Version

Download

How to use

Configuring your project dependencies

Add the library dependency to your build.gradle file.

dependencies {
    ...
    compile 'com.txusballesteros:AutoscaleEditText:1.0'
}

Adding and Customizing the View

Add the view to your xml layout file.

<com.txusballesteros.AutoscaleEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="30sp" />

Now you personalize some of custom parameters of the view.

<com.txusballesteros.AutoscaleEditText
        ...
        app:linesLimit="3"
        app:textScale="0.75"
        app:animationDuration="200" />

Motivation of the Project

I created this view as a little piece of the Redbooth App for Android.

License

Copyright Txus Ballesteros 2015 (@txusballesteros)

This file is part of some open source application.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.

Contact: Txus Ballesteros txus.ballesteros@gmail.com