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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:51:07+00:00 2026-06-03T02:51:07+00:00

I have a RelativeLayout and there is a WebView inside it. After I zoom

  • 0

I have a RelativeLayout and there is a WebView inside it. After I zoom in and zoom out, my WebView isn’t in center. When I include another view into my RelativeLayout I can’t place the WebView in center.
Can anyone please suggest anything??
any help is appreciated

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/fullscreen_image_parrent"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/black">

<WebView 
    android:id="@+id/webview"
    android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
</WebView>

<include layout="@layout/full_image_controls"/>    

  • 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-03T02:51:08+00:00Added an answer on June 3, 2026 at 2:51 am

    First of all, you don’t need orientation tag in RelativeLayout. And another thing..did you try to set your layout width and height params to fill_parent. I’m not really sure about it,but in some situations I had almost the same problem with alignments on my views just because my RelativeLayout was using wrap_content instead of fill_parent.

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

Sidebar

Related Questions

I have a RelativeLayout with one child as <include another.xml> like this root.xml :
I have following compose view in my android app As you can see there
I have a RelativeLayout inside a ScrollView. My RelativeLayout has android:layout_height=match_parent but the view
I have an Activity in Landscape-Mode. Inside there is a Custom-Title-View aligned like this:
I have EditText in my XML as <!-- Inside RelativeLayout --> <EditText android:id=@+id/edtEmail android:layout_width=match_parent
I have a view in the UI that is technically an extended ImageView inside
I have a some ui widgets including textview inside RelativeLayout which is clickable. My
I have a RelativeLayout and in this RelativeLayout there are 4 Button s. Outside
I have a custom RelativeLayout and inside it i have a function that create
In My application XML layout, I have one Relativelayout, In which there are two

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.