久久久久久久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. 如何為自定義對話框添加標題?

        How to add title to the custom Dialog?(如何為自定義對話框添加標題?)
          <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>
                  本文介紹了如何為自定義對話框添加標題?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  如何為這個自定義對話框添加標題??

                  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
                  

                  我也嘗試過這樣設置標題..dialog.setTitle("Enter Details"); 但這也沒有產生任何結果.那么如何設置這個自定義對話框的標題呢?

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

                  這是我用于自定義對話框的 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"/>
                  

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

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

                  相關文檔推薦

                  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)
                    <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>
                            主站蜘蛛池模板: 欧美日本韩国一区二区 | 综合久久综合久久 | 91视频国产区 | 免费精品 | av性色全交蜜桃成熟时 | 精品国产免费一区二区三区五区 | 99资源站| 精品亚洲一区二区三区四区五区 | 男人天堂99 | 91丨九色丨国产在线 | 国产精品不卡一区 | 99reav| 午夜精品一区二区三区在线观看 | 国产超碰人人爽人人做人人爱 | 午夜视频免费在线 | 久久成人精品视频 | 日日操av| 香蕉婷婷| 成人一区二区在线 | 日韩精品一区在线 | 日韩视频二区 | 中文字幕a√| 国产综合在线视频 | 久久精品成人 | 成人av免费 | 成在线人视频免费视频 | 午夜在线免费观看 | 亚洲一区二区三区免费在线观看 | 天堂在线1 | 高清一区二区视频 | 日韩一区二区在线视频 | 一级h片 | 国产 欧美 日韩 一区 | 中文av电影 | 国产成人精品a视频 | 欧美日韩高清免费 | 久久九七 | 亚洲一二三区不卡 | 欧美一区二区 | 亚州精品天堂中文字幕 | 毛片在线视频 |