java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView

  1. 0

    List View with array adapter custom view layout. Requires Resource ID

    Stack Overflow | 4 months ago | Brandon Hoffman
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
  2. 0

    Caused by: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView

    Stack Overflow | 3 years ago | Sun
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: ListView in Fragment Layout

    Stack Overflow | 4 years ago | user2175493
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
  5. 0

    CursorTreeAdapter and Expandable ListView

    Stack Overflow | 3 years ago | Daniel Bo
    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

  1. filpgame 2 times, last 2 weeks ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    ArrayAdapter requires the resource ID to be a TextView

    at android.widget.ArrayAdapter.createViewFromResource()
  2. Android Platform
    View.measure
    1. android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:393)
    2. android.widget.ArrayAdapter.getView(ArrayAdapter.java:369)
    3. android.widget.AbsListView.obtainView(AbsListView.java:2929)
    4. android.widget.ListView.measureHeightOfChildren(ListView.java:1305)
    5. android.widget.ListView.onMeasure(ListView.java:1212)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    9. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    10. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    11. android.view.View.measure(View.java:20151)
    12. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    13. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    14. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    15. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    16. android.view.View.measure(View.java:20151)
    16 frames
  3. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1560)
    1 frame
  4. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    2 frames
  5. android.support.design
    CoordinatorLayout.onMeasure
    1. android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:668)
    2. android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1192)
    4. android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:733)
    4 frames
  6. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    3 frames
  7. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  8. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    14. android.view.View.measure(View.java:20151)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    16 frames
  9. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
    1 frame
  10. Android Platform
    Looper.loop
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7397)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    13 frames