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

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

    1. <small id='7njMZ'></small><noframes id='7njMZ'>

      <legend id='7njMZ'><style id='7njMZ'><dir id='7njMZ'><q id='7njMZ'></q></dir></style></legend>

      1. 如何讓主屏幕快捷方式啟動對話框?

        How can I have a home screen shortcut launch a dialog?(如何讓主屏幕快捷方式啟動對話框?)
        1. <i id='ZgazO'><tr id='ZgazO'><dt id='ZgazO'><q id='ZgazO'><span id='ZgazO'><b id='ZgazO'><form id='ZgazO'><ins id='ZgazO'></ins><ul id='ZgazO'></ul><sub id='ZgazO'></sub></form><legend id='ZgazO'></legend><bdo id='ZgazO'><pre id='ZgazO'><center id='ZgazO'></center></pre></bdo></b><th id='ZgazO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZgazO'><tfoot id='ZgazO'></tfoot><dl id='ZgazO'><fieldset id='ZgazO'></fieldset></dl></div>
              <bdo id='ZgazO'></bdo><ul id='ZgazO'></ul>

            • <legend id='ZgazO'><style id='ZgazO'><dir id='ZgazO'><q id='ZgazO'></q></dir></style></legend>

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

                  <tbody id='ZgazO'></tbody>

                  <tfoot id='ZgazO'></tfoot>

                1. 本文介紹了如何讓主屏幕快捷方式啟動對話框?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  好的,我問了另一個問題這里 試圖讓我的活動看起來像對話框.我在想,也許與其問具體的方法,不如問我想做什么,也許有不同的方法可以去做……

                  Okay, I asked another question here trying to make my activities look like dialogs. I'm thinking maybe instead of asking about a specific method, I should ask about what I'd like to do, and perhaps there is a different way to go about it...

                  這就是我所擁有的.我的應用程序允許將快捷方式放置在主屏幕上.創建快捷方式的代碼和邏輯都完美無缺,然后快捷方式啟動適當的活動,顯示它應該做什么......再次,一切都完美無缺.

                  Here's what I have. My app allows shortcuts to be placed on the home screen. The code and logic for creating the shortcuts all works flawlessly, and the shortcuts then launch the proper activity which shows what it's supposed to... again, all works flawlessly.

                  我想知道的是,有沒有辦法讓主屏幕快捷方式啟動我的活動作為對話框(而不是簡單地試圖讓我的活動看起來像一個對話框)?

                  What I'm wondering though, is is there a way to have the home screen shortcut launch my activity as a dialog (as opposed to simply trying to make my activity LOOK like a dialog)?

                  推薦答案

                  將此添加到您的清單中,在您希望看起來像對話框的活動中,聲明:

                  Add this in your manifest, in the activity you want to look like dialog, declaration:

                  <activity android:theme="@android:style/Theme.Dialog">
                  

                  更多信息和主題:http://developer.android.com/guide/topics/ui/themes.html

                  此外,您可以通過編程方式使用以下代碼:

                  furthermore, to this proggramatically you can use the following code:

                  public class ShowDialogActivity extends Activity {
                  
                  @Override
                  protected void onCreate(Bundle savedInstanceState) {
                      // TODO Auto-generated method stub
                      super.onCreate(savedInstanceState);
                  
                      //
                      //Log.d("DEBUG", "showing dialog!");
                  
                      Dialog dialog = new Dialog(this);
                      dialog.setContentView(R.layout.select_dialog_singlechoice);
                      dialog.setTitle("Your Widget Name");
                      dialog.setCancelable(true);
                      dialog.setCanceledOnTouchOutside(true);
                      TextView text = (TextView) dialog.findViewById(R.id.text1);
                      text.setText("Message");
                  
                      dialog.show();
                      //
                     dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
                  
                      public void onCancel(DialogInterface arg0) {
                          finish();
                      }
                  
                     });
                  }
                  
                  }
                  

                  您可以為對話框選擇任何您想要的布局并根據需要進行設計.

                  You can choose whatever layout you wish for the dialog and design it as you want.

                  此外,您還需要在清單中為以下內容設置此活動聲明:

                  In addition you would need to set this activity declaration in the manifest for the following:

                  <activity android:name=".ShowDialogActivity"
                            android:theme="@android:style/Theme.Translucent.NoTitleBar">
                  </activity>
                  

                  希望這就是你想要的,Gal.

                  Hope this is what you was looking for, Gal.

                  這篇關于如何讓主屏幕快捷方式啟動對話框?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

                          <bdo id='4GRNW'></bdo><ul id='4GRNW'></ul>

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

                            <tbody id='4GRNW'></tbody>

                        • <tfoot id='4GRNW'></tfoot><legend id='4GRNW'><style id='4GRNW'><dir id='4GRNW'><q id='4GRNW'></q></dir></style></legend>

                          <small id='4GRNW'></small><noframes id='4GRNW'>

                            主站蜘蛛池模板: 91福利影院 | 久久久国产一区二区三区四区小说 | 国产精品一区二区久久 | www.久久| 欧美a级成人淫片免费看 | 精品视频成人 | 精品久久久久久18免费网站 | 久久www免费视频 | jizz在线看片 | 午夜视频在线免费观看 | 国产美女福利在线观看 | 日韩一区二区三区在线 | 欧美一区二区三区四区视频 | 精品国产一区二区久久 | 二区中文字幕 | 精品欧美乱码久久久久久1区2区 | 免费观看一级特黄欧美大片 | 欧美成人一区二区 | 欧美伦理一区 | 亚洲视频免费在线观看 | 91久久北条麻妃一区二区三区 | 欧美中文字幕一区二区 | 免费成人在线网站 | 国产电影一区二区三区爱妃记 | 久在线| 91porn在线 | 国产精品国产亚洲精品看不卡15 | 青青草视频网站 | 日韩欧美第一页 | 99久久国产综合精品麻豆 | 欧美一区不卡 | 亚洲日韩中文字幕一区 | 一级a性色生活片久久毛片 一级特黄a大片 | 国产精品极品美女在线观看免费 | 国产精品小视频在线观看 | 人人干人人干人人干 | 最新av在线播放 | 国产乱码精品一区二区三区中文 | 日韩在线三级 | 日本韩国电影免费观看 | 91精品导航 |