Home   →   Blog   →   The Library for Efficient Work with the Test Field

The Library for Efficient Work with the Test Field

Agilie team has recently developed a new useful library called RotatableAutofitEditText. And now we're happy to share it with you. We hope, our RotatableAutofitEditText library will come in handy in your daily application development process.

What is RotatableAutofitEditText?

RotatableAutofitEditText is a lightweight open-source and fast networking library that allows you to work with a text field much more productively and perform tasks with a minimum number of code lines. Feel free to integrate RotatableAutofitEditText library into your project and take full advantage of it!

Due to RotatableAutofitEditText, a user can effectively manipulate a text field that easily responds to his touch: rotate, resize or move it around the screen and perform other similar operations.

In addition, although there is only one font specified by default, you can add extra fonts when developing the application, so that a user will have more options to choose.

RotatableAutofitEditText will make your development process much easier and more effective, saving your time and energy.

How to use?

This library is completely applicable to all cases when a user needs to work with a text field. RotatableAutofitEditText offers you an interesting format of text field instead of a boring one. Undoubtedly, an app supplemented with such unusual text field design will attract more users’ attention so the app won't pass unnoticed.

We are sure that text fields created by means of RotatableAutofitEditText library can be useful for many applications, especially - entertainment ones, for example, game apps.

Code example

<com.agilie.RotatableAutofitEditText xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:autofit="http://schemas.android.com/apk/res-auto"
   android:id="@+id/autoResizeEditText"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:background="@drawable/rounded_corners_white_transparent_50"
   android:gravity="center"
   android:hint="@string/hint_add_some_text"
   android:padding="16dp"
   android:textColor="@android:color/white"
   android:textColorHint="@android:color/darker_gray"
   autofit:clipBounds="true"
   autofit:maxTextSize="@dimen/autoresize_max_text_size"
   autofit:minTextSize="@dimen/autoresize_min_text_size"
   autofit:minWidth="@dimen/autoresize_min_width"
   autofit:movable="true"
   autofit:resizable="true"
   autofit:rotatable="true" />

autofit:maxTextSize - sets maximum text size
autofit:minTextSize - sets minimum text size
autofit:minWidth - sets minimum EditText width
autofit:movable - true if EditText must move in parent view
autofit:resizable - true if EditText can be resized with pinch
autofit:rotatable - true if EditText can be rotated
autofit:clipBounds - true if EditText must not move out of parent view bounds

Requirements

Android 3.0+ (API level 11+)

Also, you can visit this page for more details.

Next Posts
B01cb6974b09d66e0ff310d657babb8bab99db6a jQuery GTM In-Viewport Manager Plugin
We’d like to share with you our new jQuery GTM In-Viewport Manager Plugin aimed to ease a way of working with Google Tag Manager (GTM). Add jQuery GTM In-Viewport Manager Plugin into your project to see for yourself how effective the interaction with GTM
1667ad31373295eafe858140ded0c8f8726db22f The Layout Testing
Testing web projects includes a number of different stages. But now we're going to discuss only one of them, namely - the layout testing.
6cf189f7d6a1bed5f5d912207c3b52dc0866a373 Galen MD. Automation of the Testing Process
The difficulty of testing the site layout is a common problem. And when we need to test a responsive pattern, the manual testing seems the only solution that comes to mind. However, there is another way to automate the process, namely, to take advantage o
Notice Our website uses cookies, which are necessary for its functioning and required to achieve the purposes illustrated in the privacy policy. By closing this banner you agree to the use of cookies.