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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:30:09+00:00 2026-05-22T22:30:09+00:00

I use layoutopt like ‘layoutopt layout.xml’ And I get this message: 9:18 This tag

  • 0

I use layoutopt like ‘layoutopt layout.xml’

And I get this message:

9:18 This tag and its children can be replaced by one <TextView/> and a compound drawable
28:78 Use an android:layout_height of 0dip instead of wrap_content for better performance

But I do not understand the meaning, can someone clarify me the meaning of it

use 0dip on what? on the layout? I want my layout to wrap the content not to be zero size height

<LinearLayout android:id="@+id/linearLayout3"
   android:layout_width="fill_parent" android:layout_height="0px"
   android:layout_alignParentTop="true" android:background="#30000000"
   android:padding="5dip">

   <ImageView android:id="@+id/imageView1"
      android:layout_width="wrap_content" android:layout_height="wrap_content"
      android:background="@drawable/bzz_icon"></ImageView>

   <TextView android:layout_width="fill_parent" android:id="@+id/textView1"
      android:textColor="#FFFFFF" android:layout_height="wrap_content"
      android:layout_gravity="center" android:gravity="left"
      android:layout_marginLeft="15dip" android:text="@string/title"
      android:textSize="20sp"></TextView>

</LinearLayout>
  • 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-22T22:30:09+00:00Added an answer on May 22, 2026 at 10:30 pm

    The first message is saying that you can replace your linearLayout3 with only a TextView and use android:drawableLeft instead of the ImageView.

    The second message is probably telling you that on whatever is at line 28 of your layout you can use layout_height of 0dp instead of wrap_content. This is usually used in conjunction with layout_weight when your element will be expanded anyway. However, this is just a guess and you should post your entire layout XML, including line 28, so that we can better figure out the meaning of the message.

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

Sidebar

Related Questions

What vim errorformat do you use when running Android's layoutopt tool? (So you can
I can't seem to use the ItemSource Tag for my treeview. I don't unerstand
use this website a lot but first time posting. My program creates a number
alt text http://img705.yfrog.com/img705/1337/layoutxt.jpg I already have this layout created using CSS, but its plagued
Situation: I have a wrapper panel UserControl like this (namespaces and visual details removed
I couldn't get this to work in Silverlight, so I created two test projects.
I encountered this problem when updating my background to use a 9-patch image. The
I knew layoutopt tools through the dev guide,but I can't find layoutopt tools in
I have some XAML to draw a logo and I want to re-use this
I have an custom UserControl that displays an image, i'm trying to use this

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.