19 Commits

Author SHA1 Message Date
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
connieshi
4fb2375688 Remove AppCompatButton workaround for FloatingToolbar in API 23-25 now that MaterialButton supports android:background.
PiperOrigin-RevId: 306841859
2020-04-17 15:10:15 -04:00
leticiars
d1850a3d78 [ExposedDropdownMenu] Implement workaround to inputType=none not working + move MaterialAutoCompleteTextView to textfield/ directory.
The alternative to android:editable="false" (which is deprecated) is to set inputType="none", however due to a framework bug that has no effect. This change makes it so it works as expected.

PiperOrigin-RevId: 299411110
2020-03-09 09:36:24 -07:00
Jake Wharton
d7a5dc8fb7 Use conditional keep rule for MaterialComponentsViewInflater
Resolves https://github.com/material-components/material-components-android/issues/818
Resolves https://github.com/material-components/material-components-android/pull/821

GIT_ORIGIN_REV_ID=2e0039b5881fdb58b691b37eb0cf3ff4e043ffb7
PiperOrigin-RevId: 285198021
2019-12-12 11:44:55 -05:00
dniz
b99709200e Add support for Snackbar message text styling via snackbarTextViewStyle attr
PiperOrigin-RevId: 272198481
2019-10-01 12:35:27 -04:00
leticiars
1217dcfb55 Making the non editable Exposed Dropdown Menu accessible through TalkBack interaction.
In TalkBack, once the menu is double tapped the focus automatically changes to the first item on the dropdown list, just like how it would with a Spinner.

Clients may keep using the framework's AutoCompleteTextView inside of the TextInputLayout as before.

PiperOrigin-RevId: 272026973
2019-10-01 04:08:33 -04:00
marianomartin
167663ae45 Internal cleanup
PiperOrigin-RevId: 268698913
2019-09-12 14:29:01 -04:00
cketcham
4b1aa74a9e Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 264619042
2019-08-26 10:56:12 -04:00
sharkey
1876bc5d0a @hide shouldInflateAppCompatButton, and restrict use to our library.
PiperOrigin-RevId: 260224154
2019-07-29 16:42:25 -04:00
raajkumars
d7a92485f8 Added support to automatically inflate MaterialTextView component into TextView.
Added support to prevent applying line heights from text appearance styles if the current theme sets the flag 'textAppearanceLineHeightEnabled' to false.

PiperOrigin-RevId: 256216184
2019-07-03 14:12:29 -04:00
marianomartin
4591f29bb0 Internal cleanup
PiperOrigin-RevId: 253994541
2019-06-24 16:52:19 -04:00
marianomartin
c2807d5d47 Internal cleanup
PiperOrigin-RevId: 253863905
2019-06-24 16:48:08 -04:00
gauthams
11ae93ddc1 Refactor custom view inflation logic into shouldInflateAppCompatButton method, and make it protected rather than private.
PiperOrigin-RevId: 226256921
2018-12-21 11:34:51 -05:00
gauthams
b07eb82f31 Fix MaterialButton inflation issue for API 24 and 25
PiperOrigin-RevId: 226235558
2018-12-21 11:33:46 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
gauthams
3ec2906ad8 Fix FloatingToolbar improperly inflating MaterialButton on API 23.
This was due to FloatingToolbar using <Button> for its layouts in API 23-25, which got automatically inflated to <MaterialButton> via the custom view inflater in MDC themes. However, the default MaterialButton styling (especially backgroundTint) was overriding the styling in the <Button>, resulting in a broken FloatingToolbar. This issue was not encountered on API 24/25 since there were likely theme/style changes in those versions that override this Button. From API 26 onwards, FloatingToolbar uses a TextView and ImageView instead of Button.

PiperOrigin-RevId: 213517896
2018-09-28 14:54:14 -04:00
ldjesper
c6266f23ef Modify CheckBox to color without alpha.
PiperOrigin-RevId: 212484594
2018-09-14 10:56:49 -04:00
ldjesper
8a3856922f Style Material RadioButton
PiperOrigin-RevId: 211998722
2018-09-14 10:50:38 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00