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 6704513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:17:50+00:00 2026-05-26T07:17:50+00:00

I have a ExpandableListView in which i am loading my custom views having 3

  • 0

I have a ExpandableListView in which i am loading my custom views having 3 edit text fields.

After entering the values into those edit texts,

i am clicking back to minimize the soft keyboard.

That time the text in the edit boxes is disappearing Why..?

If anybody have any idea please help me..?

This is my getGroupView method of ExpandableListView

@Override
    public View getGroupView(int groupPosition, boolean isExpanded,
            View convertView, ViewGroup parent) {
        System.out.println("Position = " + groupPosition);
        if (groupPosition == 0) {
            if (firstTime) {
                convertView = inflater.inflate(R.layout.pay_credit_card,
                        parent, false);
                checkBox1 = (Button) convertView.findViewById(R.id.check_box);
                email = (EditText) convertView.findViewById(R.id.email);
                phone1 = (EditText) convertView.findViewById(R.id.ph);
                phone2 = (EditText) convertView.findViewById(R.id.phone);
                checkBox1.setOnClickListener(headListener);
                firstTime = false;
            } else {
                emailSt = email.getText().toString();
                phone1St = phone1.getText().toString();
                phone2St = phone2.getText().toString();
                convertView = inflater.inflate(R.layout.pay_credit_card,
                        parent, false);
                checkBox1 = (Button) convertView.findViewById(R.id.check_box);
                email = (EditText) convertView.findViewById(R.id.email);
                phone1 = (EditText) convertView.findViewById(R.id.ph);
                phone2 = (EditText) convertView.findViewById(R.id.phone);
                checkBox1.setOnClickListener(headListener);
                email.setText(emailSt);
                phone1.setText(phone1St);
                phone2.setText(phone2St);
            }
            return convertView;
        } else {

            View v = null;
            v = inflater.inflate(R.layout.pay_group_head, parent, false);
            String gt = (String) getGroup(groupPosition);
            TextView tv2 = (TextView) v.findViewById(R.id.tvGroup);
            if (gt != null && tv2 != null)
                tv2.setText(gt);
            return v;
        }
    }

Thanks in advance…!

  • 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-05-26T07:17:51+00:00Added an answer on May 26, 2026 at 7:17 am

    As already posted as comment:

    In order to solve the problem of vanishing textinput, you need to save the textinput directly to some kind of string-array or similar which allows the ListView to retreive the data when it reloads the table

    Glad I could help

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

Sidebar

Related Questions

I have a ExpandableListView in which i am loading custom layouts in both group
I have an ExpandableListView that I want to populate with my custom views of
ok so I have an ExpandableListView, I have defined all my views and everything
I have an ExpandableListView that uses a SimpleCursorTreeAdapter which uses the cursors returned by
I can't create layout in which I will have <LinearLayout> <TextView/> <ExpandableListView/> <Button/> </LinearLayout>
I have an ExpandableListView with children that have text supplied on creation, and an
I have an ExpandableListView in which if I add some Groups during onCreate() of
I have an ExpandableListView (ELV) with the groups having LinearLayout. I have set the
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have a n-tire web application and search often times out after 30 secs. How

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.