java - Android IDE issue arises when I try to move layouts within tabHost -


so i'm working on app, trying work on multiple layouts within tabhost. when try reorder layouts within tabhost creates ide error, , fails render. experienced java, first attempt @ working android studio.

here's error

execute command activetool: com.intellij.designer.designsurface.tools.selectiontool@3e7bfc0b sdk: android 6.0 - api 23 java.lang.arrayindexoutofboundsexception: 0 @ com.intellij.android.designer.model.radviewcomponent.updatetag(radviewcomponent.java:105) @ com.intellij.android.designer.model.radviewcomponent.updatetag(radviewcomponent.java:105) @ com.intellij.android.designer.model.radcomponentoperations$1.run(radcomponentoperations.java:96) @ com.intellij.openapi.application.impl.applicationimpl.runwriteaction(applicationimpl.java:931) @ com.intellij.android.designer.model.radcomponentoperations.movecomponent(radcomponentoperations.java:80) @ com.intellij.android.designer.designsurface.abstracteditoperation.execute(abstracteditoperation.java:49) @ com.intellij.android.designer.designsurface.treedroptooperation.execute(treedroptooperation.java:34) @ com.intellij.designer.componenttree.treeeditoperation.execute(treeeditoperation.java:113) @ com.intellij.android.designer.designsurface.androiddesignereditorpanel.execute(androiddesignereditorpanel.java:1000) @ com.intellij.designer.designsurface.designereditorpanel$designertoolprovider$3.run(designereditorpanel.java:1004) @ com.intellij.openapi.command.impl.corecommandprocessor.executecommand(corecommandprocessor.java:124) @ com.intellij.openapi.command.impl.corecommandprocessor.executecommand(corecommandprocessor.java:99) @ com.intellij.openapi.command.impl.corecommandprocessor.executecommand(corecommandprocessor.java:85) @ com.intellij.designer.designsurface.designereditorpanel$designertoolprovider.execute(designereditorpanel.java:1002) @ com.intellij.designer.componenttree.treedroplistener.executecommand(treedroplistener.java:265) @ com.intellij.designer.componenttree.treedroplistener.drop(treedroplistener.java:91) @ java.awt.dnd.droptarget.drop(droptarget.java:455) @ sun.awt.dnd.sundroptargetcontextpeer.processdropmessage(sundroptargetcontextpeer.java:538) @ sun.awt.dnd.sundroptargetcontextpeer$eventdispatcher.dispatchdropevent(sundroptargetcontextpeer.java:852) @ sun.awt.dnd.sundroptargetcontextpeer$eventdispatcher.dispatchevent(sundroptargetcontextpeer.java:776) @ sun.awt.dnd.sundroptargetevent.dispatch(sundroptargetevent.java:48) @ java.awt.component.dispatcheventimpl(component.java:4736) @ java.awt.container.dispatcheventimpl(container.java:2292) @ java.awt.component.dispatchevent(component.java:4703) @ java.awt.lightweightdispatcher.retargetmouseevent(container.java:4898) @ java.awt.lightweightdispatcher.processdroptargetevent(container.java:4611) @ java.awt.lightweightdispatcher.dispatchevent(container.java:4457) @ java.awt.container.dispatcheventimpl(container.java:2278) @ java.awt.window.dispatcheventimpl(window.java:2750) @ java.awt.component.dispatchevent(component.java:4703) @ java.awt.eventqueue.dispatcheventimpl(eventqueue.java:758) @ java.awt.eventqueue.access$500(eventqueue.java:97) @ java.awt.eventqueue$3.run(eventqueue.java:709) @ java.awt.eventqueue$3.run(eventqueue.java:703) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:75) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:86) @ java.awt.eventqueue$4.run(eventqueue.java:731) @ java.awt.eventqueue$4.run(eventqueue.java:729) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:75) @ java.awt.eventqueue.dispatchevent(eventqueue.java:728) @ com.intellij.ide.ideeventqueue.defaultdispatchevent(ideeventqueue.java:734) @ com.intellij.ide.ideeventqueue._dispatchevent(ideeventqueue.java:565) @ com.intellij.ide.ideeventqueue.dispatchevent(ideeventqueue.java:382) @ java.awt.eventdispatchthread.pumponeeventforfilters(eventdispatchthread.java:201) @ java.awt.eventdispatchthread.pumpeventsforfilter(eventdispatchthread.java:116) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(eventdispatchthread.java:105) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:101) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:93) @ java.awt.eventdispatchthread.run(eventdispatchthread.java:82) 

and rendering software says

exception raised during rendering: mbaselinealignedchildindex of linearlayout points view doesn't know how baseline. 

any appreciated, , don't think xml file important here anyway

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="org.rtsd.morningtalk.mainactivity" android:orientation="vertical">  <tabhost     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:id="@+id/tabhost">      <linearlayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="vertical">          <tabwidget             android:id="@android:id/tabs"             android:layout_width="match_parent"             android:layout_height="wrap_content"></tabwidget>          <framelayout             android:id="@android:id/tabcontent"             android:layout_width="match_parent"             android:layout_height="match_parent">              <linearlayout                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 android:id="@+id/tabcreator"                 android:orientation="vertical">                  <edittext                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:id="@+id/txtname"                     android:layout_gravity="center_horizontal"                     android:hint="name of alarm" />                  <timepicker                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:id="@+id/timepicker"                     android:layout_gravity="center_horizontal" />                  <checkbox                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:text="repeat daily"                     android:id="@+id/rdaily"                     android:checked="false"                     android:layout_marginleft="15dp" />                  <linearlayout                     android:orientation="horizontal"                     android:layout_width="match_parent"                     android:layout_height="match_parent">                      <checkbox                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:text="repeat weekly"                         android:id="@+id/rweekly"                         android:layout_marginleft="15dp"                         android:checked="false" />                      <button                         style="?android:attr/buttonstylesmall"                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:text="create alarm"                         android:id="@+id/buttonadd"                         android:layout_marginleft="90dp"                         tools:ignore="hardcodedtext" />                 </linearlayout>             </linearlayout>              <linearlayout                 android:orientation="vertical"                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 android:id="@+id/tablist"></linearlayout>              <linearlayout                 android:orientation="vertical"                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 android:id="@+id/tabclock"></linearlayout>              <linearlayout                 android:orientation="vertical"                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 android:id="@+id/tabinfo"></linearlayout>          </framelayout>     </linearlayout> </tabhost> </linearlayout> 

thanks


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -