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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:33:40+00:00 2026-05-30T05:33:40+00:00

I need a webView inside a tab, should be an easy task but I

  • 0

I need a webView inside a tab, should be an easy task but I spend hours reading posts and testing suggestions and I am not able to find the solution! Note that tabs are at bottom, on top works! I modified layouts, create specific activities and many more. Then, webview still fitting fullscreen! I will be glab to post code if necessary!

  • 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-05-30T05:33:41+00:00Added an answer on May 30, 2026 at 5:33 am

    Try this

    Webview Xml..................
    
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent" android:layout_height="match_parent"
        android:background="@drawable/ab02_bg" >
    
    
                <WebView android:autoLink="web" android:layout_width="wrap_content"
                    android:layout_height="wrap_content" android:src="@drawable/ticket_text"
                    android:id="@+id/TextViewMorTickets" android:textColor="@android:color/black"></WebView>
    

    Tab Xml………………..

    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@android:id/tabhost"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/ab02_bg" >
    
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" >
            <ImageView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:src="@drawable/hddr" >
            </ImageView>
            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1" >
            </FrameLayout>
             <ImageView
                android:layout_width="fill_parent"
                android:layout_height="30dip"
    
                android:baselineAlignBottom="true"
                android:id="@+id/BannerImage"
                >
            </ImageView>
            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="fill_parent"                    
                android:layout_height="wrap_content"
                android:layout_weight="0" 
                android:tabStripEnabled="false"
         />
        </LinearLayout>
    
    </TabHost>
    </LinearLayout>
    

    java file……………………….

    @Override
        protected void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
            setContentView(R.layout.tablayout);
                    tabHost = getTabHost();  // The activity TabHost
            TabHost.TabSpec spec; 
                    spec = tabHost.newTabSpec("TICKETS").setIndicator("").setContent( new Intent().setClass(this, webview.class));
    
            tabHost.addTab(spec);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have WebSocket support for Qt's WebView, but the current version Safari/533.3
[Android Newbie alert] I need to capture the contents of a WebView in a
I have loaded an external URL in my WebView . Now what I need
I need to display some simple formatted text inside a small section of a
I need help with my WebView...I put this code in my viewDidLoad and it
I need help creating an object for this declare UIWebView *webView; I thought it
I need the UIGraphicsBeginImageContext(self.view.frame.size); changed to where the .frame part pulls from webView -
I have an Application which contains only WebView, i need to parse a XML
I've got WebView, JS code inside it. Also I have interface to allow Java
I've been reading about how to support the zooming for a webview, and i've

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.