com.flan.stock.fragment.FragmentStockFenShi.java Source code

Java tutorial

Introduction

Here is the source code for com.flan.stock.fragment.FragmentStockFenShi.java

Source

/*
 *    Flan.Zeng 2011-2016   http://git.oschina.net/signup?inviter=flan
 *
 * 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.flan.stock.fragment;

import com.flan.stock.R;
import com.flan.stock.view.StockFSView;
import com.flan.stock.view.StockTextDataTabView;
import com.flan.stock.view.StockWdMxTabView;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;

/**
 * 
 * @author flan
 * @date   20151030
 */
public class FragmentStockFenShi extends Fragment {

    private StockWdMxTabView stockWdmxTabView;
    private StockTextDataTabView stockTextTabView;
    private StockFSView stockFSView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        ScrollView view = (ScrollView) inflater.inflate(R.layout.fragment_stock_fenshi, null);

        //?/TabView??
        stockWdmxTabView = (StockWdMxTabView) view.findViewById(R.id.tab_wdmx);
        stockWdmxTabView.setOnClickListener(stockWdmxTabView);
        //?TabView??
        stockTextTabView = (StockTextDataTabView) view.findViewById(R.id.tab_stocktext);
        stockTextTabView.setOnClickListener(stockTextTabView);
        stockTextTabView.setParentScrollView(view);

        //?
        stockFSView = (StockFSView) view.findViewById(R.id.stock_sf);

        return view;
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onStart() {
        super.onStart();
    }

}