久久久久久久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>

                            主站蜘蛛池模板: 欧美日韩在线视频一区二区 | 精品久久久久久久久久久久久久久久久 | 国产一区二区三区久久 | 97伦理最新伦理 | 久久综合久久综合久久综合 | 成人av网站在线观看 | 国产精品一区久久久 | 免费看黄视频网站 | www精品美女久久久tv | 男人天堂99 | 在线一区二区国产 | 亚洲香蕉在线视频 | 99一区二区 | 久久免费视频观看 | 欧美日韩电影免费观看 | 日韩欧美精品一区 | 在线国产视频 | 国产一区在线免费 | 涩涩视频在线观看 | 成人1区2区 | 午夜黄色 | 亚洲视频在线观看免费 | 99久热 | 欧美xxxx黑人又粗又长 | 久久精品成人 | 国产精品视频久久久 | 97国产精品 | 欧美亚洲视频在线观看 | 欧美一级免费看 | 欧美一级欧美一级在线播放 | 亚洲精品美女 | 亚洲国产精品久久人人爱 | 狠狠艹 | 一级片免费观看 | 亚洲国产成人在线观看 | 欧美日韩高清在线观看 | 区一区二区三在线观看 | 国产在线精品一区二区 | 91视视频在线观看入口直接观看 | 中日韩欧美一级片 | 日韩欧美在线免费观看视频 |