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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:39:41+00:00 2026-06-04T22:39:41+00:00

I have a problem with an android application I am developing. I have an

  • 0

I have a problem with an android application I am developing.

I have an Activity with an EditText at the top of the screen, and a map taking over the rest of the space. The problem is that the EditText don’t show any of the text I put in it. You can focus the EditText and type more text or even select the text that the app put in the EditText and copy it. When you paste it in another application, you can see that it is the text that suppose to be in the EditText. So I know that the text is there, but I really don’t understand why the text isn’t shown.

I have tried changing the background color of the EditText (which worked, but text still is invisible) and changing the text color (which changed nothing). Here is my XML file:

<?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="wrap_content"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:orientation="vertical" >

<EditText
    android:id="@+id/status"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/findingSatellites"
    android:inputType="text"
    android:ems="10" />

    <com.google.android.maps.MapView
        android:id="@+id/bigMap"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:apiKey="someapikey"
        android:clickable="true" >
    </com.google.android.maps.MapView>

</LinearLayout>

The map is shown correctly. Can you help me?

UPDATE:
I have tried to comment out the map from the XML file (and code) and now the text inside the EditText is rendered. I also tried to comment out my MapOverlay, but the text is still now shown. I tried replacing the EditText with a TextView with the same result. How come no text is rendered when there is a map in the Activity?

UPDATE2:
I have modified my xml according to your suggestions. This is what I have now:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:focusable="true"
    android:focusableInTouchMode="true" >

    <RelativeLayout 
        android:id="@+id/statusLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" >

        <EditText
            android:id="@+id/status"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="text"
            android:text="@string/findingSatellites" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/mapLayout"
        android:layout_below="@id/statusLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true" >

        <com.google.android.maps.MapView
            android:id="@+id/bigMap"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:apiKey="0ZGxti1I-qNSsMmsOCqnbPsnNG7Sl4U2aHvDc-Q"
            android:clickable="true" />

    </RelativeLayout>

</RelativeLayout>

It still doesn’t render any text.

Here is a picture of what is happening:

The EditText with some of the invisible text marked

  • 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-04T22:39:42+00:00Added an answer on June 4, 2026 at 10:39 pm

    I have found the problem. Colors on android is represented by integers as ARGB, and I’m comming from a HTML/CSS background which only uses RGB. This made me set the alphachannel for the textcolor to 0, meaning fully transparent. I am really stupid! Thanks for your help guys.

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

Sidebar

Related Questions

I have a problem with my android application. That application which uses the kSOAP
I have a problem regarding Android App. I have created an application that download
I have problem consuming a WCF REST service in my android application. The client
Hi am developing an android application i have a problem like i have 10
I'm developing an Android application and I have a problem running a new thread
i have a problem with my Android Application. The Error occures when i want
I have an interesting problem being reported to me from an android application I
I wrote an application about NFC in android,but I have a problem. When I
I have found a minor problem when i install my application on real android
I have some problem with Android AsyncTask. There is an Activity which contains some

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.