@@ -0,0 +1,2585 @@
+package io.agora.openlive.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.design.widget.CoordinatorLayout;%0Aimport android.support.design.widget.Snackbar;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.view.ViewPager;%0Aimport android.view.View;%0A%0Aimport android.widget.TextView;%0Aimport android.widget.Toast;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport eu.long1.spacetablayout.SpaceTabLayout;%0Aimport io.agora.contract.fragment.ContentFragment;%0Aimport io.agora.contract.fragment.MineFragment;%0Aimport io.agora.contract.fragment.OtherFragment;%0Aimport io.agora.openlive.R;%0A%0A/**%0A * File Name:%0A * Author:      ruan%0A * Write Dates: 2017/7/6%0A * Description: %E7%99%BB%E5%BD%95%E5%AE%8C%E6%88%90%E5%90%8E%E8%BF%9B%E5%85%A5%E7%9A%84%E4%B8%BB%E7%95%8C%E9%9D%A2%0A */%0A%0Apublic class HomeActivity extends BaseActivity %7B%0A%0A    List%3CFragment%3E fragments;%0A    SpaceTabLayout tabLayout;%0A    TextView tv_title;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_home);%0A%0A    %7D%0A%0A    @Override%0A    protected void initUIandEvent() %7B%0A%0A        fragments = new ArrayList%3C%3E();%0A        fragments.add(new ContentFragment());%0A        fragments.add(new OtherFragment());%0A        fragments.add(new MineFragment());%0A%0A        final CoordinatorLayout coordinatorLayout = (CoordinatorLayout) findViewById(R.id.activity_main);%0A        tv_title = (TextView) findViewById(R.id.tv_title);%0A        ViewPager viewPager = (ViewPager) findViewById(R.id.viewPager);%0A        tabLayout = (SpaceTabLayout) findViewById(R.id.spaceTabLayout);%0A        tabLayout.initialize(viewPager,getSupportFragmentManager(),fragments);%0A        tabLayout.setTabOneOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Snackbar snackbar = Snackbar%0A                        .make(coordinatorLayout, %22Welcome to SpaceTabLayout%22, Snackbar.LENGTH_SHORT);%0A%0A                snackbar.show();%0A            %7D%0A        %7D);%0A        tabLayout.setTabOneText(%22%E7%9B%B4%E6%92%AD%22);%0A        tabLayout.setTabOneIcon(R.drawable.icon_video);%0A        tabLayout.setTabTwoText(%22%E5%85%B6%E4%BB%96%22);%0A        tabLayout.setTabTwoIcon(R.drawable.other);%0A        tabLayout.setTabThreeText(%22%E6%88%91%22);%0A        tabLayout.setTabThreeIcon(R.drawable.mine);%0A        tabLayout.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Toast.makeText(getApplication(), %22%22 + tabLayout.getCurrentPosition(), Toast.LENGTH_SHORT).show();%0A            %7D%0A        %7D);%0A%0A    %7D%0A%0A    @Override%0A    protected void deInitUIandEvent() %7B%0A%0A    %7D%0A%0A%7D%0A

完成主页面列表显示 完成spalse界面