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

Customize RequestRidesButton Text Size #35

Closed
wants to merge 2 commits into from
Closed

Customize RequestRidesButton Text Size #35

wants to merge 2 commits into from

Conversation

maherhanafi
Copy link

I add primary and secondary text size attributes in RideRequestButton to be able to customize font size.
This gives developers certain flexibility to support small, normal and large screens

Please see this related issue:
#34

@tyvsmith
Copy link
Member

Thanks for submitting, as mentioned in the issue, we'll be reviewing this soon. It'll likely be next week.

Thanks again!

@maherhanafi
Copy link
Author

No problem, thanks @tyvsmith

} finally {
textAttributes.recycle();
}
}

@SuppressLint("ResourceType")
private void applyTextAttributes(TextView textView, TypedArray textAttributes) {
private void applyTextAttributes(TextView textView, TypedArray textAttributes, int textSize) {
Copy link
Member

Choose a reason for hiding this comment

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

Since we're already pulling in textSize as an attribute, shouldn't we just be able to reference getInt(2) and call setTextSize() without needing new values?

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