![]() I ask because maybe this is all some weird "magic" from android-x to support those attributes.ĮDIT: after checking, I can see it's not relate to android-x. What about special cases that we use layout files, like on app-widgets? Those are the same, right? ![]() android:layoutgravitycenter android:layoutmarginHorizontal20dp. Is it safe to use those attributes in layout files, but not in styles files? Amazon IVS Chat Client Messaging SDK: Android Tutorial Part 2: Messages and. What's more, I made a POC that includes both versions (in layout and in styles), and indeed only using in the layout worked on the emulator with API 21 (the others were just ignored). So I was thinking maybe I was wrong in trying to use them yet, and I looked at the docs, but they don't say anything about which SDK those attributes are supported: The IDE doesn't mind having those attributes on layout XML files, but when they are used in styles, it tells me those are used only from API 26, while the project is set to support from API 21. ![]() I've found a weird thing on the IDE and the docs: I recently wanted to replace all margins and paddings on the app to use such attributes when possible. This solves my immediate problem, but I'm left confused about why a level 26 feature works on level 24, and why targeting level 26 causes warnings. Material Design Icons Weekly Threads Calendar Update: Setting targetSdkVersion'24' seems to fix the warnings, and the desired margins continue to work.For news and questions about these topics try using other subs likeĪndroid Job Interview Questions and Answers This sub-reddit isn't about phones' and apps' general functionality, support, or system software development (ROMs). ![]() News for Android app developers with the who, what, where, when, and how of the Android community. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |