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

  • Home
  • SEARCH
  • 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 4076442
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:25:32+00:00 2026-05-20T17:25:32+00:00

To simulate a grid, I have a tablelayout with background #ffffff , tablerow with

  • 0

To simulate a grid, I have a tablelayout with background #ffffff, tablerow with background #000000 and textviews with background #dcdcdc.

The entire cell is colored #dcdcdc when the textview has width and height set in fill_parent, but when I add the attribute layout_gravity=center, the width fill_parent attribute is discarded. How can I center the text keeping the whole cell with the expected color?

  • 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-20T17:25:33+00:00Added an answer on May 20, 2026 at 5:25 pm

    If i understand correctly…you can use

    android:gravity="center"
    

    on the TextView to center the text in the view.

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

Sidebar

Related Questions

I have to simulate a USB Device for automation and testing purposes (in Linux).
I have to simulate family tree in prolog. And i have problem of symetrical
I have a grid something like this: A A A A A B C
I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual
I have Silverlight Sketch project, and I`m using muliticolumn listview to simulate datagrid. <Style
I want to simulate DateTime. Lets say I have list of actions to perform
I have try to simulate and develop base of some zend project and in
I want to understand event cycles. I have a form with a grid and
Hi I have a devexpress grid on the form. I enable the incremental search
I'm trying to use a grid in WPF to simulate a scoreboard. But it

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.