// Path: vor-android/mobile/src/main/java/com/futurice/vor/view/CustomViewPager.java
// public class CustomViewPager extends ViewPager {
// 
//     public CustomViewPager(Context context) {
//         super(context);
//     }
// 
//     public CustomViewPager(Context context, AttributeSet attrs) {
//         super(context, attrs);
//     }
// 
//     /*
//     * There is a problem with PhotoView's behavior with ViewPager.
//     * This override prevents the app from crashing.
//     * https://github.com/chrisbanes/PhotoView/issues/72
//     */
//     @Override
//     public boolean onInterceptTouchEvent(MotionEvent ev) {
//         try {
//             return super.onInterceptTouchEvent(ev);
//         } catch (Exception e) {
//             e.printStackTrace();
//             return false;
//         }
//     }
// }


import android.support.design.widget.TabLayout;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.futurice.vor.R;
import com.futurice.vor.view.CustomViewPager;
package com.futurice.vor.activity;



public class SpaceActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_space);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(true);
        }

// Path: vor-android/mobile/src/main/java/com/futurice/vor/view/CustomViewPager.java
// public class CustomViewPager extends ViewPager {
// 
//     public CustomViewPager(Context context) {
//         super(context);
//     }
// 
//     public CustomViewPager(Context context, AttributeSet attrs) {
//         super(context, attrs);
//     }
// 
//     /*
//     * There is a problem with PhotoView's behavior with ViewPager.
//     * This override prevents the app from crashing.
//     * https://github.com/chrisbanes/PhotoView/issues/72
//     */
//     @Override
//     public boolean onInterceptTouchEvent(MotionEvent ev) {
//         try {
//             return super.onInterceptTouchEvent(ev);
//         } catch (Exception e) {
//             e.printStackTrace();
//             return false;
//         }
//     }
// }


// Path: vor-android/mobile/src/main/java/com/futurice/vor/activity/SpaceActivity.java
import android.support.design.widget.TabLayout;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.futurice.vor.R;
import com.futurice.vor.view.CustomViewPager;

package com.futurice.vor.activity;



public class SpaceActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_space);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(true);
        }

        CustomViewPager viewPager = (CustomViewPager) findViewById(R.id.container);