Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:41:26+00:00 2026-06-08T10:41:26+00:00

My Android application has a form that the user has to fill in. I

  • 0

My Android application has a form that the user has to fill in. I was looking for something like this. This http://img688.imageshack.us/img688/4162/photocr.jpg. I mean where the Edit Text look neat like this. Any suggestions on how we can replicate this in Android. I have seen a couple of Applications in Android that have a UI like this. Any suggestions will be welcome.

Kind Regards,

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/round_linearlayout"
    android:orientation="vertical" >

    <EditText
        android:id="@+id/first_name"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:hint="@string/first_name_hint_text"
        android:singleLine="true"
        android:textColor="#778BB0"
        android:textColorHint="#778BB0"
        android:textSize="13sp"
        android:textStyle="bold" />

    <EditText
        android:id="@+id/last_name"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:hint="@string/last_name_hint_text"
        android:singleLine="true"
        android:textColor="#778BB0"
        android:textColorHint="#778BB0"
        android:textSize="13sp"
        android:textStyle="bold" />

    <EditText
        android:id="@+id/email_address"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:hint="@string/email_address_hint_text"
        android:singleLine="true"
        android:textColor="#778BB0"
        android:textColorHint="#778BB0"
        android:textSize="13sp"
        android:textStyle="bold" />

    <EditText
        android:id="@+id/password"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:hint="@string/password_hint_text"
       android:singleLine="true"
        android:textColor="#778BB0"
        android:textColorHint="#778BB0"
        android:textSize="13sp"
        android:textStyle="bold" />

    <Button
        android:id="@+id/already_have_an_account"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:background="@android:color/transparent"
        android:padding="20dp"
        android:text="@string/already_have_an_account"
        android:textColor="@color/hyperlink" />
</LinearLayout>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:41:27+00:00Added an answer on June 8, 2026 at 10:41 am

    Edited the answer to what you want.

    public class EditTextView extends LinearLayout{
    
        private LayoutInflater inflater;
        private EditText edit_text;
        private TextView item;
        private View spacer;
    
        public EditTextView(Context context) {
            super(context);
            inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            initialize();
        }
    
        public void setLabel(String label){
            item.setText(label);
        }
    
        public void setText(String text){
            item.setText(text);
        }
    
        public String getText(){
            if((edit_text != null)&& (edit_text.getText() != null)){
                return edit_text.getText().toString();          
            }
            return "";
        }
    
        public void showSpacer(){
            spacer.setVisibility(View.VISIBLE);
        }
    
        private void initialize() {
             inflater.inflate(R.layout.edit_text_view, this);
             edit_text = (EditText) findViewById(R.id.edit_text);
             item = (TextView) findViewById(R.id.edit_text_label);
             spacer = (View) findViewById(R.id.spacer);
             spacer.setVisibility(View.GONE);
        }
    
    
    }
    

    Used to get text as follows

    EditTextView textView = (EditTextView) groupedView2.getFieldViewAt(0);
    System.out.println(textView.getText());
    textView = (EditTextView) groupedView2.getFieldViewAt(1);
    System.out.println(textView.getText());
    

    This works for me very well. Let me know if you have any issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My android application has several warnings of the following form when I run it
In order for the user to control the volume , my android application has
I have an android application that has 3 activites. For the 1st and 2nd
I am trying to create a simple Android application that has a ActivityList of
Android Application : Basically application has to register few credentials like username , password
I am currently working on an Android application which has an order form. I
Hi I am developing an android application in which a form has to be
I have an Android Application that has four activities. None is very large and
We're developing an android application that has several different tabs. We've been trying to
My Android application has some files in the assets directory that I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.