A
A
artshelom2017-07-22 01:08:34
Android
artshelom, 2017-07-22 01:08:34

How to make text on a picture in android?

Hello, I made a picture and there should be text on it. After I put it, the text disappeared.
Tell me why the text is not visible and how to fix it?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="@dimen/nav_header_height"
    android:background="@drawable/image"
    android:gravity="bottom"
    android:orientation="vertical"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:theme="@style/ThemeOverlay.AppCompat.Dark"
    app:layout_collapseParallaxMultiplier="0.8">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/nav_header_vertical_spacing"
        android:text="@string/nik"
        android:textAppearance="@style/TextAppearance.AppCompat.Body1" />

    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/rang" />

</LinearLayout>

55dbb9c90d9b4b96b63678d68d09af70.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varakosov, 2017-07-22
@thelongrunsmoke

White text on a white background? Seriously?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question