content: package com.adymilk.easybrowser.por;
  
  import android.app.Activity;
  import android.support.annotation.NonNull;
  import android.support.annotation.Nullable;
  import android.view.LayoutInflater;
  import android.view.ViewGroup;
  import android.webkit.WebView;
  
  import com.just.agentweb.IWebLayout;
  import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout;
  
  /**
   * Created by cenxiaozhong on 2017/7/1.
   * source code  https://github.com/Justson/AgentWeb
   */
  
  public class WebLayout implements IWebLayout {
  
      private Activity mActivity;
      private final TwinklingRefreshLayout mTwinklingRefreshLayout;
      private WebView mWebView = null;
  
      public WebLayout(Activity activity) {
          this.mActivity = activity;
          mTwinklingRefreshLayout = (TwinklingRefreshLayout) LayoutInflater.from(activity).inflate(com.adymilk.easybrowser.por.R.layout.fragment_twk_web, null);
          mTwinklingRefreshLayout.setPureScrollModeOn();
          mWebView = (WebView) mTwinklingRefreshLayout.findViewById(com.adymilk.easybrowser.por.R.id.webView);
      }
  
      @NonNull
      @Override
      public ViewGroup getLayout() {
          return mTwinklingRefreshLayout;
      }
  
      @Nullable
      @Override
      public WebView getWeb() {
          return mWebView;
      }
  
  
  
  }
  