package top.littlerich.virtuallocation.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;


import com.virjar.ratel.virtuallocation.R;

import top.littlerich.virtuallocation.view.TopBanner;

public class AboutActivity extends AppCompatActivity {

    TopBanner mTopbanner;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_about);
        initViews();
        bindListener();
    }

    private void initViews() {
        mTopbanner = (TopBanner) findViewById(R.id.topbanner);
    }

    private void bindListener() {
        mTopbanner.setTopBannerListener(new TopBanner.OnTopBannerListener() {
            @Override
            public void leftClick(View v) {
                finish();
            }

            @Override
            public void rightClick(View v) {

            }
        });
    }

    public static void openActivity(Context conetxt){
        Intent intent = new Intent(conetxt, AboutActivity.class);
        conetxt.startActivity(intent);
    }
}
