1
I’m developing an application in the land version of android land/Activity.main and put an image, and two texts one with the name Donald Knuth and another a text but when running the mobile application it only appears the image and the name Donald Knuth and does not appear explanatory text, a word appears "Personality"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:background="@android:color/holo_green_light"
tools:context="com.example.tulio.myapplication.MainActivity">
<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
app:srcCompat="@drawable/knuth_b"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="59dp" />
<TextView
android:id="@+id/txtNome2"
android:layout_width="wrap_content"
android:layout_height="39dp"
android:autoText="false"
android:padding="5dp"
android:text="Donald Knuth"
android:textColor="@android:color/holo_red_dark"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="31dp" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView"
tools:layout_editor_absoluteY="280dp">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/donald"
android:textSize="12sp"
tools:layout_editor_absoluteX="230dp"
tools:layout_editor_absoluteY="59dp" />
</ScrollView>
<![CDATA[
(Color.parseColor("#BABABA")); />
]]>
</LinearLayout>
My application as it was to be
like this
so in case I have to create a string name with a name for each, example <string name="portugues">Text I want to show</string> <string name="ingles">Text that I want to show. </string> and call string called English ?
– User1999
@Felipepatrocinio no cara! It seems that already has the directory created with both languages. Check for values and some other.
– viana
was that same man thanks for the help, had a values written Personality, thanks for the help
– User1999