Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Android Development – How To Change Android textview Text Color

Hey buddy did you know how you can change android textview text Color? I’m sure you didn’t know that so don’t worry i’m here to explain you how you can do this easily. There are multiple ways to play with android textview text color.

I’m sure that you are familiar with the android studio, but if you are not use too of that then please check my previous tutorial in which I have explained that how you can create your first application from scratch : Android Development First Experience – MyApp

Before get started with this I’m just explain basics of android textview, basically it is used to show labels and used as the messages and you can perform any functionality as you required.

Change Android textview Text Color

If you have already placed the android textview on the main screen of application then you can change the text color by clicking twice on the textview and suddenly new dock will popup on your work place right side where you can change text as you desire bu giving the value in textColor. This is the frontend based way. If you have any kind of problem regarding this step please check the Image below.

The second way is to change the text color from the backend by the code. Goto the text mode of the android application workplace and add the code.

android:textColor="@color/colorAccent"

To change the text you have to add the code above in the textview structure you can also change the color by changing the @color/ColorName. If you have any kind of problem regarding this step please check the Image below.

Finally we have done this process and now you can easily change textColor and play with this feature of android studio.

Previous Tutorial:

  • Android Development – How To Change Android textview Text

Conclusion

I hope that you will really enjoyed this tutorial, I will appreciate if you will remarks your comments below to add some valuable thing in this. You can also ask any other question regarding the Android Development. Share it with your friends if you will found this helpful.

The post Android Development – How To Change Android textview Text Color appeared first on Junaid Shahid | P-Blogger.



This post first appeared on Junaid Shahid | P-Blogger, please read the originial post: here

Share the post

Android Development – How To Change Android textview Text Color

×

Subscribe to Junaid Shahid | P-blogger

Get updates delivered right to your inbox!

Thank you for your subscription

×