Tuesday, February 11, 2014
Solving how to refresh the title bar / TextView
I have a custom title bar, which has a title TextView txt
settext Some phones even when a problem
Suppose now that there are pages titled "twelve thousand three hundred forty-five"
Call settext ("ah")
There will be "twelve ah forty-five"
/ / 1. Txt.Invalidate () tried, without effect
/ / 2. Txt.postInvalidate () tried, will become a "twelve ah"
/ / 3. Txt.postInvalidateDelayed (time) tried the same effect as 2
How to solve it properly display
Reply:
You can add a title bar TextView inside this control, then call txt.setText () this method when you want to jump to that page when he used to call this method, the switch to determine which page to jump to, text () inside The string is the title you want to set, for example txt.setText ("ah"), that title is "ah"
Reply:
You use the android to set html? If you need to set setTitle html
Reply:
No, this nothing to do with html.
The problem lies in the settext, I suspect textview have ui cache.
Reply:
You are not set up any special configuration, you try to look into English or numbers did not have a problem
Reply:
Most of the mobile phone is no problem, it is millet m1 so.
Reply:
Nothing cache, you use this textView places that are blank, then set suspect you have an assignment elsewhere
Reply:
I do not know Jesus only onlookers
Reply:
Not elsewhere assignment problem, I have previously said, most phones are okay, only one of millet have this problem.
Reply:
Trouble posted under the bar code, even if the assignment elsewhere that this situation does not
Reply:
Well, its investigation is a custom style issues.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment