Code example for ImageView

Methods: setIdsetPadding

0
 
		mContext = context;
		mContentIndex = new ContentIndex(context.getContentResolver());
		mTagHelper = new Tag(context);
 
		mIcon = new ImageView(context);
		mIcon.setPadding(2, 2, 2, 2);
		mIcon.setId(CONTENT_ICON);
 
		mName = new TextView(context);
		mName.setGravity(RelativeLayout.CENTER_VERTICAL);
		mName.setId(CONTENT_URI);
 
		// TODO The following does not seem to work? 
		mName.setTextAppearance(context, android.R.attr.textAppearanceLarge);
 
		// so we give some explicit values for now 
		mName.setTextSize(24);
		mName.setTextColor(0xFFFFFFFF);
 
Connect your IDE to all the code out there  Get Codota for Java