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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:53:16+00:00 2026-06-01T06:53:16+00:00

I need to have various text view on a single line. And I want

  • 0

I need to have various text view on a single line. And I want then to be in single line centered. As if they are written in single text view. So I used Linear layouts. But my problem is when i am tilting it to portrait orientation, text are dropping vertically. I want that if text are not fitting in screen then they must come to next line CENTERED on tilt. My problem is somewhat same as https://stackoverflow.com/questions/9596493/linear-layout-is-not-keeping-text-view-in-center. Please can any body help in this. My layout.xml is as below…..

<?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="match_parent"
    android:orientation="vertical">

//some code here


    <LinearLayout 
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:orientation="horizontal"
             android:layout_marginBottom="30dp"
             android:layout_gravity="center_horizontal" >

            <TextView
            android:id="@+id/tv_jobs_info_note" 
            android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:textColor="#000000" 
            android:text="@string/jobs_info_note"
            android:textSize="20dp" 
            android:paddingRight="5dp"
             />

            <TextView
            android:id="@+id/tv_my_job" 
            android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:text="@string/my_job"
            android:clickable="true"
            android:textColor="#0000FF" 
            android:onClick="onWorkListClick"
            android:textSize="20dp" 
            android:paddingRight="5dp"
             />

            <TextView
            android:id="@+id/tv_jobs_info_note_mid" 
            android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:textColor="#000000" 
            android:text="@string/jobs_info_note_mid"
            android:textSize="20dp" 
            android:paddingRight="5dp"
             />

            <TextView
            android:id="@+id/tv_team_job" 
            android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:textColor="#0000FF"
            android:clickable="true"
            android:onClick="onWorkListClick"
            android:text="@string/team_job"
            android:textSize="20dp" 
            android:paddingRight="5dp"
             />

            <TextView
            android:id="@+id/tv_jobs_info_note_end" 
            android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:text="@string/jobs_info_note_end"
            android:textColor="#000000" 
            android:textSize="20dp" 
            android:paddingRight="5dp"
             />

        </LinearLayout>
        //Some more code here
        <ImageView
            android:id="@+id/img_current_job_map" 
            android:layout_gravity="center_horizontal|bottom"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/map" />
    </LinearLayout>

Is there some other way to do this,Any help will be appreciated.

  • 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-01T06:53:18+00:00Added an answer on June 1, 2026 at 6:53 am

    I tried using different font size. Although its not the correct way but still there was no option left.

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

Sidebar

Related Questions

I need to display array of images in a single view which have various
I need to cluster some text documents and have been researching various options. It
I want to read plain/text from an Https server. I have tried various codes
I have an application where I need to search in various text-based fields. The
I have the need to perform algorithms on various primitive types; the algorithm is
I need to do the following .. have come across various examples but i
I have a map with various markers and i need to be able to
We have a about 500GB of images in various directories we need to process.
I have a Singleton to manage some variables I need in various places in
I have data with no relation. Just need to count various columns from 3

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.