Skip to main content

Posts

Showing posts with the label Scrollable TextView

How to create a circular EditText View in android

You obsrved several app use the Circlular View with rounded corner for taking user input edittext. In this post we are going to explore to create a Circular EditText view for user input. Let's start the creation of the Circular EditText View. Create The Circlular EditText Demo Project Creating the new project is everyday work if you are a mobile app developer, but just adding steps who is new in the android mobile app development. For creating the new project go to the File menu in android studio and click on File -> New-> New Project. In the next windows select the Activity Type I will in this demo will select Empty Activity. Choose the Application name like Circle EditText Demo and Finish. Attach the EditText and Button to layout Now, We need to create an EditText and Button into the main layout located inside the res->layout directory. Circular Image View Project Now, add the EditText and button to the activity_main.xml. In this example, androidx is used so you can migr...

5 ways to customize text view in android, add custom border in text view

Android Text View is the subclass of android.view.view, as per android a TextView is the complete text editor but it's configured to not allowed the editing. So you can only use the TextView to display the Text. In this post we are going to learn how to customize the TextView in Android, will learn 5 tricks to change the default TextView in Android. How to change the TextColor and Size of TextView A Simple Text View can be added by using the below code in any layout.xml files. <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="A Simple Text View!" /> So first thing we are going to change the size and color of the text. Text size always recommended using in 'sp'. <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="A Colored Text View!" android:textColor="#283593" a...