Advertisement
vyoumans

ManifestFile newline

Dec 27th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. I am getting errors around some TextViews in my Layout files.
  2. This is an example.
  3. @+id/tvZZE_SESSION_NAME01 is giving this error:
  4. Header Expected
  5. Manifest file does not end with a final NewLine
  6. All of the android:id="" have this same issue.
  7. Is this a real error or warning, can I ignore it... or it is something?
  8.  
  9. AndroidManifeast.xml
  10. //------------------
  11. <?xml version="1.0" encoding="utf-8"?>
  12. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  13. package="com.techlatin.loge" >
  14. <uses-permission android:name="android.permission.INTERNET" />
  15. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  16. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  17. <uses-feature android:name="android.hardware.camera" />
  18. <application
  19. android:allowBackup="true"
  20. android:icon="@drawable/ic_launcher"
  21. android:label="@string/app_name"
  22. android:theme="@style/AppTheme" >
  23. <activity
  24. android:name="com.techlatin.loge.MainActivity"
  25. android:label="@string/app_name"
  26. android:screenOrientation="portrait" >
  27. <intent-filter>
  28. <action android:name="android.intent.action.MAIN" />
  29. <category android:name="android.intent.category.LAUNCHER" />
  30. </intent-filter>
  31. </activity>
  32. <activity
  33. android:name="com.techlatin.loge.LOGIN01"
  34. android:label="@string/title_activity_login01"
  35. android:screenOrientation="portrait" >
  36. </activity>
  37. <activity
  38. android:name="com.techlatin.loge.ZZA_MAINMENU01"
  39. android:label="@string/title_activity_zza__mainmenu01"
  40. android:screenOrientation="portrait" >
  41. </activity>
  42. <activity
  43. android:name="com.techlatin.loge.ZZD_NewAssignments01"
  44. android:label="@string/title_activity_zzd__new_assignments01"
  45. android:screenOrientation="portrait">
  46. </activity>
  47. <activity
  48. android:name="com.techlatin.loge.ZZE_NewLocations"
  49. android:label="@string/title_activity_zze__new_locations"
  50. android:screenOrientation="portrait">
  51. </activity>
  52. <activity
  53. android:name="com.techlatin.loge.ZZF_LOGS"
  54. android:label="@string/title_activity_zzf__logs"
  55. android:screenOrientation="portrait">
  56. </activity>
  57. </application>
  58. </manifest>
  59.  
  60.  
  61.  
  62. //-----------------------------
  63. fragment_zze_new_locations.xml
  64.  
  65. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  66. xmlns:tools="http://schemas.android.com/tools"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent"
  69. android:paddingLeft="@dimen/activity_horizontal_margin"
  70. android:paddingRight="@dimen/activity_horizontal_margin"
  71. android:paddingTop="@dimen/activity_vertical_margin"
  72. android:paddingBottom="@dimen/activity_vertical_margin"
  73. tools:context="com.techlatin.loge.ZZE_NewLocations$PlaceholderFragment">
  74.  
  75. <TextView
  76. android:text="ZZE_NewLocations"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:id="@+id/textView" />
  80.  
  81.  
  82. <Button
  83. android:layout_width="fill_parent"
  84. android:layout_height="wrap_content"
  85. android:text="A - IDENTIFY/LOCATE"
  86. android:id="@+id/button"
  87. android:layout_below="@+id/tv_ZZE_WHAT_ABOUT"
  88. android:layout_alignParentLeft="true"
  89. android:layout_alignParentStart="true"
  90. android:layout_marginTop="10dp"
  91. android:onClick="btnClick_zze_01__loc_id" />
  92.  
  93. <TextView
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:textAppearance="?android:attr/textAppearanceLarge"
  97. android:text="Add WHAT ABOUT HERE"
  98. android:id="@+id/tv_ZZE_WHAT_ABOUT"
  99. android:layout_below="@+id/textView"
  100. android:layout_alignParentLeft="true"
  101. android:layout_alignParentStart="true"
  102. android:layout_marginTop="33dp"
  103. android:layout_marginBottom="5dp" />
  104.  
  105. <Button
  106. android:layout_width="fill_parent"
  107. android:layout_height="wrap_content"
  108. android:text="B - DETAILS ABOUT SITE"
  109. android:id="@+id/button2"
  110. android:layout_below="@+id/button"
  111. android:layout_alignParentLeft="true"
  112. android:layout_alignParentStart="true"
  113. android:layout_marginTop="30dp" />
  114.  
  115. <Button
  116. android:layout_width="fill_parent"
  117. android:layout_height="wrap_content"
  118. android:text="C - EMAIL PICTURES"
  119. android:id="@+id/button3"
  120. android:layout_below="@+id/button2"
  121. android:layout_marginTop="30dp"
  122. android:layout_alignRight="@+id/button2"
  123. android:layout_alignEnd="@+id/button2" />
  124.  
  125. <TextView
  126. android:layout_width="fill_parent"
  127. android:layout_height="wrap_content"
  128. android:textAppearance="?android:attr/textAppearanceLarge"
  129. android:text="tvASSET_ID:"
  130. android:id="@+id/tvASSET_ID"
  131. android:layout_below="@+id/button3"
  132. android:layout_alignParentLeft="true"
  133. android:layout_alignParentStart="true"
  134. android:layout_marginTop="48dp" />
  135.  
  136. <TextView
  137. android:layout_width="wrap_content"
  138. android:layout_height="wrap_content"
  139. android:textAppearance="?android:attr/textAppearanceSmall"
  140. android:text="tvZZE_SESSION_NAME01"
  141. android:id="@+id/tvZZE_SESSION_NAME01"
  142. android:layout_below="@+id/tvASSET_ID"
  143. android:layout_alignParentLeft="true"
  144. android:layout_alignParentStart="true"
  145. android:layout_marginTop="47dp" />
  146.  
  147. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement