question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Greeting text on home screen should be a single TextView

See original GitHub issue

For localization, it’s hard to make sure that the reversed text for each of the two TextViews that comprise the home screen greeting correctly match the flipped layout that Android forms. This is mostly correct today, but it would be more correct if we could combine the strings together. The main challenge has been making sure that:

  1. That the line properly extends the whole length of the TextView
  2. That when the profile name is really long or display text is large, that the name properly wraps to the next line & the underline is properly resized to not extend past the last character

Another issue with current code is that the screen-reader reads it as Good Morning,, Rajat!. Basically there is one extra ,. This is because the screen-reader adds , between two textviews and we already have one , in text itself.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:34 (34 by maintainers)

github_iconTop GitHub Comments

1reaction
rishidynocommented, Dec 10, 2021
0reactions
rishidynocommented, Feb 19, 2022

@yashbansal130 In Oppia we follow particular style guide for code formatting and one of the rules in style guide is to not exceed more that 100 char in a line so you will just neet to format the code. Well most of the time all these issues can be fixed automatically while pushing the code but sometimes we have to do it manually. Take refrence from code style guide in wiki.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding TextViews to home screen widget programmatically
Adding TextViews to home screen widget programmatically ... I want to programmatically add Text Views controls to my home screen widget. In the...
Read more >
Working with the TextView | CodePath Android Cliffnotes
This guide will take a look at the TextView and discuss common properties associated with this view as well as how to setup...
Read more >
TextView - Android Developers
An editable text view, extending AutoCompleteTextView , that can show completion ... android:singleLine, Constrains the text to a single horizontally ...
Read more >
TextViews [Displaying information on the screen] - YouTube
... #2 - TextViews [Displaying information on the screen ]By the end of this video you will :1) Understand how to display text...
Read more >
TextView EditText & Button in Android | Android Studio | 2020
This video is about how to add Textview, Edittext and Button in an Android Application creating using Android Studio.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found