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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:18:30+00:00 2026-06-11T11:18:30+00:00

I have a calendar view which is based on a GridView . It basically

  • 0

I have a calendar view which is based on a GridView.

It basically a school tests calendar. When you click on one of the cells you can see information about the test. In some phones the TextView containing the information is not shown, or partially shown because the calendar catches the whole screen.
I decided that if the TextView is cut off, I want to show an AlertDialog instead of showing the information on the screen.
The problem is, I don’t know how to check if the TextView is cut off.

Here are 2 pictures to show you what I mean:

Thats how it should look:

Thats how it should look

Thats how it sometimes looks:

Thats how it sometimes looks

Thanks!

  • 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-11T11:18:31+00:00Added an answer on June 11, 2026 at 11:18 am

    I have found a solution on my own.
    I checked the height of the GridView and the height of the TextView.
    then,

    if (gridViewHeight + textViewHeight >= containingLinearLayoutHeight)

    it means that the Text is cut off.

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

Sidebar

Related Questions

I have a SharePoint calendar which users can connect to and view/edit in Outlook.
I have implemented drag-n-drop in a custom Calendar view in my application, which does
I am building an Day View calendar app. I have already created the empty
I have a calendar table in my MYSQL database with one field named datefield
I have a calendar for day view, month view and week view. In month
I want to have one model & view that is served by multiple controllers
Problem: I have a custom Calendar view that I generated using canvas drawing and
My application displays information on a month calendar view. The information itself is a
I am trying to make a calendar and view the calendar in which i
I have created one application which contains several buttons to home page clicking on

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.