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

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

        <legend id='dimqh'><style id='dimqh'><dir id='dimqh'><q id='dimqh'></q></dir></style></legend>
      1. <tfoot id='dimqh'></tfoot>

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

        • <bdo id='dimqh'></bdo><ul id='dimqh'></ul>
      2. MapView 在對話框中顯示較暗的地圖

        MapView is showing Darker map inside Dialog(MapView 在對話框中顯示較暗的地圖)
          <bdo id='STo6a'></bdo><ul id='STo6a'></ul>

                  <tbody id='STo6a'></tbody>
                <legend id='STo6a'><style id='STo6a'><dir id='STo6a'><q id='STo6a'></q></dir></style></legend>
                • <tfoot id='STo6a'></tfoot>
                • <small id='STo6a'></small><noframes id='STo6a'>

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

                  問題描述

                  我正在嘗試在對話窗口中顯示谷歌地圖.對于此對話框,我使用以下代碼行:

                  I am trying to display google map inside dialog window. For this dialog i am using following lines of code:

                  final Dialog dialog = new Dialog(SetProfileOnlineActivity.this);
                          dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
                          dialog.setCanceledOnTouchOutside(false);
                          dialog.setCancelable(false);
                          dialog.setContentView(R.layout.pick_location_layout);
                          Window w = dialog.getWindow();
                          w.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
                          dialog.show();
                  

                  pick_location_layout.xml

                  <?xml version="1.0" encoding="utf-8"?>
                  <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      xmlns:app="http://schemas.android.com/apk/res-auto"
                      xmlns:tools="http://schemas.android.com/tools"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent">
                  
                  
                      <com.google.android.gms.maps.MapView
                          android:id="@+id/mapview"
                          android:layout_width="0dp"
                          android:layout_height="0dp"
                          app:layout_constraintBottom_toTopOf="@+id/myLl"
                          app:layout_constraintEnd_toEndOf="parent"
                          app:layout_constraintStart_toStartOf="parent"
                          app:layout_constraintTop_toTopOf="parent"
                          />
                  
                      <LinearLayout
                          android:id="@+id/ll_map_search"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:layout_constraintEnd_toEndOf="parent"
                          app:layout_constraintStart_toStartOf="parent"
                          app:layout_constraintTop_toTopOf="parent"
                          android:layout_marginEnd="8dp"
                          android:layout_marginStart="8dp"
                          android:layout_marginTop="8dp"
                          android:background="@color/white"
                          android:orientation="horizontal"
                          >
                          <EditText
                              android:id="@+id/et_search_text"
                              android:layout_width="0dp"
                              android:layout_height="wrap_content"
                              android:hint="Search"
                              android:padding="8dp"
                              android:layout_weight="1"
                              android:textColor="@color/black"
                              android:textSize="18sp"
                              android:maxLines="1"
                              android:background="@android:color/transparent"
                               />
                          <ImageButton
                              android:id="@+id/ib_search_map"
                              android:layout_width="40dp"
                              android:layout_height="40dp"
                              android:scaleType="fitCenter"
                              android:src="@drawable/search"
                              />
                      </LinearLayout>
                  
                      <LinearLayout
                          android:id="@+id/myLl"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          app:layout_constraintBottom_toBottomOf="parent">
                  
                          <Button
                              android:id="@+id/btn_map_cancel"
                              android:layout_width="0dp"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:background="@color/red"
                              android:text="Cancel"
                              android:textColor="@color/white"
                              android:textSize="@dimen/_18sdp" />
                  
                          <Button
                              android:id="@+id/btn_map_ok"
                              android:layout_width="0dp"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:background="@color/green"
                              android:text="Ok"
                              android:textColor="@color/white"
                              android:textSize="@dimen/_18sdp" />
                      </LinearLayout>
                  
                      <Button
                          android:id="@+id/btn_switch_view"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginBottom="8dp"
                          android:layout_marginEnd="8dp"
                          android:layout_marginStart="8dp"
                          android:text="Switch View"
                          app:layout_constraintBottom_toTopOf="@+id/myLl"
                          app:layout_constraintEnd_toEndOf="parent"
                          app:layout_constraintStart_toStartOf="parent" />
                  
                  
                  </android.support.constraint.ConstraintLayout>
                  

                  現在我的問題是我的地圖顯示得更暗了.我還在對話框中顯示編輯文本,該對話框顯示完美,但地圖只是顯示較暗的組件,如圖所示.那么,有什么辦法可以讓 mapview 和其他組件一樣亮嗎?

                  Now my problem is that my map is showing darker. I am also displaying edittext in dialog which is showing perfectly but map is only component which is showing darker as shown in image. So, is there any way to make mapview brighter as other components?

                  推薦答案

                  MapView 更新

                  dialogmapView 的解決方案是像這樣刪除背景暗淡(針對您的代碼進行了調整,只需粘貼在 dialog.show() 之前):

                  Solution for mapView in dialog is removing background dim like this (adjusted for your code, just paste before dialog.show()):

                          w.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
                  

                  不好的是我在 5 中找到了這個解決方案歲的問題

                  上一個答案

                  我剛剛檢查了新地圖"解決方案(在這里閱讀更多):

                  I've just checked with "newer map" solution (read more here):

                  <fragment
                      android:id="@+id/map"
                      android:name="com.google.android.gms.maps.SupportMapFragment"
                      app:mapType="normal"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" />
                  

                  它顯示明亮--圖像在這里--

                  這篇關于MapView 在對話框中顯示較暗的地圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                  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(在應用啟動期間獲取當前位置)

                      <tbody id='xVmez'></tbody>
                    1. <tfoot id='xVmez'></tfoot>
                        <bdo id='xVmez'></bdo><ul id='xVmez'></ul>
                      • <small id='xVmez'></small><noframes id='xVmez'>

                        <legend id='xVmez'><style id='xVmez'><dir id='xVmez'><q id='xVmez'></q></dir></style></legend>

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

                            主站蜘蛛池模板: www.一区二区三区 | 91av在线视频观看 | 国产成人av在线播放 | 亚洲视频精品 | 一区二区三区av夏目彩春 | 四色永久 | 99久久精品国产毛片 | 国产在线观看免费 | 在线观看亚洲欧美 | 免费成人高清在线视频 | 男女羞羞视频免费 | 大伊人久久 | 欧美日韩中文字幕 | 亚洲成人一区二区 | 国偷自产av一区二区三区 | 毛片免费在线观看 | 精品视频一二区 | 日韩成人影院 | 欧美日韩久久久久 | 成人免费观看视频 | 做a网站 | 亚洲一区在线免费观看 | 日韩在线免费视频 | 国产伊人精品 | 超碰在线人人 | 日韩av成人 | 日韩精品视频一区二区三区 | 国产免费看 | 亚洲国产欧美国产综合一区 | 黄色精品 | 久久人| 国产精品久久久久无码av | 成人在线免费网站 | 亚洲精品乱 | 日韩欧美在线视频 | 亚洲成人免费视频在线观看 | 国产精品久久久久久久久久久新郎 | 日韩在线 | 久久久久久99| 人人九九精 | 国产福利视频 |