Android Open Source - demo-app-android Base Frame Layout

From Project

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.

Java Source Code

package io.rong.imkit.demo.ui;
/*from w  w  w . j av  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) {
    mContext = context;

  public BaseFrameLayout(Context context, AttributeSet attrs) {
    super(context, attrs);

  public BaseFrameLayout(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);

  protected <T extends View> T getView(View view, int resId) {
    return (T) view.findViewById(resId);


Java Source Code List