I finally found the problem I have to set the background first before setting the padding. Setting the padding then setting the background doesn't work // does not work tv.setPadding(20, 20, 20, 20); tv.setBackgroundResource(R.drawable.border); // wo
采用PagerAdapter中的FragmentPagerAdapter来实现页面切换,适用于a handful of typically more static fragments to be paged through 1.Layout ViewPager <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android