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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:00:19+00:00 2026-05-19T09:00:19+00:00

My xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/Title" android:text="title" android:layout_width="fill_parent" android:layout_height="wrap_content"

  • 0

My xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent">
    <TextView android:id="@+id/Title" android:text="title"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:singleLine="true" android:layout_alignParentTop="true" />
    <EditText android:id="@+id/ReplyText" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:gravity="top"
        android:layout_below="@+id/Title" android:layout_above="@+id/Save" />
<!--    <WebView android:id="@+id/webview" android:layout_width="fill_parent"-->
<!--        android:layout_height="fill_parent" android:layout_below="@+id/Title"-->
<!--        android:layout_above="@+id/Save"/>-->
    <Button android:text="Save" android:id="@+id/Save"
        android:layout_width="wrap_content" android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true" />
</RelativeLayout>

Output in sdk 3 (1.5) and sdk 9 (2.3)
alt text

Question: Why EditText is not displaying in 1.5 version?

There must be a solution of this, because if I replace EditText with WebView
with a little code added in onCreate method:

WebView mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadData("test", "text/html", "utf-8");
mWebView.setWebViewClient(new WebViewClient());

It displays WebView perfectly in both the version.

Goal: I want to set header and footer elements as show in picture and middle element should have full height/width of the rest of the place.

  • 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-19T09:00:19+00:00Added an answer on May 19, 2026 at 9:00 am

    Not sure if this could be the issue, but this is wrong:

    android:layout_below="@+id/Title" android:layout_above="@+id/Save"
    

    the @+id means adding a new id, and in this case you are refering to Ids already defined (you define them in android:id="@+id/Title" and android:id="@+id/Save").

    Also I had some problems in the past when referencing an id before the component itself (in this case you say in the EditText that it’s above the button and the button is defined later)

    I would write your whole layout like this:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    
        <TextView android:id="@+id/Title"
            android:text="title"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:layout_alignParentTop="true" />
        <Button android:text="Save"
            android:id="@+id/Save"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true" />
        <EditText android:id="@+id/ReplyText"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:gravity="top"
            android:layout_below="@id/Title"
            android:layout_above="@id/Save" />
    
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this xml-file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#444548"> <ImageView android:layout_width="wrap_content"
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8"?> <ExportData> <TransportHeader> <Timestamp>2011-01-16 06:00:33</Timestamp>
I came across this method in the JDK From com.sun.org.apache.xml.internal.serializer.Version; public static int getDevelopmentVersionNum()
I've set up a queue by configuring it in activemq.xml (ActiveMQ version 5.2.0) as
I'm using the Xerces-C++ (version 2.6.1) SAX2 parser to validate XML such as the
I am new to Android Development and I am having trouble with my XML
The XML Schema Part 2 specifies that an instance of a datatype that is
This XML file contained archived news stories for all of last year. I was
The XML I'm trying to validate is as follows: <root> <element attribute=foo> <bar/> </element>
Which XML validation tools can you recommend for both performance and accuracy, each of

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.