Skip to content

Improved jump to page UI to be more intuitive to use#573

Open
xpncvr wants to merge 1 commit intoGrapheneOS:mainfrom
xpncvr:jump-to-page-xpncvr
Open

Improved jump to page UI to be more intuitive to use#573
xpncvr wants to merge 1 commit intoGrapheneOS:mainfrom
xpncvr:jump-to-page-xpncvr

Conversation

@xpncvr
Copy link
Copy Markdown

@xpncvr xpncvr commented Dec 7, 2025

The user immediately knows to type the page number instead of having to use a scroll wheel.

Other people found it unintuitive too: #236

It looks like this
image

FrameLayout.LayoutParams.WRAP_CONTENT,
val viewerActivity = requireActivity() as PdfViewer

val input = EditText(requireContext()).apply {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout can be specified using xml.

layout.addView(
mPicker, FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
val viewerActivity = requireActivity() as PdfViewer
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code uses a cast but I think it is better to pass whatever you need as arguments to the fragment.

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

Successfully merging this pull request may close these issues.

2 participants