Check Mobile App
Read now
Start a Project

How to change some default style of the android Views

Save

In this blog,
I will show you how to change some default style of android Views by programmatically.

 

How to change the style of RatingBar using PorterDuff

In XML

In java

getDrawable(index): Returns the drawable for the layer at the specified index.

Parameters index
The index of the layer must be in the range 0…getNumberOfLayers()-1.

PorterDuff.Mode.SRC_ATOP:

Consider these two images:

      

The effect is as if the destination image is trimmed to match the source image, and then held up in front of it:

The Porter/Duff operator that does this is called “Dest Atop”.

 

How to change the color of title divider blue line in Dialog

In this example, I have created a default  Dialog view and change the blue line title divider in Dialog.

Screenshot_2

 

This is simple dialog,

and change the title divider blue line,

and custom_dialog.xml

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.

Osama
Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home