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

Left align description text #125

Open
apps4research opened this issue Nov 22, 2018 · 2 comments
Open

Left align description text #125

apps4research opened this issue Nov 22, 2018 · 2 comments

Comments

@apps4research
Copy link

Is it possible to left-align the description text somehow. I've tried overwriting the gravity for the about library in my styles xml but it has no affect.

@apps4research
Copy link
Author

Alternatively, if I could disable the standard description and use .addItem which I can customise that would solve my problem. However, I can't seem to not show the standard description.

@viniciusthiengo
Copy link

viniciusthiengo commented Nov 27, 2018

@apps4research, how are you?

You can access description TextView by ID and then update gravity property, like follow:

// Do that after calling setContentView( aboutPage ).
val description = findViewById<TextView>( R.id.description )
description.gravity = Gravity.START

To know more about about_page.xml IDs you can access: https://github.com/medyo/android-about-page/blob/master/library/src/main/res/layout/about_page.xml

I know what you probably are thinking about: why did you not use "kotlin-android-extensions" syntax?

Yes, I tried, but it did not work. So, findViewById() was an another option.

Have a good one.

Att,
Vinícius Thiengo.

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