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

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

                  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();
                      }
                  
                     });
                  }
                  
                  }
                  

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

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

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

                  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模板網(wǎng)!

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

                  相關文檔推薦

                  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 或網(wǎng)絡提供商)
                  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 | 欧美日韩精品一区二区三区四区 | 一区日韩 | 日本三级网址 | 久久精品免费观看 | 国产精品久久久爽爽爽麻豆色哟哟 | 日韩精品一区二区在线观看 | 国产一区二区三区四区五区加勒比 | 亚洲精品在线视频 | 欧美99| 日韩欧美国产一区二区三区 | 香蕉久久a毛片 | 亚洲欧美一区二区三区情侣bbw | 日本精品一区 | 亚洲性网 | 在线成人免费视频 | 欧美另类日韩 | 欧美精品综合 | 精品视频一区二区三区在线观看 | 在线视频一区二区 | 91久久久久久久 | 亚洲国产aⅴ精品一区二区 免费观看av | 国产视频一区二区三区四区五区 | 国产一区二区三区四区三区四 | 日韩精品一区二区三区在线观看 | 亚洲性在线 | 一区二视频 | 视频二区国产 | 偷拍自拍第一页 | 亚洲福利一区 | 久久久久久久国产精品视频 | 日本一级淫片免费啪啪3 | 一区二区三区在线电影 | 欧美视频1 | 欧美激情综合 | 欧美久久久久久久久中文字幕 | 91秦先生艺校小琴 |