So ändern Sie die Deckkraft des Hintergrundbildes?

Gibt es eine Möglichkeit, dass ich könnte, ändern Sie die Deckkraft des Hintergrunds Bild, dass ich auf die XML-Datei? Auch ich wollte zu rechtfertigen, der text, den ich werde in der xml-Datei, aber als ich recherchierte, das gleiche Problem. Android studio keine Unterstützung für Blocksatz noch. Jedoch habe ich versucht, zu ändern, zu webview statt textview aber ich bin mit einer Menge von Fehlern, nannte es meine Haupttätigkeit, die java verwendet, da ich eine case-Anweisung zum Aufruf des layouts und der java-Datei der webview ist nicht fragment, sondern Aktivität. Ihre Antwort wäre sehr geschätzt werden. Danke

Hier ist die XML-Datei

<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"
android:background="@drawable/minnions1"
android:id="@+id/minnions1"
>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Safe and Responsible usage of Computer,Internet and Email"
    android:textColor="@android:color/black"
    android:textSize="20sp"
    android:id="@+id/title1"
    android:layout_marginTop="125dp"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true"
    android:gravity="center"
    />
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:gravity ="center"
    android:fillViewport="true"
    android:layout_alignParentStart="true"
    android:layout_marginTop="100dp"
    android:id="@+id/scrollView"
    >
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:textColor="#000"
        android:textColorLink="@android:color/black"
        android:textSize="18sp"
        android:text="Using facilities and equipments should always be safe and useful in Information and Communication Technology (ICT)
like computer, email, and internet. It is important for us to study the guides and safe usage of computer, internet
and email in schools.\n \n"
        android:drawablePadding="5dp"
        android:layout_marginLeft="40dp"
        android:layout_marginRight="20dp"
        android:layout_below="@+id/content1"
        android:layout_centerHorizontal="true"
        />
</ScrollView>
</LinearLayout>

Auch Hier ist die java Datei

package com.android.pet.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.doepiccoding.navigationdrawer.R;

public class Lesson1 extends Fragment{

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.onepointone, null);
        return rootView;
    }
}
  • Ich kann nicht ganz verstehen, Ihren zweiten Teil der Questen..wo ist dein webview,es ist jetzt sichtbar in den code hochgeladen..
InformationsquelleAutor Dreamer | 2016-03-30
Schreibe einen Kommentar