1

I have this project imported from another source and there were problems showing. From one of my layouts, it says "error: No resource identifier found for attribute 'layout_alignStart' in package 'android'" at:

<ProgressBar
        style="@android:style/Widget.ProgressBar.Small"
        android:layout_gravity="center_vertical"
        android:layout_alignStart="@id/imageFrame"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:indeterminate="true"
        android:id="@+id/progressBar"
        android:layout_alignParentTop="true"
        android:layout_marginTop="15dp"
    />

where imageFrame is an ID of a FrameLayout.

My project build target is API Level 17 and in my manifest:

    <uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="11" />

In my menu xml file:

    <item
    android:id="@+id/menu_settings"
    android:orderInCategory="100"
    android:showAsAction="never"
    android:title="@string/menu_settings"/>

And note this was not literally "imported" but added through "Android Project from Existing Code" I'm also using Eclipse for this project.

Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
  • 1
    Try setting the `android:targetSdkVersion` to `17`, since the `android:layout_alignStart` attribute didn't exist before that. – MH. May 15 '13 at 08:25
  • Is this question not about the same problem described in this question (posted 30 minutes before)? http://stackoverflow.com/questions/16558958/error-no-resource-identifier-found-for-attribute-layout-alignstart – Maestro Feb 11 '16 at 15:49

1 Answers1

0

@+id/imageFrame can you try this one i hope it will work now

Giant
  • 1,619
  • 7
  • 33
  • 67