Note that there are some explanatory texts on larger screens.

plurals
  1. POThe transparent background imageview makes the normally opaque text that comes on it also transparent. How do I fix this?
    primarykey
    data
    text
    <p>What I want is a fully opaque text on a transparent background imageview. Without the image the webview text is opaque and text that isnt on the the background imageview is still opaque. Only the parts of the text that comes on the transparent image becomes transparent as seen on the screenshot i provided. Its quite interesting and altough I have searched, I couldnt find a solution for this. </p> <p>Here is the current screenshot: </p> <p><img src="https://i.stack.imgur.com/5RpwM.png" alt="enter image description here"></p> <p>here is my xml layout</p> <pre><code>&lt;ScrollView android:id="@+id/SCROLLER_ID" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="vertical" android:fillViewport="true"&gt; &lt;WebView android:id="@+id/tvAnimalJoke" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; </code></pre> <p></p> <pre><code>&lt;ImageView android:id="@+id/ivAwesome" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:src="@drawable/awesome50jp" /&gt; </code></pre> <p></p> <p>and here is my webview in java </p> <pre><code>Random r = new Random(); number = r.nextInt(9851); String randomjoke = getStreamTextByLine("9851.txt", number); String numstr = Integer.toString(number); String head = "&lt;head&gt;&lt;style&gt;@font-face {font-family: 'verdana';src: url('file:///android_asset/annoyingkettle.ttf');}body {font-family: 'verdana';}&lt;/style&gt;&lt;/head&gt;"; String htmlData = "&lt;html&gt;" + head + numstr + "&lt;body&gt;" + "&lt;p align=\"justify\"&gt;" + randomjoke + "&lt;/p&gt;" + "&lt;/body&gt;&lt;/html&gt;"; Mywebview.loadDataWithBaseURL(null, htmlData, "text/html", "utf-8", "about:blank"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload