// Path: app/src/main/java/com/github/cchao/touchnews/ui/fragment/base/BaseFragment.java
// public abstract class BaseFragment extends BaseLazyFragment {
//     protected Toolbar mToolbar;
//     protected View mRootView;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         mRootView = inflater.inflate(getLayoutId(), null);
//         ButterKnife.bind(this, mRootView);
//         mToolbar = ButterKnife.findById(mRootView, R.id.toolbar);
//         return mRootView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//         initialize();
//     }
// 
//     protected void initialize() {
//     }
// 
//     @Override
//     public void onFirstUserVisible() {
//         super.onFirstUserVisible();
//         setSupportActionBar();
//     }
// 
//     //布局ID
//     protected abstract
//     @LayoutRes
//     int getLayoutId();
// 
//     @Override
//     public void onUserVisible() {
//         super.onUserVisible();
//         setSupportActionBar();
//     }
// 
//     /**
//      * 设置toolbar
//      */
//     private void setSupportActionBar() {
//         ((AppCompatActivity) getActivity()).setSupportActionBar(mToolbar);
//         ((HomeActivity) getActivity()).addDrawerListener(mToolbar);
//     }
// }


import com.github.cchao.touchnews.ui.fragment.base.BaseFragment;
import java.util.List;
/*
 * Copyright 2016, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.cchao.touchnews.contract;



/**
 * 绑定fragment块容器 view、presenter
 */
public interface FragmentContainerContract {

    interface View {
// Path: app/src/main/java/com/github/cchao/touchnews/ui/fragment/base/BaseFragment.java
// public abstract class BaseFragment extends BaseLazyFragment {
//     protected Toolbar mToolbar;
//     protected View mRootView;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         mRootView = inflater.inflate(getLayoutId(), null);
//         ButterKnife.bind(this, mRootView);
//         mToolbar = ButterKnife.findById(mRootView, R.id.toolbar);
//         return mRootView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//         initialize();
//     }
// 
//     protected void initialize() {
//     }
// 
//     @Override
//     public void onFirstUserVisible() {
//         super.onFirstUserVisible();
//         setSupportActionBar();
//     }
// 
//     //布局ID
//     protected abstract
//     @LayoutRes
//     int getLayoutId();
// 
//     @Override
//     public void onUserVisible() {
//         super.onUserVisible();
//         setSupportActionBar();
//     }
// 
//     /**
//      * 设置toolbar
//      */
//     private void setSupportActionBar() {
//         ((AppCompatActivity) getActivity()).setSupportActionBar(mToolbar);
//         ((HomeActivity) getActivity()).addDrawerListener(mToolbar);
//     }
// }


// Path: app/src/main/java/com/github/cchao/touchnews/contract/FragmentContainerContract.java
import com.github.cchao.touchnews.ui.fragment.base.BaseFragment;
import java.util.List;

/*
 * Copyright 2016, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.cchao.touchnews.contract;



/**
 * 绑定fragment块容器 view、presenter
 */
public interface FragmentContainerContract {

    interface View {
        void setFragment(List<BaseFragment> fragments, String[] titles);