Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing line has an offset from my touch #27

Open
sneetsher opened this issue Jun 12, 2017 · 1 comment
Open

Drawing line has an offset from my touch #27

sneetsher opened this issue Jun 12, 2017 · 1 comment

Comments

@sneetsher
Copy link

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.

screenshot_2017-06-12-04-07-08
screenshot_2017-06-12-04-03-30
screenshot_2017-06-12-04-07-53

@nht178
Copy link

nht178 commented Aug 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants