How to change Android ViewPager Background Color? -


viewpace background is gray I can not find any clear text on the internet that shows For example how to change the color of that background in black Any thoughts would be appreciated.

You can get it in 2 ways,

Code> ViewPager in XML in

  Android: background = "# 000000"  

2. It is dynamically like below,

  seePager pager = (Viewpoint) findViewById (R.id.pager); Pager.setBackgroundColor (Color.BLACK);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -