Part ImageView is not displayed on screen when moving



  • I can't figure it out. There is RelativeLayout (match_parent,match_parent) in it ImageView with a specific size of 100 per 100 e.g., and located in the middle of the layer. Processing his thumb on the screen. It's moving normally, but not upwards, up the line that it doesn't paint. This line is on the upper ImageView frontier in the initial position.

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent" 
        android:layout_height="match_parent"
        android:id="@+id/cameraLayout">
    
    &lt;SurfaceView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/surfaceView" /&gt;
    
    &lt;ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/imageViewWounds"
        android:adjustViewBounds="true"
        android:layout_centerInParent="true" /&gt;
    
    &lt;LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"&gt;
    
        &lt;ImageView
            android:layout_width="@dimen/size_button_take"
            android:layout_height="@dimen/size_button_take"
            android:id="@+id/imageViewZoomOut"
            android:src="@drawable/zoom_out"
            android:layout_weight="1" /&gt;
    
        &lt;ImageView
            android:layout_width="@dimen/size_button_take"
            android:layout_height="@dimen/size_button_take"
            android:id="@+id/imageViewZoomIn"
            android:src="@drawable/zoom_in"
            android:layout_weight="1" /&gt;
    
        &lt;ImageView
            android:layout_width="@dimen/size_button_take"
            android:layout_height="@dimen/size_button_take"
            android:id="@+id/imageViewTake"
            android:src="@drawable/take"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:layout_weight="1" /&gt;
    
        &lt;ImageView
            android:layout_width="@dimen/size_button_take"
            android:layout_height="@dimen/size_button_take"
            android:id="@+id/imageViewRotateLeft"
            android:src="@drawable/rotate_left"
            android:layout_alignParentBottom="true"
            android:layout_toRightOf="@+id/imageViewTake"
            android:layout_toEndOf="@+id/imageViewTake"
            android:layout_weight="1" /&gt;
    
        &lt;ImageView
            android:layout_width="@dimen/size_button_take"
            android:layout_height="@dimen/size_button_take"
            android:id="@+id/imageViewRotateRight"
            android:layout_alignParentBottom="true"
            android:layout_toRightOf="@+id/imageViewRotateLeft"
            android:layout_toEndOf="@+id/imageViewRotateLeft"
            android:src="@drawable/rotate_right"
            android:layout_weight="1" /&gt;
    &lt;/LinearLayout&gt;
    

    </RelativeLayout>

    The image ViewWounds. Now the sizes are on the content, but it's fixed, no change.



  • One way to solve the problem is to install into the upper left corner (possibly right) - any View (ImageView, for example) into one picsel to force the system to draw everything off.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2