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

Text size problem on High res devices and tablets #5

Open
khalid-mahmood opened this issue Sep 30, 2018 · 5 comments
Open

Text size problem on High res devices and tablets #5

khalid-mahmood opened this issue Sep 30, 2018 · 5 comments

Comments

@khalid-mahmood
Copy link

Font size is too small for high res devices like xxxhdpi and tables

@wesoft1001
Copy link

any solution of font size?

@sahuajay86
Copy link

Font size is too small for high res devices like xxxhdpi and tables
in function:
private static String drawRandomText
set the textSizeRange arry variable as follows
int[] textSizeRange = {100, 120, 140, 150};

@santacoderofficial
Copy link

Hello, How can I increase text size?

@AsmaTidafi
Copy link

I used scaleX and scaleY to zoom the text, it worked fine.

<test.jinesh.captchaimageviewlib.CaptchaImageView
    android:id="@+id/image"
    android:layout_width="wrap_content"
    android:layout_height="@dimen/_30sdp"
    android:scaleX="2"
    android:scaleY="2"
/>

@devkumar2486
Copy link

Setting hard code value for scaleX and scaleY will not work for all resolutions if we set it to 2, then the image will be over sized for low res devices, a better solution is to add dimen files for each resolution and define dimen values like 1, 1.5, 2 etc for each density, and use that dimen value for scaleX and scaleY.

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

6 participants