Open sneetsher opened 7 years ago
I have fixed the above error by :
Change Layout XML "activity_note"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:id="@+id/note_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="1" android:paddingLeft="0dp" android:paddingRight="0dp">
to
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:id="@+id/note_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="1" android:paddingLeft="0dp" android:paddingRight="0dp">
However layout will change. You must design again for your layout
I have Toshiba Thrive AT100 tablet, Android 4.0.4. With notepad 1.12.
if I start line from the edge I get it OK, drawing line is exactly at my finger touch
otherwise, drawing line has a negative offset on Y axis, same height of title bar, to the finger touch.
See screenshots with Android touch debug active.