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

Make the LicensesDialogFragment's licenses text styleable #75

Merged
merged 4 commits into from
Mar 15, 2017

Conversation

ChaosLeung
Copy link
Contributor

@ChaosLeung ChaosLeung commented Mar 12, 2017

Because the default css style is too bright in night mode, so I make the LicensesDialogFragment's licenses text can be styled.

  • Update dependencies
  • Make LicensesDialogFragment's license text styleable
  • Add samples for coustom css style

Copy link
Member

@hameno hameno left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. I'll merge this as soon as the issues are fixed.

pom.xml Outdated

<!-- Dependency Versions -->
<junit.version>4.12</junit.version>
<robolectric.version>3.0</robolectric.version>
<android.version>6.0_r3</android.version>
<android-support.version>23.3.0</android-support.version>
<android.version>4.1.1.4</android.version>
Copy link
Member

Choose a reason for hiding this comment

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

this should be 7.1.1_r3 when android.sdk.platform is 25

android:text="@string/single"
android:onClick="onSingleClick"
android:layout_weight="1" />
android:layout_height="match_parent">
Copy link
Member

Choose a reason for hiding this comment

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

the child inside a scrollview should use wrap_content for height

}

private String getRGBAString(@ColorInt int color) {
return "background-color: rgba(" + Color.red(color) + "," + Color.green(color) + "," + Color.blue(color) + "," + ((float) Color.alpha(color) / 255) + ");";
Copy link
Member

Choose a reason for hiding this comment

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

please use String.format for this

@ChaosLeung
Copy link
Contributor Author

@hameno Please check again.

@ChaosLeung
Copy link
Contributor Author

Hi @hameno , will this pr be merged and release in next time?

@hameno
Copy link
Member

hameno commented Mar 15, 2017

Hey, yes, hopefully I have some time this weekend to do a release.

@hameno hameno merged commit 1b34839 into PSDev:master Mar 15, 2017
@ChaosLeung
Copy link
Contributor Author

I hope so.

@hameno
Copy link
Member

hameno commented Mar 18, 2017

1.8.2 is now released

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