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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:42:52+00:00 2026-05-24T04:42:52+00:00

I am trying create a layout. There are several inner layouts that should like

  • 0

I am trying create a layout. There are several inner layouts that should like like this:

http://imageshack.us/photo/my-images/835/69560035.png/

So there is a main LinearLayout and several layouts inside like the one below.

<LinearLayout android:id="@+id/LinearLayout02"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal">
        <ImageView android:id="@+id/ImageView01"
            android:layout_width="30px"
            android:layout_height="30px"
            android:scaleType="fitXY"
            android:background="@drawable/gy1"
            android:layout_gravity="center_vertical">
        </ImageView>

    <LinearLayout android:id="@+id/LinearLayout04"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_gravity="center_vertical">
        <TextView android:id="@+id/TextView01"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textSize="15px"
            android:textStyle="bold"
            android:textColor="#222222"
            android:paddingLeft="3px">
        </TextView>
        <TextView android:id="@+id/TextView02"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textColor="#222222"
            android:paddingBottom="5px"
            android:paddingLeft="3px"
            android:background="#D8D8D8"
        />
    </LinearLayout>
</LinearLayout>

The second TextView is not shown, and I cannot find out what is wrong with the code. How can I fix this problem?

  • 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-24T04:42:54+00:00Added an answer on May 24, 2026 at 4:42 am

    Or try this:

    <LinearLayout
        android:id="@+id/LinearLayout02"
        android:layout_width="match_parent"
        android:layout_height="30px"
        android:layout_alignParentTop = "true"
        android:orientation="horizontal">
        <RelativeLayout
            android:id="@+id/RelativeLayout01"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentLeft="true"
            android:layout_gravity="left"
            android:gravity="left">
            <ImageView
                android:id="@+id/ImageView01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
                android:gravity="left"
                android:src="@drawable/gy1"
                android:background="@null"
                android:width="30px"
                android:cropToPadding="true"
                android:adjustViewBounds="true">
            </ImageView>
        </RelativeLayout>
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:layout_toRightOf="@+id/RelativeLayout01">
            <TextView
                android:id="@+id/TextView01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="15px"
                android:textStyle="bold"
                android:textColor="#222222"
                android:paddingLeft="3px">
            </TextView>
            <TextView
                android:id="@+id/TextView02"
                android:layout_below="@+id/TextView01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="#222222"
                android:paddingBottom="5px"
                android:paddingLeft="3px"
                android:background="#D8D8D8" >
            </TextView>
        </RelativeLayout>
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a layout similar to this: alt text http://img20.imageshack.us/img20/3533/stackn.png Here's the
I'm trying to create a layout that looks like a LI with a bullet,
I'm trying create a scaling layout for an Android application. The whole screen should
I'm trying to create a custom layout for managing preferences. I know there is
So there is this game im trying to create, and in the lessons activity
I am trying to create a CSS layout where the page looks like it's
I am trying to create a layout that extends to the whole screen if
I am trying to create a table view which has a layout like what
I'm trying to create a JDialog like the Symbol dialog in Microsoft Word that
I'm trying to create a simple HTML layout where there is a header, content

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.