Android custom title bar shows the method instance of web page loading progress

During the adaptation of lephone these days, the test team submitted a bug: when the text in the title bar is long, it is not completely displayed. In fact, this is not a bug, and this problem has not appeared in other machines before. It just doesn't look beautiful on the lephone platform, because Lenovo has modified the original title bar UI. There was a problem in the process of modification. The progress of the title bar provided by the system can always fade after reaching 100%, but I can't display the last 100% every time. I tried to use the threaded program. The card owner didn't say it, but it still had the same effect. Later, my colleague reminded me to use animation. Indeed, I guess the system is implemented in this way. When the progress reaches 100%, it's OK to change its transparency with animation. Effect: the title bar displays the title of the web page and scrolls, and the progress bar displays the loading progress of the web page (re customize the title bar, the modified lephone has a return button, and the title text and progress bar are not very good-looking in the frame layout). 1. First, define a relativelayout layout file browser_ custom_ Title. XML (alwaysmarqueetextview) rewrites textview to achieve the effect of a running lantern, which can be found on the Internet

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>