Here is my layout :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="1280dp"
android:layout_height="800dp">
<al.android.emcr.MainDisplay
android:layout_width="1280dp"
android:layout_height="800dp"/>
<al.android.emcr.menu.MenuDisplay
android:layout_width="1280dp"
android:layout_height="114dp"/>
<al.android.emcr.popups.ConfigurePopup.ConfigurePopup
android:layout_width="1280dp"
android:layout_height="800dp" />
</RelativeLayout>`
When I refresh my "MainDisplay" view with invalidate
(), there's no problem.
But when I try to do it with my MenuDisplay with the same method, the view is not refreshed.
What am I doing wrong ?
Note: the both views have the "onDraw(Canvas)" method implemented.
Note2: I call the invalidate() method in the main thread. I'm wondering if the fact one of the views overlay the other has any wrong effect on the views refresh.
Note3: The onTouch
() event work fine on both views.