Android:TextView与图片上下对齐使用drawableTop

例如:

设置图片位置:
Drawable drawable1=getResources().getDrawable(R.drawable.tab_menu_tubiao1);
drawable1.setBounds(0,0,60,60);
tabSy.setCompoundDrawables(null,drawable1,null,null);

猜你喜欢

转载自blog.csdn.net/ljl940811/article/details/84134048