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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:02:37+00:00 2026-06-17T11:02:37+00:00

Beginner here, targetting sdk v14 and v17 for my learning…no need for older support.

  • 0

Beginner here, targetting sdk v14 and v17 for my learning…no need for older support.

I am using the master/detail template and trying to get an action menu (for SEARCH) to show up both in phone and tablet view. Actually I can get it to work, but I have to duplicate up my code in both ItemDetailActivity.java and ItemListActivity.java

These are the methods that I have to have in both for SEARCH to work:

public boolean onQueryTextChange(String newText) {  
public boolean onQueryTextSubmit (String query) {
public boolean onClose () {

I only want to search the “detail”, not the “list”.

So my question: is there a way to associate the action bar with only the list fragment? That way I can keep the search functions in 1 file.

Thanks!

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

    I’ll go ahead and answer what I (think) I know as I don’t want to leave this question open.

    From tracing in the debugger, it looks to me like the phone activity and the tablet activity are separate and if you want to hook up an actionmenu, you have to hook it up to both separately.

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

Sidebar

Related Questions

JS beginner here. I need help with a script to place different content in
EDIT: The plugin in question is located here . PHP beginner here using a
iOS beginner here. I'm using the following code to save my facebook accessToken and
I am just a beginner here. I am using xampp1.7.1 php version 5.2.9 and
First of all, Beginner here. I'm using this code. class MDArrays { public static
Python beginner here. I am using the matplotlib library to make graphs from tab
PowerShell/xml beginner here.... I'm trying to append to or remove empty xml nodes using
Objective-C/iPhone beginner here...looking for a shove in the right direction. I need to create
RoR beginner here using rails 3.2.3 and ruby 1.9.3 Currently I am trying to
I'm a beginner here and need help. I have this code, which works and

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.