-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enlarge text size #6
Comments
Yes, that is very small. https://github.com/niccokunzmann/bhagavad-gita-android/blob/master/app/src/main/res/values/dimens.xml If you like, you can test out solutions.
|
Hope it helps. The relevant links from official source: https://developer.android.com/guide/practices/screens_support (parent link, generally useful)
the relevant code examples: For Java ( click to expand )
// The gesture threshold expressed in dp
private static final float GESTURE_THRESHOLD_DP = 16.0f;
// Get the screen's density scale
final float scale = getResources().getDisplayMetrics().density;
// Convert the dps to pixels, based on density scale
mGestureThreshold = (int) (GESTURE_THRESHOLD_DP * scale + 0.5f);
// Use mGestureThreshold as a distance in pixels... For Kotlin ( click to expand )
// The gesture threshold expressed in dp
private const val GESTURE_THRESHOLD_DP = 16.0f
...
private var mGestureThreshold: Int = 0
...
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Get the screen's density scale
val scale: Float = resources.displayMetrics.density
// Convert the dps to pixels, based on density scale
mGestureThreshold = (GESTURE_THRESHOLD_DP * scale + 0.5f).toInt()
// Use mGestureThreshold as a distance in pixels...
} |
@snow8gaia Thanks, this is relevant. I wonder how to approach it: Should we use dp instead of pixels or use different settings as shown in the table for different screen sizes. I think, someone can try a dp value which works for them, post it here and I will also have a look if it works on my screen. |
On top of the given documentation, a way to configure the size would be helpful. Far-sighted people may need bigger text on the same screen as those without. |
To be clear, I am not working on this. ( tautological statement )The [English source](https://bhagavadgita.io/) is an abominable translation, ignoring phonetics ; because its already translated to Hindi. |
The text is very small and hard to read.
https://photos.app.goo.gl/QUa7jZ4dxtCpqTeh9
We're using [Polar.sh](https://polar.sh/niccokunzmann) so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.
The text was updated successfully, but these errors were encountered: