Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
es...@google.com <es...@google.com>
tn...@google.com <tn...@google.com> #2
(Finally) fixed by Change-Id: Ib33a82684143c8e2a4824a1d350d9d7567c10a64 for Studio 4.2. Thanks for the report!
Description
AI-183.6156.11.34.5522156, JRE 1.8.0_152-release-1343-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.5, screens 1680x1050
Android Gradle Plugin: 3.4.1
Gradle: 5.4.1
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: LLDB 3.1 (revision: 3.1.4508709)
CMake: from local.properties: (not specified); latest from SDK: 3.10.2; from PATH: (not found);
In a layout XML file, adding two buttons with android:layout_weight="0dp" to a horizontal LinearLayout produces the following warning on Button tags:
Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)
Inspection info:Button bars typically use a borderless style for the buttons. Set the style="?android:attr/buttonBarButtonStyle" attribute on each of the buttons, and set style="?android:attr/buttonBarStyle" on the parent layout
The pop-up menu displayed as the result of tapping Alt+Enter doesn't include the option to add the missing attribute automatically, which is unfortunate. It should be an easy and helpful fix.