xml - "LinearLayout" must be followed by either attribute specifications, ">" or "/>" in android -


hi have error on activity dont know why error shows in line 6

   <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"  <textview     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:padding="24dp"     android:text="@string/question_text"      /> <linearlayout  android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal"      <button          android:id="@+id/true_button"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/true_button"         />     <button          android:id="@+id/false_button"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/false_button"         />      </linearlayout>  </linearlayout> 

here strings.xml

<?xml version="1.0" encoding="utf-8"?> <resources>  <string name="app_name">geoquiz</string> <string name="question_text">constantinople largest city in turkey</string> <string name="true_button">true</string> <string name="false_button">false</string> <string name="action_settings">settings</string> </resources>' 

and here other auto generated xml file

<menu xmlns:android="http://schemas.android.com/apk/res/android" >      <item         android:id="@+id/action_settings"         android:orderincategory="100"         android:showasaction="never"         android:title="@string/action_settings"/>  </menu> 

this file shows error on line 5 says error: error: no resource found matches given name (at 'title' value '@string/action_settings').

so how can fix thanks

see answer here: https://stackoverflow.com/a/16631008/1306419 . try extract useful info there.

try like:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:gravity="center"     android:orientation="vertical"> ... ... </linearlayout> 

note: when started <linearlayout tag, used > @ end. hope helps.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -