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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:39:09+00:00 2026-06-17T07:39:09+00:00

Context: I’m using the Wizard with in Eclipse and ADT to get a master

  • 0

Context: I’m using the Wizard with in Eclipse and ADT to get a master detail view framework.

I have a good understanding of the fragments need to sit with in an activity and that with in a view etc how ever looking at the example I’m trying to work out how best to change it so I can start developing a app my self.

Is the ‘dummy’ content view actually needed ? All it seems to contain is the menu options ?

The questions I have is does any one know how the detail view is created ? From what I am reading the app is just taking the item ID and placing it in the detail view as text ?

Extract from Itemdetailfragment:

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_item_detail, container, false);
    if (mItem != null) {
        ((TextView) rootView.findViewById(R.id.item_detail)).setText(mItem.content);
    }
    return rootView;
}

Is the best way to re do a detail fragment for each new screen I need and place some logic behind that or code the existing one to look at the menu option selected and display the right code ?

Finally is this the best example to start working with ?

  • 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-17T07:39:10+00:00Added an answer on June 17, 2026 at 7:39 am

    The questions I have is does any one know how the detail view is
    created ? From what I am reading the app is just taking the item ID
    and placing it in the detail view as text ?

    Yes, that is exactly what it is doing. This is done in the detail fragment

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_team_detail,
                container, false);
    
        // Show the dummy content as text in a TextView.
        if (mItem != null) {
            ((TextView) rootView.findViewById(R.id.team_detail))
                    .setText(mItem.content);
        }
    
        return rootView;
    }
    

    You need to change it to get whatever data you need from whatever source you want to use (website, database or change the hard coded values

    If you look at the DummyContent.java class you will see the comment

    /** TODO: Replace all
    uses of this class before publishing your app. */

    Basically you should re-write this class to get the data that you want

    I’ve actually added action bar sherlock to make this compatible with api 8 with a little help from this question Two questions about Master/Detail Flow Template

    There is a hint that you could use ContentLoader in conjunction with a ContentProvider to get your data from another source such as a database or a web service

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

Sidebar

Related Questions

Context We have developed the application from end-to-end using .NET Stack. So, let's say
CONTEXT: I have read as much Mustache documentation as possible but I cannot get
Context Let`s say i have: In layout Site.Master: <div class=leftColumn> <asp:ContentPlaceHolder ID=MainContent runat=server />
Context We have this application, using about 60 coding projects. We have several products
Context I have this piece of Java Code btn.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent
Context: Windows7, VBScript, ADODB and ADOX. I have written some VBScript code which creates
Context: I have a photo-uploading website set up. I need to perform operations on
Context: I have a tableview with custom cells. Each cell has a button to
Context: I have an HTML page which makes use of HTML5 data- attributes .
Context: .Net 3.5, C# I'd like to have caching mechanism in my Console application.

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.