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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:34:22+00:00 2026-06-11T23:34:22+00:00

We have implemented a facebook-like style menu to our app, which basically allows you

  • 0

We have implemented a facebook-like style menu to our app, which basically allows you to click a button and to slide the view over the side to access a menu hidden behind the top level view.

Currently, we have all of our views (this app has lots of screens) in separate XML files as any typical Android app. I should note we make heavy use of fragments.

The goal is to abstract the code out in such a way that instead of inflating our activities and fragments to the top level view, instead now we’d inflate it into this child of this top-level parent that would be a part of all of our activities (all of our activities subclass from a custom activity).

The way the menu.xml works is by having an outer FrameLayout that hosts a nested child FrameLayout that’s empty.

What we are trying to avoid doing is wrapping this outer menu code around every single one of our views XMLs, although this would certainly work.

I’m trying to find a programmatic way of having the menu code with the empty, nested FrameLayout in one file. Then when we go to inflate a Fragment’s or Activity’s XML, like so:

listView = (PullToRefreshListView) inflater.inflate(R.layout.pull_to_refresh_list_view, container, false);

instead of doing that, we’d inflate it into the nested child FrameLayout. Something like this is what I’m attempting:

listView = (PullToRefreshListView) inflater.inflate(R.layout.pull_to_refresh_list_view, container, false);
    ((FrameLayout) getActivity().findViewById(R.id.child)).addView(listView);

Currently this results in: “Unable to resume activity. No view found for id 0x7f090019 for fragment MyFragment[id= 0x7f090019]”

Any input is appreciated. Thank you!

  • 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-11T23:34:23+00:00Added an answer on June 11, 2026 at 11:34 pm

    What I did for a similar style menu was to add a frame layout and inflate a fragment into it. I then used a translateAnimation and layoutApp to translate the screen to the right place. I kept all this code in a slidingDrawerActivity which segmented the code nicely so that I could just call SlideOutMenu to use it

    Hope this helps – if you want more deets just let me know

    EDIT:

    code for replacing frame layout with a fragment using support library

    FragmentTransaction FT=getFragmentManager().beginTransaction();
    FT.replace(R.id.yourFrameLayout, new YourFragment(), yourFragmentTag);
    FT.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
    FT.commit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented the Facebook like button on my site by using the asynchronous
Background: I have implemented a normal Facebook Like Button to my page using XFBML.
I have implemented a Facebook Like button into my site. I wanted to make
I have implemented Facebook into my app but now I find that whenever I
I have a facebook app that load some content with ajax, including some like
Possible Duplicate: How does Facebook Sharer select Images? I have implemented the Facebook Like
I have implemented a Pull to refresh in my tableView like the iPhone app
Possible Duplicate: Does the Facebook 'like' have a limit? Facebook like button updates the
I've implemented the facebook like button in my tumblr project - and it works
I have implemented the like button on a website. People have liked the website,

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.