java.lang.IllegalStateException

ActionBarContextView can only be used with android:layout_width= (or fill_parent) at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java: ) at android.widget.LinearLayout.measureVertical(LinearLayout.java: ) at android.widget.LinearLayout.onMeasure(LinearLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java: ) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java: ) at android.widget.LinearLayout.onMeasure(LinearLayout.java: ) at android.view.View.measure(View.java: ) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java: ) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java: ) at android.view.View.measure(View.java: ) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java: ) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java: ) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java: ) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java: ) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java: ) at android.view.Choreographer$CallbackRecord.run(Choreographer.java: ) at android.view.Choreographer.doCallbacks(Choreographer.java: ) at android.view.Choreographer.doFrame(Choreographer.java: ) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java: ) at android.os.Handler.handleCallback(Handler.java: ) at android.os.Handler.dispatchMessage(Handler.java: ) at android.os.Looper.loop(Looper.java: ) at android.app.ActivityThread.main(ActivityThread.java: )

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web11263

  • ActionBarContextView can only be used with android:layout_width= (or fill_parent) at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java: ) at android.view.View.measure(View.java: ) at
  • via ne.jp by Unknown author, 1 year ago
    ActionBarContextView can only be used with android:layout_width= (or fill_parent) at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java: ) at android.view.View.measure(View.java: ) at
  • ActionBarView can only be used with android:layout_width="match_parent" (or fill_parent) at com.actionbarsherlock.internal.widget.ActionBarView.onMeasure(SourceFile:772) at android.view.View.measure(View.java:8322) at
  • Stack trace

    • java.lang.IllegalStateException: ActionBarContextView can only be used with android:layout_width= (or fill_parent) at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java: ) at android.widget.LinearLayout.measureVertical(LinearLayout.java: ) at android.widget.LinearLayout.onMeasure(LinearLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java: ) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java: ) at android.widget.LinearLayout.onMeasure(LinearLayout.java: ) at android.view.View.measure(View.java: ) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java: ) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java: ) at android.view.View.measure(View.java: ) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java: ) at android.widget.FrameLayout.onMeasure(FrameLayout.java: ) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java: ) at android.view.View.measure(View.java: ) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java: ) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java: ) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java: ) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java: ) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java: ) at android.view.Choreographer$CallbackRecord.run(Choreographer.java: ) at android.view.Choreographer.doCallbacks(Choreographer.java: ) at android.view.Choreographer.doFrame(Choreographer.java: ) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java: ) at android.os.Handler.handleCallback(Handler.java: ) at android.os.Handler.dispatchMessage(Handler.java: ) at android.os.Looper.loop(Looper.java: ) at android.app.ActivityThread.main(ActivityThread.java: ) at java.lang.reflect.Method.invoke(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago