| | |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | | import com.weikou.beibeivideo.BeibeiVideoAPI; |
| | | import com.weikou.beibeivideo.entity.VideoType; |
| | | import com.weikou.beibeivideo.ui.BaseActivity; |
| | | import com.weikou.beibeivideo.ui.common.VideosFragment; |
| | | import com.weikou.beibeivideo.ui.mine.BrowserActivity; |
| | | import com.weikou.beibeivideo.ui.mine.WatchHistoryActivity; |
| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public class MVideosActivity extends FragmentActivity implements |
| | | public class MVideosActivity extends BaseActivity implements |
| | | OnClickListener { |
| | | private VideoType mVideoType; |
| | | |
| | |
| | | |
| | | preferences = getSharedPreferences("user", |
| | | Context.MODE_PRIVATE); |
| | | /* |
| | | * 计算状态栏高度并设置 |
| | | */ |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { |
| | | Window window = getWindow(); |
| | | window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, |
| | | WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
| | | int result = 0; |
| | | int resourceId = getResources().getIdentifier("status_bar_height", |
| | | "dimen", "android"); |
| | | if (resourceId > 0) { |
| | | result = getResources().getDimensionPixelSize(resourceId); |
| | | } |
| | | LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, |
| | | result); |
| | | findViewById(R.id.v_status_bar).setLayoutParams(params); |
| | | } else { |
| | | findViewById(R.id.v_status_bar).setVisibility(View.GONE); |
| | | } |
| | | initStatusBar(); |
| | | mVideoInfos = new ArrayList<VideoType>(); |
| | | mVideoType = (VideoType) getIntent().getSerializableExtra("video_type"); |
| | | pager = (ViewPager) findViewById(R.id.pager); |
| | |
| | | } |
| | | |
| | | @Override |
| | | protected void onResume() { |
| | | public void onResume() { |
| | | super.onResume(); |
| | | } |
| | | |
| | | @Override |
| | | protected void onPause() { |
| | | public void onPause() { |
| | | super.onPause(); |
| | | } |
| | | |