Last active
August 29, 2015 14:12
-
-
Save imminent/858a47904786aa2f4360 to your computer and use it in GitHub Desktop.
Workaround to https://code.google.com/p/android/issues/detail?id=60055 caused by paddingStart and paddingEnd on some Samsung devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This goes in layout/ and is an example layout using the workaround. --> | |
<EditView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingLeft="@dimen/fieldPaddingLeft" | |
android:paddingRight="@dimen/fieldPaddingRight" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This goes in values/ and is the LTR layout values used in layouts --> | |
<resources> | |
<dimen name="fieldPaddingLeft">@dimen/fieldPaddingStart</dimen> | |
<dimen name="fieldPaddingRight">@dimen/fieldPaddingEnd</dimen> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This goes in values-ldrtl/ and is the RTL layout values used in layouts --> | |
<resources> | |
<dimen name="fieldPaddingRight">@dimen/fieldPaddingStart</dimen> | |
<dimen name="fieldPaddingLeft">@dimen/fieldPaddingEnd</dimen> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This goes in values/ and is the RTL-compatible definition of the layout spacing --> | |
<resources> | |
<dimen name="fieldPaddingStart">8dip</dimen> | |
<dimen name="fieldPaddingEnd">16dip</dimen> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment