久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='jIkgW'></tfoot>
<i id='jIkgW'><tr id='jIkgW'><dt id='jIkgW'><q id='jIkgW'><span id='jIkgW'><b id='jIkgW'><form id='jIkgW'><ins id='jIkgW'></ins><ul id='jIkgW'></ul><sub id='jIkgW'></sub></form><legend id='jIkgW'></legend><bdo id='jIkgW'><pre id='jIkgW'><center id='jIkgW'></center></pre></bdo></b><th id='jIkgW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jIkgW'><tfoot id='jIkgW'></tfoot><dl id='jIkgW'><fieldset id='jIkgW'></fieldset></dl></div>

    <bdo id='jIkgW'></bdo><ul id='jIkgW'></ul>
  • <legend id='jIkgW'><style id='jIkgW'><dir id='jIkgW'><q id='jIkgW'></q></dir></style></legend>
  • <small id='jIkgW'></small><noframes id='jIkgW'>

      1. Android VideoView:對話框視圖中的視頻視圖要暗得多

        Android VideoView: Video view is much darker in a dialog view(Android VideoView:對話框視圖中的視頻視圖要暗得多)
        <legend id='hH0Uv'><style id='hH0Uv'><dir id='hH0Uv'><q id='hH0Uv'></q></dir></style></legend>
          <tbody id='hH0Uv'></tbody>

        <small id='hH0Uv'></small><noframes id='hH0Uv'>

                <bdo id='hH0Uv'></bdo><ul id='hH0Uv'></ul>

                <i id='hH0Uv'><tr id='hH0Uv'><dt id='hH0Uv'><q id='hH0Uv'><span id='hH0Uv'><b id='hH0Uv'><form id='hH0Uv'><ins id='hH0Uv'></ins><ul id='hH0Uv'></ul><sub id='hH0Uv'></sub></form><legend id='hH0Uv'></legend><bdo id='hH0Uv'><pre id='hH0Uv'><center id='hH0Uv'></center></pre></bdo></b><th id='hH0Uv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hH0Uv'><tfoot id='hH0Uv'></tfoot><dl id='hH0Uv'><fieldset id='hH0Uv'></fieldset></dl></div>
                  <tfoot id='hH0Uv'></tfoot>
                  本文介紹了Android VideoView:對話框視圖中的視頻視圖要暗得多的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  大家好我在對話框視圖中嵌入視頻視圖時遇到問題

                  Hi all I have a problem with embedding a video view inside a dialog view

                  一切正常,只是對話框中顯示的視頻比在活動的其余部分中顯示的要暗得多

                  everything works fine except that the video displayed in the Dialog is much darker that if displayed in the rest of the activity

                  有什么想法嗎?

                  這里有一些代碼

                  button1main.setOnClickListener(new OnClickListener() {
                  
                                  public VideoView videoView = null;
                                  @Override
                                  public void onClick(View v) {
                                      //set up dialog
                                      Dialog dialog = new Dialog(CustomDialog.this);
                                      dialog.setContentView(R.layout.maindialog);
                                      //dialog.setTitle("This is my custom dialog box");
                                      dialog.setCancelable(true);
                  
                  
                                      this.videoView = (VideoView) dialog.findViewById(R.id.video);
                                      VideoPlayer vp = new VideoPlayer(this.videoView, null);
                                      vp.playVideo();
                  
                                      //set up button
                                      Button button = (Button) dialog.findViewById(R.id.Button01);
                                      button.setOnClickListener(new OnClickListener() {
                                      @Override
                                          public void onClick(View v) {
                                              finish();
                                          }
                                      });
                                      //now that the dialog is set up, it's time to show it    
                                      dialog.show();
                                  }
                              });
                  

                  推薦答案

                  我實際上找到了解決方案(或者至少在我的情況下)

                  I actually found the solution to this (or at least in my case)

                  這似乎是 android 的一個錯誤,其中視頻視圖是在對話框后面創(chuàng)建的,當對話框打開時,它會使包括視頻在內的背景視圖變暗

                  it seems its a bug from android where the Video View is created behind the Dialog and when the Dialog opens it dims the background views including the video

                  我應用的快速修復"是

                  WindowManager.LayoutParams a = dialog.getWindow().getAttributes();
                  a.dimAmount = 0;
                  dialog.getWindow().setAttributes(a);
                  

                  它們可能是一個更好的解決方案,例如傳遞對話框的上下文,而不是使用相同的上下文來創(chuàng)建對話框和視頻視圖(如果有時間我會稍后檢查)

                  they might be a solution better solution like passing the context of the Dialog box instead of using the same context for creating the Dialog and the Video View (I'll check later if I get sone time)

                  這篇關于Android VideoView:對話框視圖中的視頻視圖要暗得多的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯(lián)網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                      • <bdo id='Zi07o'></bdo><ul id='Zi07o'></ul>

                          <tbody id='Zi07o'></tbody>

                        1. <i id='Zi07o'><tr id='Zi07o'><dt id='Zi07o'><q id='Zi07o'><span id='Zi07o'><b id='Zi07o'><form id='Zi07o'><ins id='Zi07o'></ins><ul id='Zi07o'></ul><sub id='Zi07o'></sub></form><legend id='Zi07o'></legend><bdo id='Zi07o'><pre id='Zi07o'><center id='Zi07o'></center></pre></bdo></b><th id='Zi07o'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Zi07o'><tfoot id='Zi07o'></tfoot><dl id='Zi07o'><fieldset id='Zi07o'></fieldset></dl></div>
                          <legend id='Zi07o'><style id='Zi07o'><dir id='Zi07o'><q id='Zi07o'></q></dir></style></legend>
                          <tfoot id='Zi07o'></tfoot>

                          <small id='Zi07o'></small><noframes id='Zi07o'>

                            主站蜘蛛池模板: 亚洲三区视频 | 国产精品久久久久久久免费观看 | 成人在线不卡 | 91色视频在线观看 | 亚洲欧美中文字幕在线观看 | 国产日产精品一区二区三区四区 | 午夜免费观看网站 | 亚洲一区 中文字幕 | 午夜久久久久久久久久一区二区 | 亚洲第一区久久 | 午夜免费福利片 | 国产又色又爽又黄又免费 | 午夜天堂 | 手机看片169| av中文在线观看 | 亚洲精品久久嫩草网站秘色 | 久久久免费电影 | 日韩精品视频一区二区三区 | 国产a爽一区二区久久久 | 天天爽天天干 | 黄色三级毛片 | 免费成人高清 | 国产精品视频免费观看 | 国产99视频精品免费视频7 | 日韩中文字幕一区二区 | 黄色国产在线视频 | 91免费电影 | 欧美一级在线观看 | 日韩一区二区三区视频 | 亚洲在线 | 欧美激情久久久 | 欧美一区二区三区的 | 成人在线中文字幕 | 99久久久国产精品免费消防器 | 欧美日韩在线一区二区三区 | 欧美精品福利视频 | 欧美成人精品一区 | 国产福利资源在线 | 免费一区二区 | 久久久久久久久淑女av国产精品 | 日本不卡一区二区三区在线观看 |