Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

[Bug]: GridLayout #982

Description

@jonstudio8

What happened?

no error

What's the expected behavior?

GridLayout

What version of AndroidIDE you're using?

v2.4.0 (debug builds)

Relevant log output

AndroidIDE crash report
Manufacturer: samsung
Device: SM-A127M
ABI: arm64-v8a
SDK version: 33
App version: v2.4.1-beta (241)

 Stacktrace: 
java.lang.IllegalArgumentException: row indices (start + span) mustn't exceed the row count. 
	at android.widget.GridLayout.handleInvalidParams(GridLayout.java:861)
	at android.widget.GridLayout.checkLayoutParams(GridLayout.java:875)
	at android.widget.GridLayout.checkLayoutParams(GridLayout.java:892)
	at android.view.ViewGroup.addViewInner(ViewGroup.java:5485)
	at android.view.ViewGroup.addView(ViewGroup.java:5296)
	at android.view.ViewGroup.addView(ViewGroup.java:5236)
	at com.itsaky.androidide.inflater.internal.ViewGroupImpl.addChild(ViewGroupImpl.kt:9)
	at com.itsaky.androidide.uidesigner.drag.WidgetDragListener.onDrag(WidgetDragListener.kt:491)
	at android.view.View.callDragEventHandler(View.java:29017)
	at android.view.View.dispatchDragEvent(View.java:29008)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1856)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1838)
	at android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:9477)
	at android.view.ViewRootImpl.-$$Nest$mhandleDragEvent(Unknown Source:0)
	at android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl(ViewRootImpl.java:6845)
	at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:6697)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8757)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions