Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found a solution to that problem - although not an explanation. The problem only exists if initial colors of both textviews in xml are identical. The solution is therefore to give the textviews different colors.</p> <p>So, if you have the same problem, this is what works for me:</p> <p><strong>acitivity_main.xml: WITH Problem</strong></p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="100dp" android:background="#cccccc" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="100dp" android:layout_marginTop="20dp" android:background="#cccccc" /&gt; &lt;/LinearLayout&gt; </code></pre> <p><strong>acitivity_main.xml: WITHOUT Problem</strong></p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="100dp" android:background="#ffcccccc" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="100dp" android:layout_marginTop="20dp" android:background="#fecccccc" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>In other words I have used just a slightly different color (actually here it is different transparency) - and the problem is gone. I would not believe it if someone told me. </p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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