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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:39:34+00:00 2026-05-23T20:39:34+00:00

I followed this tutorial, for now it’s working nice, but i only have a

  • 0

I followed this tutorial, for now it’s working nice, but i only have a problem, i need to center vertically the “Title” textview, when “Detail” textview text it’s null or empty, something like this. I tried this (http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/), and it works, but the problem it’s that if i use setVisibility(View.GONE), all the details from all the items, dissapear, and just title get centered., any help appreciated, thanks

EDIT: Fixed this way

String detailView = String.valueOf(rowData.mDetail);
             detail.setText(detailView);
             detail.setVisibility(detailView.equals("null") ? View.GONE : View.VISIBLE);
  • 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-23T20:39:35+00:00Added an answer on May 23, 2026 at 8:39 pm

    Remember to setVisible(View.VISIBLE) when you are recycling a view.

    String detail = "some detail....";
    detailTextView.setVisible(detail == null ? View.GONE : View.VISIBLE);
    

    Hope this helps

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

Sidebar

Related Questions

I've followed this otherwise excellent tutorial on getting Xen working with Ubuntu but am
first, i followed this tutorial: three20 github tutorial i have a memory management problem
Ive followed this tutorial to install (multiple) solr instances on tomcat http://wiki.apache.org/solr/SolrTomcat Now i
I have been trying this for a week or so now. I have followed
I have followed this tutorial to use SQLite db in my android app. Since
I followed this tutorial with only one difference. Instead of naming it hello.php, I
I have followed this tutorial to get my ListView populating data -- http://android.amberfog.com/?p=296 .
I have followed this Wordpress tutorial which works great. I have used a listview
I followed this tutorial on configuring the Rails plugin ExceptionNotifier. I know that I
I'm building an ogre3d tutorial based on this setup http://www.ogre3d.org/wiki/index.php/SettingUpAnApplication#XCode I've followed all steps

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.