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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:14:19+00:00 2026-06-17T15:14:19+00:00

is it possible to put banner below tab host and in that banner there

  • 0

is it possible to put banner below tab host and in that banner there are two buttons and i want to access that two button from currently visible activity???

for example there are two xml file one is tab-host and another one is activity xml file. In tab-host xml file i have written code like this

       <?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="0dip"
        android:layout_weight="1" />

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/seekBar1"
        android:background="#FFB5C5"
        android:gravity="center_horizontal"
        android:marqueeRepeatLimit="marquee_forever"
        android:singleLine="true"
        android:text="No track info available..."
        android:textColor="@android:color/black" />
</LinearLayout>

now if i want to put banner below tab host i have to write code in this file for that banner…

now but the main problem is that in banner there is two button which is accessing by the activity which has

     setContentView(R.layout.activity);

not

      setContentView(R.layout.tabhost);

so i will not access banner from

      setContentView(R.layout.activity);

so can anybody suggest me how to do that thing

below is image

enter image description here

u can see that banner is below from tab host

and now i want to access banner from first activity….. o

  • 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-17T15:14:20+00:00Added an answer on June 17, 2026 at 3:14 pm

    You can do something like that.

    1. Put code to create banner and click of it in to the TabActivity.
    2. show the banner only in the Activity you want otherwise set its visibility to “GONE” in other activity.
    3. Done.

    By above explaination you can able to see the Banner only or your desire Activity and also achieve the click of the button from that activity.

    Hope you got my point.

    feel free for any comments.

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

Sidebar

Related Questions

Is it possible to put two 'www' entries into the dotcloud.yml file? I want
Possible Duplicate: How many Python classes should I put in one file? Coming from
I'm currently retrieving and parsing pages from a website using urllib2 . However, there
Is it possible to put GROUP_CONCAT in a MYSQL WHERE clause? I have two
For my site I want to implement a banner control that will be on
Is it possible to put an actionlistener on a tab in swing? If it
Is it possible to put the following in a lessCSS forloop so that just
I just want to know if it's possible to put additional namespaces as soon
is it possible to put an image icon beside the button in a form?
Is is possible to put fixed buttons (with image) on top of an android

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.