Back to project page demo-app-android.
The source code is released under:
MIT License
If you think the Android project demo-app-android 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 io.rong.imkit.demo.ui; /*from w w w . j av a2s.co m*/ import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.FrameLayout; /** * Created by zhjchen on 14-4-4. */ public class BaseFrameLayout extends FrameLayout { protected Context mContext; public BaseFrameLayout(Context context) { super(context); mContext = context; } public BaseFrameLayout(Context context, AttributeSet attrs) { super(context, attrs); } public BaseFrameLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @SuppressWarnings("unchecked") protected <T extends View> T getView(View view, int resId) { return (T) view.findViewById(resId); } }