开发者

building an application to change the color of screen , clicking on the button in android

开发者 https://www.devze.com 2023-02-12 21:12 出处:网络
Hey team i am new to android and building an application in which there would be two buttons one for setting and the other for use mirror.Now when i will click on use mirror button 开发者_如何学Pytho

Hey team i am new to android and building an application in which there would be two buttons one for setting and the other for use mirror. Now when i will click on use mirror button 开发者_如何学Python, the color of the screen should become silver ,so that any one can use it as a mirror......

so plz help me to solve the problem

thanks


This is pretty simple. Use a ImageView and two buttons and change the image of the ImageView depending your button presses. A scaled 1x1 pixel image in the color you like should be sufficient.

If you don't know how you can implement what I just said, you should start reading some basic tutorials. This is pretty basic stuff so work with some tutorials before writing your own application (even if it is so simple)

0

精彩评论

暂无评论...
验证码 换一张
取 消