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

    <legend id='6xdns'><style id='6xdns'><dir id='6xdns'><q id='6xdns'></q></dir></style></legend>

      <small id='6xdns'></small><noframes id='6xdns'>

      <tfoot id='6xdns'></tfoot>
        <bdo id='6xdns'></bdo><ul id='6xdns'></ul>

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

        無法創(chuàng)建圓角對話框(Android-Eclipse)

        Can#39;t create rounded corners Dialog (Android-Eclipse)(無法創(chuàng)建圓角對話框(Android-Eclipse))

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

                <tbody id='vpG7A'></tbody>
              <tfoot id='vpG7A'></tfoot>
                <bdo id='vpG7A'></bdo><ul id='vpG7A'></ul>

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

                  本文介紹了無法創(chuàng)建圓角對話框(Android-Eclipse)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試為我的應(yīng)用程序?qū)υ捒蛑谱髯远x對話框形狀.我一直在尋找這個主題幾個小時,但我找到的解決方案對我不起作用,這就是為什么我問你我自己的問題.我想要一個帶有圓角的對話框并顯示一個標(biāo)題,然后是一個帶有一些文本的 ScrollView.唯一對我不起作用的是圓角.在這里我把我的代碼貼給你:

                  I'm trying to make a custom dialog shape for my app's dialogs. I've been searching for this topic for hours, but the solutions I find don't work for me, that's why I ask you for my own problem. I want a Dialog with rounded corners and showing a title and then a ScrollView with some text. The only thing that is not working to me is the rounded corners. Here I post you my code:

                  我的 AndroidManifest.xml 帶有我想要的活動以及我的圓角對話框:

                  my AndroidManifest.xml with the activity I want with my rounded-corners Dialog:

                  <activity 
                          android:name=".AboutNacimiento"
                          android:label="@string/about_nac_title"
                          android:theme="@style/Theme.CustomDialogTheme"
                          android:screenOrientation="nosensor">
                      </activity>
                  

                  然后我的資源具有各自的樣式 (res/layout/values/dialogTheme.xml)

                  then my resource with respective styles (res/layout/values/dialogTheme.xml)

                  <?xml version="1.0" encoding="utf-8"?>
                  <resources>
                  
                  <style name="Theme.CustomDialogTheme" 
                      parent="@android:style/Theme.Dialog">
                      <item name="android:windowTitleStyle">@style/dialog_title_style</item>
                      <item name="android:background">@drawable/rounded_dialog</item>     
                  
                  </style>
                  
                  <style name="dialog_title_style" parent="@android:Widget.TextView">
                      <item name="android:background">@color/titulo_color</item>
                      <item name="android:padding">10dip</item>
                      <item name="android:textSize">20sp</item>
                      <item name="android:gravity">center</item>
                      <item name="android:textStyle">bold</item>
                      <item name="android:textColor">@color/texto_blanco</item>
                  </style>    
                  

                  最后是我想要的圓形對話框的形狀 (res/drawable/rounded_dialog.xml):

                  and finally the shape I want for my rounded dialog (res/drawable/rounded_dialog.xml) :

                  <?xml version="1.0" encoding="utf-8"?>
                  <shape xmlns:android="http://schemas.android.com/apk/res/android"
                  
                  android:shape="rectangle" >
                  <solid android:color="@color/background_color"/>
                  <stroke android:color="#7F7F7F" android:width="1dp" />
                  <corners
                      android:radius="20dp"/> 
                  </shape>
                  

                  但我得到的唯一圓形"的東西是 TextViews 中的一些邊框......

                  but the only "rounded" thing I'm getting are some borders in the TextViews...

                  http://imageshack.us/photo/my-images/515/問題ab.jpg

                  你能幫我得到我想要的對話框嗎?

                  could you please help me to get my desired Dialog?

                  推薦答案

                  移除默認(rèn)android框架的關(guān)鍵是:

                  The key thing to remove default android frame is:

                  MyDialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
                  

                  這是完整的例子:

                  Dialog MyDialog= new Dialog(MyActivity.this);
                  MyDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
                  MyDialog.setContentView(R.layout.my_custom_dialog);
                  MyDialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
                  MyDialog.show();
                  

                  這篇關(guān)于無法創(chuàng)建圓角對話框(Android-Eclipse)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當(dāng)前位置)
                  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 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動期間獲取當(dāng)前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                  • <bdo id='8ZPlz'></bdo><ul id='8ZPlz'></ul>

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

                      • <tfoot id='8ZPlz'></tfoot>
                          <tbody id='8ZPlz'></tbody>
                          <legend id='8ZPlz'><style id='8ZPlz'><dir id='8ZPlz'><q id='8ZPlz'></q></dir></style></legend>
                          1. <small id='8ZPlz'></small><noframes id='8ZPlz'>

                            主站蜘蛛池模板: 亚洲国产成人精品女人 | 一区二区亚洲 | 日韩久久成人 | 精品视频免费 | 黄色一级片视频 | 亚洲精品视频久久 | 欧美色性 | 久久成人国产精品 | 欧美在线国产精品 | 在线精品亚洲欧美日韩国产 | 亚洲电影成人 | 国产在线网站 | 日韩av在线播 | 天天操欧美 | 高清国产一区二区 | 九九热精品视频 | 久久久久久看片 | 国产一区二区三区视频 | 荷兰欧美一级毛片 | 色综合美女 | 羞羞色网站 | 国产精品国产三级国产播12软件 | 成人小视频在线 | 国产精品中文 | 伊人网91 | 91精品国产乱码久久久久久久久 | 日日夜夜天天干 | 欧美一卡二卡在线 | 亚洲人久久| 精品国产亚洲一区二区三区大结局 | 精品国产乱码久久久久久老虎 | 日韩中文字幕在线观看 | 99视频在线 | 亚洲九九| www.中文字幕.com| 国产 欧美 日韩 一区 | 成人乱人乱一区二区三区软件 | 一区二区在线不卡 | 日韩成人精品在线观看 | 狠狠久 | 一区二区视频免费观看 |