| | |
| | | import android.view.WindowManager; |
| | | import android.widget.FrameLayout; |
| | | import android.widget.ImageView; |
| | | import android.widget.LinearLayout; |
| | | import android.widget.LinearLayout.LayoutParams; |
| | | import android.widget.RelativeLayout; |
| | | import android.widget.SeekBar; |
| | |
| | | import com.weikou.beibeivideo.ui.mine.BrowserActivity; |
| | | import com.weikou.beibeivideo.ui.mine.FXBrowserActivity; |
| | | import com.weikou.beibeivideo.util.BeibeiConstant; |
| | | import com.weikou.beibeivideo.util.ad.FullVideoAdManager; |
| | | import com.yeshi.buwanshequ.R; |
| | | |
| | | import org.apache.http.Header; |
| | |
| | | if (resourceId > 0) { |
| | | result = getResources().getDimensionPixelSize(resourceId); |
| | | } |
| | | RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, |
| | | LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, |
| | | result); |
| | | findViewById(R.id.v_status_bar).setLayoutParams(params); |
| | | } else { |
| | |
| | | // checkConfiguration(getResources().getConfiguration()); |
| | | // video网络数据请求 |
| | | iNet(); |
| | | } |
| | | |
| | | |
| | | private void loadFullVideoAd() { |
| | | //加载广告 |
| | | if (BeibeiConstant.AD_TYPE.isVideoDetailSplashAd()) { |
| | | if (FullVideoAdManager.getInstance().isCacahed()) { |
| | | FullVideoAdManager.getInstance().showAd(this); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private static FrameLayout fl_video_play_background; |
| | |
| | | */ |
| | | @Override |
| | | public boolean onKeyDown(int keyCode, KeyEvent event) { |
| | | if (keyCode == KeyEvent.KEYCODE_BACK |
| | | if (keyCode == KeyEvent.KEYCODE_BACK |
| | | && getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { |
| | | clickBack(); |
| | | return false; |
| | |
| | | if (progressDialog.isShowing()) { |
| | | progressDialog.dismiss(); |
| | | } |
| | | |
| | | //加载视频广告 |
| | | loadFullVideoAd(); |
| | | |
| | | } |
| | | }); |
| | | } |
| | |
| | | protected void onStop() { |
| | | super.onStop(); |
| | | } |
| | | |
| | | @Override |
| | | protected void onDestroy() { |
| | | super.onDestroy(); |
| | | if (BeibeiConstant.AD_TYPE.isVideoDetailSplashAd()) |
| | | FullVideoAdManager.getInstance().loadAd(getApplicationContext(), null); |
| | | } |
| | | } |