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

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

      <legend id='pHo6b'><style id='pHo6b'><dir id='pHo6b'><q id='pHo6b'></q></dir></style></legend>
      1. <small id='pHo6b'></small><noframes id='pHo6b'>

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

        Android異常“指定的孩子已經(jīng)有一個(gè)父母......&qu

        Android Exception quot;The specified child already has a parent...quot;(Android異常“指定的孩子已經(jīng)有一個(gè)父母......)
          <bdo id='FMnin'></bdo><ul id='FMnin'></ul>

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

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

            1. <tfoot id='FMnin'></tfoot>

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

                  本文介紹了Android異常“指定的孩子已經(jīng)有一個(gè)父母......"的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我得到如下異常.有人可以幫幫我嗎?

                  I m getting exception as follow. Can anybody help me?

                  06-16 11:32:48.237: 錯(cuò)誤/AndroidRuntime(9223):java.lang.IllegalStateException:指定的孩子已經(jīng)有一個(gè)父母.您必須先在孩子的父母上調(diào)用 removeView().

                  06-16 11:32:48.237: ERROR/AndroidRuntime(9223): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.ViewGroup.addViewInner(ViewGroup.java:1970)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.ViewGroup.addView(ViewGroup.java:1865)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.ViewGroup.addView(ViewGroup.java:1822)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.ViewGroup.addView(ViewGroup.java:1802)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at com.mVisum_philips.MainECGActivity.popupEvent(MainECGActivity.java:628)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at com.mVisum_philips.MainECGActivity$1.onClick(MainECGActivity.java:195)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.View.performClick(View.java:2408)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.view.View$PerformClick.run(View.java:8816)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.os.Handler.handleCallback(Handler.java:587)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.os.Handler.dispatchMessage(Handler.java:92)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.os.Looper.loop(Looper.java:123)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at android.app.ActivityThread.main(ActivityThread.java:4627)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at java.lang.reflect.Method.invokeNative(Native Method)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at java.lang.reflect.Method.invoke(Method.java:521)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                          06-16 11:32:48.237: ERROR/AndroidRuntime(9223):     at dalvik.system.NativeStart.main(Native Method)
                  

                  screen_pop_up.xml 的源代碼:

                  <?xml version="1.0" encoding="utf-8"?>
                             <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1" android:layout_height="wrap_content" android:layout_width="match_parent">
                              <LinearLayout android:id="@+id/headerLin" android:layout_width="fill_parent" android:layout_height="wrap_content">
                                  <RelativeLayout android:layout_height="wrap_content" android:id="@+id/relativeLayout1" android:layout_width="fill_parent">
                                      <Button android:layout_width="wrap_content" android:id="@+id/button1" android:layout_height="wrap_content" android:text="Done"></Button>
                                      <LinearLayout android:id="@+id/linearLayout2" android:layout_width="wrap_content" android:orientation="horizontal" android:layout_height="wrap_content" android:layout_alignParentRight="true">
                                          <Button android:layout_height="wrap_content" android:background="@drawable/h_scale" android:id="@+id/button2" android:layout_width="wrap_content" android:padding="15sp"></Button>
                                          <Button android:layout_height="wrap_content" android:background="@drawable/v_scale" android:id="@+id/button3" android:layout_width="wrap_content" android:padding="14sp"></Button>
                                      </LinearLayout>
                                  </RelativeLayout>
                             </LinearLayout>
                  
                  
                          <LinearLayout android:id="@+id/linLin" android:layout_height="300sp" android:layout_width="250sp">
                          </LinearLayout>
                          </LinearLayout>
                  

                  我得到異常的源代碼如下:

                  Source code where i m getting the exception is as follows:

                  final Dialog myDialog = new Dialog(MainECGActivity.this);
                                  myDialog.setContentView(R.layout.screen_pop_up);
                                  myDialog.setTitle("My Dialog");
                  
                                  LinearLayout myLin = (LinearLayout) myDialog.findViewById(R.id.linLin);
                                  **myLin.addView(ECGField.get(0));**
                  
                                  myDialog.setCancelable(true);
                                  Button button = (Button) myDialog.findViewById(R.id.button1);
                                  button.setOnClickListener(new OnClickListener() {
                                  @Override
                                      public void onClick(View v) {
                                      myDialog.dismiss();
                                      }
                                  });
                  
                                  myDialog.show();
                  

                  我在這里經(jīng)歷了很多線程,但我錯(cuò)過了一些東西.提前致謝.

                  I have gone through many threads here but I am missing something. Thanks in advance.

                  推薦答案

                  視圖只能有一個(gè)父視圖.您正在添加的視圖(我猜是重用)已經(jīng)是另一個(gè)視圖層次結(jié)構(gòu)的一部分.如果您真的想重用它(我建議您可能不要),那么您必須將它與現(xiàn)有視圖層次結(jié)構(gòu)中的父級(jí)分離.

                  A view can only have a single parent. The view that you are adding (I am guessing re-using) is already part of another view hierarchy. If you really want to reuse it (I would suggest you probably dont) then you have to detach it from its parent in its existing view hierarchy.

                  ECGField.get(0) 返回的內(nèi)容已經(jīng)在視圖層次結(jié)構(gòu)中.

                  whatever is returned by ECGField.get(0) is already in a view hierarchy.

                  這篇關(guān)于Android異常“指定的孩子已經(jīng)有一個(gè)父母......"的文章就介紹到這了,希望我們推薦的答案對(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)
                  <legend id='bd3nm'><style id='bd3nm'><dir id='bd3nm'><q id='bd3nm'></q></dir></style></legend>
                    <tfoot id='bd3nm'></tfoot>
                    • <bdo id='bd3nm'></bdo><ul id='bd3nm'></ul>

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

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

                            <tbody id='bd3nm'></tbody>
                          1. 主站蜘蛛池模板: 日本成人中文字幕在线观看 | 日本不卡一区 | 亚洲欧美在线免费观看 | 欧美精品一二三 | 久久久久国产精品午夜一区 | 男女网站免费观看 | 91久久精品国产91久久性色tv | 亚洲久久在线 | 久久久久久久久99 | 久久九| 一区二区三区精品视频 | 好姑娘影视在线观看高清 | 日本在线小视频 | 国产91av视频在线观看 | 国产一区二区三区久久久久久久久 | 久久精品亚洲精品 | 精品久久国产老人久久综合 | 欧美福利 | 日韩乱码一二三 | 古典武侠第一页久久777 | 一区二区三区视频在线免费观看 | 国产农村一级国产农村 | 久久99久久99久久 | 精品一级| 在线观看黄视频 | 亚洲精品久久久久久一区二区 | 国产福利91精品 | 国产视频福利在线观看 | 亚洲精品久久久久久国产精华液 | 中文字幕一区二区三区四区 | 97色免费视频 | 99久久精品免费看国产免费软件 | 日本特黄a级高清免费大片 国产精品久久性 | 美女久久久久 | 一级做a爰片久久毛片免费看 | 夜夜艹天天干 | 久草资源| 国产日韩欧美精品一区二区 | 午夜男人天堂 | 99久久久久| 欧美日韩电影一区二区 |