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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:22:31+00:00 2026-06-13T14:22:31+00:00

My note application has 2 fragments on a screen: A list of notes fragment

  • 0

My note application has 2 fragments on a screen: A list of notes fragment and a note detail fragment to display the selected note in the second fragment, it has an input text field (android:inputType="textMultiLine"). As I want to handle event keyboard hidden so I can save the change user has made when they close the keyboard. Can anyone give me a clue to do this task?

  • 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-13T14:22:33+00:00Added an answer on June 13, 2026 at 2:22 pm

    Here’s how i handle it on my Note Detail fragment:

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        this.view = inflater.inflate(R.layout.fragment_note_detail_of_style_searching, container , false);
    
        listviewFilter = (ListView) view.findViewById(R.id.listview_filter);
        noteDetailView = view.findViewById(R.id.note_detail_of_style_view);
        photoDetailView = view.findViewById(R.id.gv_note_detail_photo);
    
        view.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {
    
            @Override
            public void onGlobalLayout() {                
                int heightDiff = view.getRootView().getHeight() - view.getHeight();
                if (heightDiff > 200) { 
                    isWatchingKeyboard = true;
                    photoDetailView.setVisibility(View.GONE);
                    return; //must exit now
                }
    
                if(isWatchingKeyboard){
                    isWatchingKeyboard = false;
                    viewForFocus.requestFocus();
                    photoDetailView.setVisibility(View.VISIBLE);
                }
            }
        });
    
        return this.view;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an application that has one or more text console windows that all
Please note this application will never be running on a server system. I am
Screenshot Important Note : This application does not support Internet Explorer. I will be
Our application has distribution functionality. It takes several Excel 2007 spreadsheets, copies them into
Each application has instance. When I try propirat way to url mananager 'application/<slug:[\w+]+>/instance/create/' =>
I am having an application which has a UI module and other supporting services.
I have a WPF application that has just one button. When the button is
My application currently has 2 forms. It creates a sub form, Form2, which ends
I developed an application that has a form where this form once completed is
If an application has the android.permission.CAMERA, and I wanted my app to block the

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.