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

The Archive Base Latest Questions

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

I have an app with fragments working ok, now I need to implement some

  • 0

I have an app with fragments working ok,

now I need to implement some pop up views,

Im following this tutorial Example of using PopupWindow

all seems fine, but The pop up is not showing yet, as I have a doubt on how to show the “popupWindow”

my .java:

public class Tab2HeadH1 extends Fragment implements OnClickListener {

   //testeo popero

   @Override
   public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {

       View view = inflater.inflate(R.layout.tab_2_head_buttons, container,false);

       //Buttons

       Button buttonNose = (Button) view.findViewById(R.id.button_pop_nose);

       buttonNose.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(final View v) {
                //aqui tus tareas,,

                //LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);  //old errors
                LayoutInflater layoutInflater = (LayoutInflater)getActivity().getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

                View popupView = layoutInflater.inflate(R.layout.popup, null);  
                final PopupWindow popupWindow = new PopupWindow(
                      popupView, LayoutParams.WRAP_CONTENT,  
                            LayoutParams.WRAP_CONTENT);

             }

      });

      Button buttonEye = (Button) view.findViewById(R.id.button_pop_eye);

      buttonEye.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(final View v) {
           // onLoginClicked(v);
            Toast.makeText(getActivity(), "ss9 eye",
                    Toast.LENGTH_SHORT).show();

         }
      });

      return view;
   }



    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {

       super.onViewCreated(view, savedInstanceState);
       ((TabActivity)getActivity()).setHeader("TAPING APPLICATION");
    }

    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub
        switch (v.getId()) {

       }
    }


}

So what is missing to show my pop up?

thanks a lot!

  • 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-08T19:52:44+00:00Added an answer on June 8, 2026 at 7:52 pm

    While you setup the Popup fine, you aren’t actually calling any method to show it anywhere. Call whichever one of the following methods suits your needs to open it:

    1. showAtLocation()
    2. showAsDropDown()
    3. showAsDropDown() (Different from #2)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an app in Honeycomb and I am using fragments. This is
I have the following structure in my app: FragmentActivity with ViewPager holding multiple fragments
I am experiencing some weird behavior with an android app I have been working
I have an app that uses fragments.I'm using backward compability package with Android 2.2.
I'm converting an app to use fragments using the compatibility library. Now currently I
I have an app using fragments, all of which are contained in a single
I have an app that uses the ActionBar with tabs in combination with Fragments.
In my android app I have fragments, and one of them is very heavy
I have an xml layout for a Fragment (android.support.v4.app.Fragment). When this Fragment is added
we have app hosted on google app engine for java. In this app we

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.