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

  • <legend id='5L4aK'><style id='5L4aK'><dir id='5L4aK'><q id='5L4aK'></q></dir></style></legend>
  • <tfoot id='5L4aK'></tfoot>

    <small id='5L4aK'></small><noframes id='5L4aK'>

      <i id='5L4aK'><tr id='5L4aK'><dt id='5L4aK'><q id='5L4aK'><span id='5L4aK'><b id='5L4aK'><form id='5L4aK'><ins id='5L4aK'></ins><ul id='5L4aK'></ul><sub id='5L4aK'></sub></form><legend id='5L4aK'></legend><bdo id='5L4aK'><pre id='5L4aK'><center id='5L4aK'></center></pre></bdo></b><th id='5L4aK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5L4aK'><tfoot id='5L4aK'></tfoot><dl id='5L4aK'><fieldset id='5L4aK'></fieldset></dl></div>
        <bdo id='5L4aK'></bdo><ul id='5L4aK'></ul>
      1. 如何為自定義對(duì)話框添加標(biāo)題?

        How to add title to the custom Dialog?(如何為自定義對(duì)話框添加標(biāo)題?)
          <legend id='HXH6H'><style id='HXH6H'><dir id='HXH6H'><q id='HXH6H'></q></dir></style></legend>
            <tbody id='HXH6H'></tbody>

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

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

            • <bdo id='HXH6H'></bdo><ul id='HXH6H'></ul>

                • <tfoot id='HXH6H'></tfoot>
                  本文介紹了如何為自定義對(duì)話框添加標(biāo)題?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  如何為這個(gè)自定義對(duì)話框添加標(biāo)題??

                  How can i add title to this custom dialog??

                  我試過這樣

                  public void customDialog()
                   {
                    Dialog dialog=new Dialog(this);
                    dialog.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
                    dialog.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.string.app_name );
                    dialog.setContentView(R.layout.dialog_submit);
                    TextView edit_model=(TextView) dialog.findViewById(R.id.edit_model);
                    edit_model.setText(android.os.Build.DEVICE);
                    dialog.show();
                   }//end of custom dialog function
                  

                  我也嘗試過這樣設(shè)置標(biāo)題..dialog.setTitle("Enter Details"); 但這也沒有產(chǎn)生任何結(jié)果.那么如何設(shè)置這個(gè)自定義對(duì)話框的標(biāo)題呢?

                  I have tried to set title like this too..dialog.setTitle("Enter Details"); but this too didn't yielded any result. So how can i set title to this custom dialog??

                  這是我用于自定義對(duì)話框的 dialog_submit.xml 文件.

                  This is my dialog_submit.xml file used for the custom dialog.

                   <?xml version="1.0" encoding="utf-8"?>
                  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                            android:id="@+id/layout_root"
                            android:orientation="vertical" 
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:padding="10dp"
                            >
                    <TextView android:id="@+id/txt_name"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#FFF"
                            android:text="Name"
                            android:textStyle="bold"
                            />
                    <EditText android:id="@+id/edit_name"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_below="@+id/txt_name"
                            />
                  <TextView android:id="@+id/txt_model"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#FFF"
                            android:layout_below="@+id/edit_name"
                            android:text="Phone Model"
                            />
                  <TextView android:id="@+id/edit_model"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_below="@+id/txt_model"
                            />
                  
                  <Button android:id="@+id/but_cancel"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_below="@+id/edit_model"
                            android:text="Cancel"     
                            />
                  <Button android:id="@+id/but_submit"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_below="@+id/edit_model"
                            android:layout_toRightOf="@+id/but_cancel"    
                            android:text="Submit"     
                            />                       
                  </RelativeLayout>
                  

                  推薦答案

                  使用你的一些片段:

                  public void customDialog() {
                      Dialog dialog=new Dialog(this);
                      dialog.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
                      dialog.setContentView(R.layout.dialog_submit);
                      dialog.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
                      dialog.show();
                  }
                  

                  res/layout/custom_title.xml

                  res/layout/custom_title.xml

                  <TextView xmlns:android="http://schemas.android.com/apk/res/android"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="This is a custom title"/>
                  

                  這篇關(guān)于如何為自定義對(duì)話框添加標(biāo)題?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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(如何檢測(cè)位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動(dòng)期間獲取當(dāng)前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                    <tbody id='ElpyV'></tbody>
                • <tfoot id='ElpyV'></tfoot>
                      <legend id='ElpyV'><style id='ElpyV'><dir id='ElpyV'><q id='ElpyV'></q></dir></style></legend>

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

                          <i id='ElpyV'><tr id='ElpyV'><dt id='ElpyV'><q id='ElpyV'><span id='ElpyV'><b id='ElpyV'><form id='ElpyV'><ins id='ElpyV'></ins><ul id='ElpyV'></ul><sub id='ElpyV'></sub></form><legend id='ElpyV'></legend><bdo id='ElpyV'><pre id='ElpyV'><center id='ElpyV'></center></pre></bdo></b><th id='ElpyV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ElpyV'><tfoot id='ElpyV'></tfoot><dl id='ElpyV'><fieldset id='ElpyV'></fieldset></dl></div>
                          • <bdo id='ElpyV'></bdo><ul id='ElpyV'></ul>
                            主站蜘蛛池模板: 色婷婷一区二区三区四区 | 国产精品精品视频一区二区三区 | www成年人视频 | 夜夜草| www.国产精品 | 亚洲精品一区二区三区蜜桃久 | 亚洲美女一区 | 国产精品久久久久久久久久久免费看 | 亚洲欧美日韩精品久久亚洲区 | 日本不卡免费新一二三区 | 亚洲黄色在线免费观看 | 久久久久国产一区二区三区 | 日韩精品专区在线影院重磅 | 一级毛片中国 | 91在线观看| 噜噜噜噜狠狠狠7777视频 | 激情欧美一区二区三区 | 欧美a级成人淫片免费看 | 久久久国产精品 | 中文字幕av一区 | 久久久成人网 | 国产一级电影在线 | 国产成人午夜高潮毛片 | 久久久精品一区二区三区四季av | 国产欧美精品区一区二区三区 | 香蕉久久av | 国产美女黄色 | 在线观看日本高清二区 | 欧美一区二区三区在线观看视频 | 精品无码久久久久久国产 | 第四色影音先锋 | 成人午夜免费福利视频 | 天天看天天干 | 亚洲www. | 精品视频一区二区三区在线观看 | 91精品国产91久久久久久最新 | 欧美激情一区二区三区 | 日韩精品视频网 | 日韩中文av在线 | 久久精品综合网 | 日韩午夜 |