2c4cbf16a9705a4fcb22a8de5cd8795745b01aa4 |
23-May-2017 |
Seigo Nonaka <nona@google.com> |
Implement API 24 Typeface implementation. This CL includes API 24 implementation with reducing the platform dependent interfaces. This CL includes: - Drop createFromResourcesFontFile from Impl interface since we need to use the same implementation on the all API levels. - Extract I/O related functions to TypecfaceCompatUtil. - Introduce test cases for TypefaceCompat. Test: ./gradlew support-appcompat-v7:connectedDebugAndroidTest on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26 Test: ./gradlew support-compat:connectedDebugAndroidTest on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26 Change-Id: If06989ea92e17a6ab750807986109a556139dbeb
ont/dummyproviderfont.xml
ont/large_a.ttf
ont/large_b.ttf
ont/large_c.ttf
ont/large_d.ttf
ont/styletest_async_providerfont.xml
ont/styletest_sync_providerfont.xml
ont/styletestfont.xml
|
60fbdd688327ffb0b0dc48fb0b296c1c87455a8d |
26-May-2017 |
Clara Bayarri <clarabayarri@google.com> |
Replace fonts of unknown origin There are fonts that we are not sure where they came from, replace with fonts we created ourselves. The res/font/ folder does not build with gradle when there is a ttx file in it, so fonts there have been copied from elsewhere in the tree and contain copyright and licensing inside the font. There is also a new readme in the root folder for the test projects using these to point this out. Also fix a small issue where support tests can't be run on an O device that ran coretests as the provider authorities colide. Renamed the support authority to fix this. Bug: 37726227 Test: ran all support-compat and support-appcompat-v7 tests Change-Id: I7948fcbd3dbe8b267fc1b51a24a128aae083d213
ont/samplefont.ttf
ont/samplefont2.ttf
ont/samplefont3.ttf
ont/samplefont4.ttf
|
9df73e86fb0949ee8c5afee0bf519982f59c016d |
17-May-2017 |
Kirill Grouchnikov <kirillg@google.com> |
Backport of ListView.canScrollList in compat Bug: 33100659 Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.widget.ListViewCompatTest Test: ./gradlew support-core-ui:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.widget.SwipeRefreshLayoutTest Change-Id: If99bb26683671f5e722857d9c3600ea4d3d5fe53
ayout/list_view_activity.xml
ayout/list_view_row.xml
|
f69ef36b9ff270c87e41177551ef4692f9aff965 |
28-Apr-2017 |
Seigo Nonaka <nona@google.com> |
Make Font Resources XML working on Android N or before device. This addresses several issues: - API 16 to API 25 There are two main issues. -- AssetManager failed to open file by path name. Fixed by using Resources.openRawResource instead of AssetManager.openNonAssetFd. -- TextView's style is ignored. Before API 26, there is no way to create Typeface from multiple font files. If Typeface is created from multiple font files, TextView will select correct font based on style information of them. However, this is impossible on API 25 or before. So select best match font from given list and create Typeface with it. At the same time, there is a concept "fakeBold" and "fakeItalic" on Android. If even the best matched Typeface is not usable for requested style, TextView makes bold/italic glyph with transforming available glyph. Since we does font selection by ourselves, needs to set fake bold/italic by manual too. - API 16 - API 19 Styled typeface can be created from another Typeface like as follows. Typeface boldTypeface = Typeface.create(baseTypeface, Typeface.BOLD); The passed style information can be retrieved by Typeface.getStyle() but this doesn't return real value on API 19 or before. Thus, introduce TypefaceHolder to hold actually using weight/italic information. Known Issues: - API 15 or before Still not working even after this patch. TypedArray returns false for hasValue with R.styleable.TextAppearance_android_fontFamily. - API 21 - API 25 The skew angle is sharper. Bug: 37754362 Test: ./gradlew support-compat:connectedDebugAndroidTest passes on API 15,16,17,18,19,21,23,25,26 Test: Test App attached issue 37754362 show the same result on API 16,17,18,19,21,23,25 except for fake italic angle. Screenshots is available on issue tracker. Change-Id: I6bd615774be55981289f5f3b88f3d71fa1b39014
ont/samplexmlfont.xml
|
13c4e42077841f98fef6ff1087fe3d1fb7a4b53a |
07-Apr-2017 |
Clara Bayarri <clarabayarri@google.com> |
Supportlib downloadable fonts in xml Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest Bug: 35381428 Change-Id: I0771e7179540e00e83c40b725140cad76f816cdd
alues/arrays.xml
|
543fd2946ded1593b28553879e74ca4393eddd2e |
24-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Supportlib Fonts in XML This change adds support for the new font resources type in support library, making its use possible pre-O. Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest ./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatTextViewTest Bug: 35382184 Change-Id: Ide32ae4e914b3dc73756016d24059ead25ca7e68
ont/invalid_font.ttf
ont/invalid_xmlempty.xml
ont/invalid_xmlfamily.xml
ont/invalid_xmlfont.xml
ont/invalid_xmlfont_contains_invalid_font_file.xml
ont/samplefont.ttf
ont/samplefont2.ttf
ont/samplefont3.ttf
ont/samplefont4.ttf
ont/samplexmldownloadedfont.xml
ont/samplexmlfont.xml
|
d679cb8cd83198de9d1fd67b5058d834d2daaae4 |
19-Apr-2017 |
Clara Bayarri <clarabayarri@google.com> |
Revert "Supportlib Fonts in XML" This reverts commit 617be7af1f752cfaaf566e627ff6ea797623f2c3. Reason for revert: <INSERT REASONING HERE> Change-Id: Iacaef0423aa43cc5473042b6d61f2664afaf9cf6
ont/invalid_font.ttf
ont/invalid_xmlempty.xml
ont/invalid_xmlfamily.xml
ont/invalid_xmlfont.xml
ont/invalid_xmlfont_contains_invalid_font_file.xml
ont/samplefont.ttf
ont/samplefont2.ttf
ont/samplefont3.ttf
ont/samplefont4.ttf
ont/samplexmldownloadedfont.xml
ont/samplexmlfont.xml
|
617be7af1f752cfaaf566e627ff6ea797623f2c3 |
24-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Supportlib Fonts in XML This change adds support for the new font resources type in support library, making its use possible pre-O. Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest ./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatTextViewTest Bug: 35382184 Change-Id: If67cf830c8c2d8875da73318d02db391421dfdfa
ont/invalid_font.ttf
ont/invalid_xmlempty.xml
ont/invalid_xmlfamily.xml
ont/invalid_xmlfont.xml
ont/invalid_xmlfont_contains_invalid_font_file.xml
ont/samplefont.ttf
ont/samplefont2.ttf
ont/samplefont3.ttf
ont/samplefont4.ttf
ont/samplexmldownloadedfont.xml
ont/samplexmlfont.xml
|
22fe4308c905a44b895230978e4ee5f927afa1ea |
15-Mar-2017 |
Aurimas Liutikas <aurimas@google.com> |
Clean up test/demo XML code to remove unused attributes. Test: None Change-Id: I8f0527dff6da2e9792cc85ccbad1a83735bab129
alues-hdpi/dimens.xml
alues-mdpi/dimens.xml
alues-xhdpi/dimens.xml
alues-xxhdpi/dimens.xml
alues/attrs.xml
alues/colors.xml
alues/dimens.xml
alues/strings.xml
alues/styles.xml
|
ee6c89547f0f0321b66c7c21e1990e7870a45b3c |
09-Dec-2016 |
Vladislav Kaznacheev <kaznacheev@google.com> |
Pointer icon tests for support library Adding PointerIconCompatTest. Expanding BottomNavigationViewTest and TabLayoutTest to cover pointer icon setting. Bug: 32178074 Change-Id: I6deab8ed0d702ccb32ab906d91c72c7abb78656d Test: the affected tests should pass
rawable/pointer_icon.xml
|
5eb56cd02703fd4edafa3e3ee703b1b493165387 |
17-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Move tests from tests/ root dir to appropriate directory. am: 0357e3dab0 Change-Id: I0340e0361e87118d6935385882c6416df35505ae
|
0357e3dab075ba93be2af9338f42d9cdb1217016 |
16-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Move tests from tests/ root dir to appropriate directory. Bug: 30897608 Change-Id: I32360ca2b59757321e5515a210dceb3038d72c29
rawable/action_icon.xml
rawable/action_icon2.xml
rawable/content_icon.xml
rawable/content_icon2.xml
|
b897ffb1d1cfe37e2e005e7dcdcd97bc5f74205d |
12-Aug-2016 |
Yuichi Araki <yaraki@google.com> |
Add ViewCompat.getDisplay Bug: 30776880 Change-Id: I8fa46a8f6b29ae9ae41f44e16cd32b039102860a
ayout/view_compat_activity.xml
|
8b98e883bc3fb72c13e0f41be3e6362ffb28a37c |
04-May-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Second clean-up pass after support-v4 split. Remove test resources / classes that are not relevant for the compat / core modules. Change-Id: I6c05774892727c3103003672e8a8e1481d7111c9
nim/fade_in.xml
nim/fade_out.xml
nim/long_fade_in.xml
nim/long_fade_out.xml
ayout/activity_content.xml
ayout/explore_by_touch_helper_activity.xml
ayout/fragment_a.xml
ayout/fragment_b.xml
ayout/fragment_c.xml
ayout/fragment_end.xml
ayout/fragment_middle.xml
ayout/fragment_start.xml
ayout/strict_view_fragment.xml
ayout/swipe_refresh_layout_activity.xml
ayout/view_pager_with_tab_strip.xml
ayout/view_pager_with_title_strip.xml
ransition/change_bounds.xml
ransition/fade.xml
alues/ids.xml
alues/strings.xml
|
3ac77bf186f87ecad4bf0063b2f6c4384efbd56a |
27-Apr-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Support module refactoring * Splitting support-v4 into two modules, support-compat and support-core * Adding a new library module named support-v4 that combines the two together for backward compatibility support of existing projects * support-compat has all Compat classes, their few direct dependencies and all data structures in the .util package Change-Id: Icd1b0ab3a5b61a8a2bf85bc274098f0a828963e0
nim/fade_in.xml
nim/fade_out.xml
nim/long_fade_in.xml
nim/long_fade_out.xml
olor/complex_themed_selector.xml
olor/complex_unthemed_selector.xml
olor/simple_themed_selector.xml
rawable-hdpi/density_aware_drawable.png
rawable-ldpi/aliased_drawable_alternate.png
rawable-mdpi/density_aware_drawable.png
rawable-mdpi/test_drawable.png
rawable-xhdpi/density_aware_drawable.png
rawable-xxhdpi/density_aware_drawable.png
rawable/test_drawable_blue.xml
rawable/test_drawable_green.xml
rawable/test_drawable_red.xml
rawable/themed_bitmap.xml
rawable/themed_drawable.xml
ayout/activity_content.xml
ayout/explore_by_touch_helper_activity.xml
ayout/fragment_a.xml
ayout/fragment_b.xml
ayout/fragment_c.xml
ayout/fragment_end.xml
ayout/fragment_middle.xml
ayout/fragment_start.xml
ayout/strict_view_fragment.xml
ayout/swipe_refresh_layout_activity.xml
ayout/text_view_activity.xml
ayout/view_pager_with_tab_strip.xml
ayout/view_pager_with_title_strip.xml
ayout/vpa_activity.xml
ransition/change_bounds.xml
ransition/fade.xml
alues-hdpi/dimens.xml
alues-mdpi/dimens.xml
alues-xhdpi/dimens.xml
alues-xxhdpi/dimens.xml
alues/attrs.xml
alues/colors.xml
alues/dimens.xml
alues/drawables.xml
alues/ids.xml
alues/strings.xml
alues/styles.xml
|