// Path: dttv/dttv-samples/src/main/java/dttv/app/impl/I_KeyIntercept.java
// public interface I_KeyIntercept {
//     public boolean isNeedIntercept(boolean isNeed);
// }
// 
// Path: dttv/dttv-samples/src/main/java/dttv/app/impl/I_OnMyKey.java
// public interface I_OnMyKey {
//     public void myOnKeyDown(int keyCode);
// }
// 
// Path: dttv/dttv-samples/src/main/java/dttv/app/utils/Constant.java
// public class Constant {
// 
//     public final static String EXTRA_MESSAGE = "com.example.simpleplayer.MESSAGE";
//     public final static String FILE_MSG = "dttp.app.media.URL";
//     public final static String FILE_TYPE = "dttp.app.media.type";
//     public static final String LOGTAG = "DTTV";
// 
// 
//     public final static int REFRESH_TIME_MSG = 0x1000;
//     public final static int BEGIN_MEDIA_MSG = REFRESH_TIME_MSG + 1;
//     public final static int HIDE_OPREATE_BAR_MSG = BEGIN_MEDIA_MSG + 1;
//     public final static int HIDE_PROGRESS_BAR_MSG = HIDE_OPREATE_BAR_MSG + 1;
//     public final static int REFRESH_TIME = 1000;
// 
// 
//     public static final String ARGUMENTS_NAME = "arg";
//     public static final int LOCAL_VIDEO = 0;
//     public static final int LOCAL_AUDIO = 1;
//     public static final int LOCAL_FILE = 2;
// 
//     public static final String MEIDA_NAME_STR = "dttv.app.media_name";
// 
//     public static final String[] gEqulizerPresets = {
//             "Normal",
//             "Classical",
//             "Dance",
//             "Flat",
//             "Folk",
//             "Heavy Metal",
//             "Hip Hop",
//             "Jazz",
//             "Rock"
//     };
// 
//     public static final int FILTER_SIZE = 1 * 1024 * 1024;// 1MB
//     public static final int FILTER_DURATION = 1 * 60 * 1000;// 1分钟
// 
// 
//     // setting
//     public static final String KEY_SETTING_FILTER_AUDIO_FILTER = "key_checkbox_setting_audio_filter";
//     public static final String KEY_SETTING_FILTER_VIDEO_FILTER = "key_checkbox_setting_video_filter";
//     public static final String KEY_SETTING_DECODER_TYPE = "key_listpreference_setting_decoder_type";
//     public static final String KEY_SETTING_DECODER_TYPE_SOFT = "0";
//     public static final String KEY_SETTING_DECODER_TYPE_HW = "1";
//     public static final String KEY_SETTING_BROWSER_MODE ="key_listpreference_filebrowser_display";
//     public static final String KEY_SETTING_DISPLAY_MODE ="key_listpreference_setting_display_mode";
// 
// }


import dttv.app.R;
import dttv.app.impl.I_KeyIntercept;
import dttv.app.impl.I_OnMyKey;
import dttv.app.utils.Constant;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.animation.LinearInterpolator;
import android.view.animation.TranslateAnimation;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TabWidget;
import android.widget.TextView;

			animation.setFillAfter(true);
			iv_nav_indicator.setAnimation(animation);
			currentIndicatorLeft = v.getLeft();*/
            //isUser = true;
        }

        @Override
        public void onPageScrolled(int arg0, float arg1, int arg2) {

        }

        @Override
        public void onPageScrollStateChanged(int arg0) {

        }
    };
    Fragment ft = null;

    private class MyPagerAdapter extends FragmentStatePagerAdapter {
        public MyPagerAdapter(FragmentManager fm) {
            super(fm);
        }

        @Override
        public Fragment getItem(int position) {
            //Fragment ft = null;
            switch (position) {
                case 0:
                    ft = new VideoUIFragment();
                    Bundle args = new Bundle();

// Path: dttv/dttv-samples/src/main/java/dttv/app/impl/I_KeyIntercept.java
// public interface I_KeyIntercept {
//     public boolean isNeedIntercept(boolean isNeed);
// }
// 
// Path: dttv/dttv-samples/src/main/java/dttv/app/impl/I_OnMyKey.java
// public interface I_OnMyKey {
//     public void myOnKeyDown(int keyCode);
// }
// 
// Path: dttv/dttv-samples/src/main/java/dttv/app/utils/Constant.java
// public class Constant {
// 
//     public final static String EXTRA_MESSAGE = "com.example.simpleplayer.MESSAGE";
//     public final static String FILE_MSG = "dttp.app.media.URL";
//     public final static String FILE_TYPE = "dttp.app.media.type";
//     public static final String LOGTAG = "DTTV";
// 
// 
//     public final static int REFRESH_TIME_MSG = 0x1000;
//     public final static int BEGIN_MEDIA_MSG = REFRESH_TIME_MSG + 1;
//     public final static int HIDE_OPREATE_BAR_MSG = BEGIN_MEDIA_MSG + 1;
//     public final static int HIDE_PROGRESS_BAR_MSG = HIDE_OPREATE_BAR_MSG + 1;
//     public final static int REFRESH_TIME = 1000;
// 
// 
//     public static final String ARGUMENTS_NAME = "arg";
//     public static final int LOCAL_VIDEO = 0;
//     public static final int LOCAL_AUDIO = 1;
//     public static final int LOCAL_FILE = 2;
// 
//     public static final String MEIDA_NAME_STR = "dttv.app.media_name";
// 
//     public static final String[] gEqulizerPresets = {
//             "Normal",
//             "Classical",
//             "Dance",
//             "Flat",
//             "Folk",
//             "Heavy Metal",
//             "Hip Hop",
//             "Jazz",
//             "Rock"
//     };
// 
//     public static final int FILTER_SIZE = 1 * 1024 * 1024;// 1MB
//     public static final int FILTER_DURATION = 1 * 60 * 1000;// 1分钟
// 
// 
//     // setting
//     public static final String KEY_SETTING_FILTER_AUDIO_FILTER = "key_checkbox_setting_audio_filter";
//     public static final String KEY_SETTING_FILTER_VIDEO_FILTER = "key_checkbox_setting_video_filter";
//     public static final String KEY_SETTING_DECODER_TYPE = "key_listpreference_setting_decoder_type";
//     public static final String KEY_SETTING_DECODER_TYPE_SOFT = "0";
//     public static final String KEY_SETTING_DECODER_TYPE_HW = "1";
//     public static final String KEY_SETTING_BROWSER_MODE ="key_listpreference_filebrowser_display";
//     public static final String KEY_SETTING_DISPLAY_MODE ="key_listpreference_setting_display_mode";
// 
// }


// Path: dttv/dttv-samples/src/main/java/dttv/app/widget/SlideTabsFragment.java
import dttv.app.R;
import dttv.app.impl.I_KeyIntercept;
import dttv.app.impl.I_OnMyKey;
import dttv.app.utils.Constant;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.animation.LinearInterpolator;
import android.view.animation.TranslateAnimation;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TabWidget;
import android.widget.TextView;

			animation.setFillAfter(true);
			iv_nav_indicator.setAnimation(animation);
			currentIndicatorLeft = v.getLeft();*/
            //isUser = true;
        }

        @Override
        public void onPageScrolled(int arg0, float arg1, int arg2) {

        }

        @Override
        public void onPageScrollStateChanged(int arg0) {

        }
    };
    Fragment ft = null;

    private class MyPagerAdapter extends FragmentStatePagerAdapter {
        public MyPagerAdapter(FragmentManager fm) {
            super(fm);
        }

        @Override
        public Fragment getItem(int position) {
            //Fragment ft = null;
            switch (position) {
                case 0:
                    ft = new VideoUIFragment();
                    Bundle args = new Bundle();

                    args.putString(Constant.ARGUMENTS_NAME, mTextTabs[position].getText().toString());
