In Android, to display like this, we may use a Imageview followed by a Textview.
Drawable drawable= activity.getResources().getDrawable(R.drawable.lyb);//load image in drawable
drawable.setBounds(0,0,drawable.getIntrinsicWidth(),calRich.getIntrinsicHeight());//sepecify bounds
textView.setCompoundDrawables(null,null,calRich,null);//right image
textView.setCompoundDrawablePadding(5);// specify padding between image and text
0 comments:
Post a Comment