xmlns:tools="http://schemas.android.com/tools"
this one is my problem it is said that "Namespace declaration is never used"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="josh appear here"
android:id="@+id/josh_text_view"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="open Second Activity"
android:layout_below="@+id/josh_text_view"
android:onClick="showJosh"
android:id="@+id/button" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="open Third Activity"
android:onClick="showJosh"
android:id="@+id/button2"
and in every buttons there is this warning that always popping up
[I18N] Hardcoded string "open Second Activity", should use @string resource less... (Ctrl+F1) Hardcoding text attributes directly in layout files is bad for several reasons:
When creating configuration variations (for example for landscape or portrait)you have to repeat the actual text (and keep it up to date when making changes)
The application cannot be translated to other languages by just adding new translations for existing string resources. In Android Studio and Eclipse there are quickfixes to automatically extract this hardcoded string into a resource lookup.
android:layout_below="@+id/button" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_marginTop="10dp" /> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="open Fourth Activity" android:onClick="showJosh" android:id="@+id/button3" android:layout_below="@+id/button" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_marginTop="75dp" /> </RelativeLayout>