Back to project page sms_modi.
The source code is released under:
GNU General Public License
If you think the Android project sms_modi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.zhufeng.sms_mod; /* w w w . j av a 2 s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; public class ViewGroupImpl extends ViewGroup { public ViewGroupImpl(Context context, AttributeSet attrs) { super(context, attrs); Context mContext = context; myAddView(); } public ViewGroupImpl(Context context) { super(context); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { View v = getChildAt(0); v.layout(l, t, r, b); } public void myAddView() { ImageView mIcon = new ImageView(getContext()); mIcon.setImageResource(R.drawable.ic_launcher); addView(mIcon); } }