137 Commits

Author SHA1 Message Date
ldjesper
e22d745ec0 materialAlertDialogTheme changes to spec (padding, text opacity, scrim color, divider color)
PiperOrigin-RevId: 231757787
2019-02-11 11:06:48 -08:00
Material Design Team
b701ceaffb Extended FAB demo.
PiperOrigin-RevId: 231689691
2019-02-11 11:05:58 -08:00
ldjesper
9c4bed6503 Hide MaterialDatePickerDialog while the API is influx
PiperOrigin-RevId: 231218156
2019-02-01 12:34:14 -05:00
melaniegoetz
25c3194832 Update Bottomsheet Shape Theming demo to correct Theming colors
by removing reference to full Theme in favor of ThemeOverlay

PiperOrigin-RevId: 230962679
2019-02-01 12:32:16 -05:00
marianomartin
49915ce1f1 Selection Mode Card demo
PiperOrigin-RevId: 230948605
2019-01-25 15:39:07 -05:00
melaniegoetz
30c2612dcb Adding bottomsheet to shape theming demo
PiperOrigin-RevId: 230813553
2019-01-25 14:02:52 -05:00
ldjesper
37a8acf454 Spinner Picker Window Shape
PiperOrigin-RevId: 230618573
2019-01-25 13:59:37 -05:00
marianomartin
20691fec78 Remove long click toggle behavior from MaterialCardView
PiperOrigin-RevId: 230617290
2019-01-25 13:58:17 -05:00
marianomartin
b1592b294f Fix theme switcher before api v21
PiperOrigin-RevId: 230396656
2019-01-22 17:05:15 -05:00
ldjesper
3c67c71b02 Fix spacing and touch targets in Bottom Nav Demo
PiperOrigin-RevId: 230336713
2019-01-22 17:04:30 -05:00
dniz
4f75ec6daa Update FAB to respond to themed cornerFamily
- Remove hardcoded "rounded" corner family from FAB shapeAppearanceOverlay
- Remove BottomAppBar shape toggle override from demo (now that we have a
global switcher)
- Update BottomAppBar demo to base top edge on FAB shape appearance

PiperOrigin-RevId: 229971238
2019-01-22 17:03:27 -05:00
dniz
a352fa0532 Fix color and positioning of Catalog Theme Switcher shape corner family icons
PiperOrigin-RevId: 229930572
2019-01-18 14:28:12 -05:00
dniz
5271bb9614 Fix color of Catalog Favorite Demo heart icon
PiperOrigin-RevId: 229824090
2019-01-18 14:27:30 -05:00
dniz
181e02dd48 Fix color of Catalog Theme Switcher settings gear icon
PiperOrigin-RevId: 229811111
2019-01-18 14:26:13 -05:00
ldjesper
6a89dfd24a Current Android Date Picker Demos
PiperOrigin-RevId: 229592313
2019-01-18 14:22:48 -05:00
Material Design Team
80158ebf47 Automated g4 rollback of changelist 229564800
PiperOrigin-RevId: 229577962
2019-01-18 14:21:48 -05:00
marianomartin
f54e1f58cd Add a global corner shape switch.
PiperOrigin-RevId: 229568190
2019-01-18 14:20:08 -05:00
Material Design Team
ba5938aece Automated g4 rollback of changelist 229558149
PiperOrigin-RevId: 229564800
2019-01-18 14:19:07 -05:00
marianomartin
ab2f0e45a9 Modify card demo to be able to extend it.
PiperOrigin-RevId: 229558149
2019-01-18 14:18:20 -05:00
ldjesper
3b2186fb2c Reduces inset margins for small devices
PiperOrigin-RevId: 229549538
2019-01-18 14:17:11 -05:00
connieshi
d8addaa6e6 Update chip group demo so that the child chips can be removed via the close button and restored via the refresh floating action button.
PiperOrigin-RevId: 228760666
2019-01-10 17:21:35 -05:00
marianomartin
8b7ec0c80e Add check drawable when card is selected.
PiperOrigin-RevId: 228715367
2019-01-10 17:17:34 -05:00
marianomartin
b94acdabd7 Remove center horizontal from bottomsheet demo
PiperOrigin-RevId: 228565173
2019-01-10 17:15:50 -05:00
connieshi
a0b647a1a0 Setup some internal logging to collect performance metrics.
PiperOrigin-RevId: 228332171
2019-01-10 16:42:04 -05:00
marianomartin
696e9e4811 Fix NPE in catalog Menu demo
PiperOrigin-RevId: 228326751
2019-01-10 16:41:14 -05:00
marianomartin
0c00762410 Resubmit card view ripple changes
PiperOrigin-RevId: 227909348
2019-01-10 16:30:51 -05:00
marianomartin
560adc655d Add Icon Padding with an insetDrawable in menus
PiperOrigin-RevId: 227907093
2019-01-10 16:29:05 -05:00
marianomartin
637e1599ca Automated g4 rollback of changelist 227719145
PiperOrigin-RevId: 227738476
2019-01-10 16:04:39 -05:00
marianomartin
4cbe3b1ad2 Support checkable in card view, add states demo.
Also added a demo showing the different states

PiperOrigin-RevId: 227719145
2019-01-10 16:02:59 -05:00
ldjesper
46ce278ebb Add Dialogs to ShapeThemeingDemo and fix Overlay ordering
PiperOrigin-RevId: 226213645
2018-12-21 11:32:29 -05:00
marianomartin
8d14c58869 Change the toolbar use the right theme in shape theming demo
PiperOrigin-RevId: 226064205
2018-12-21 11:23:04 -05:00
melaniegoetz
da9ef31857 BottomSheet Catalog Demo
PiperOrigin-RevId: 226018223
2018-12-21 11:20:29 -05:00
marianomartin
49384f30a3 Add Draggable Card Demo
PiperOrigin-RevId: 226006145
2018-12-21 11:16:03 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
gauthams
30435b8f48 Add buttons to shape theming demo
PiperOrigin-RevId: 225451480
2018-12-21 10:49:33 -05:00
marianomartin
1da2baf13f Remove 0dp border width from fab in shape theming demo
PiperOrigin-RevId: 225429900
2018-12-21 10:48:54 -05:00
marianomartin
3944af10be Center text in Shape theming demo
PiperOrigin-RevId: 225409576
2018-12-21 10:45:50 -05:00
Edric Chan
f449ac1d54 [Catalog] Fix broken shape theming demo
Resolves
https://github.com/material-components/material-components-android/pull/243

2018-12-13 11:13:40.850 8563-8563/io.material.catalog E/AndroidRuntime: FATAL EXCEPTION: main
    Process: io.material.catalog, PID: 8563
    android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class com.google.android.material.widget.FloatingActionButton
    Caused by: android.view.InflateException: Binary XML file line #42: Error inflating class com.google.android.material.widget.FloatingActionButton
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.material.widget.FloatingActionButton" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/io.material.catalog-P4gGkCFki5goZHxF84ubDw==/base.apk"],nativeLibraryDirectories=[/data/app/io.material.catalog-P4gGkCFki5goZHxF84ubDw==/lib/x86, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.view.LayoutInflater.createView(LayoutInflater.java:606)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
        at android.view.View.inflate(View.java:24354)
        at io.material.catalog.shapetheming.ShapeThemingDemoFragment.onCreateDemoView(ShapeThemingDemoFragment.java:42)
        at io.material.catalog.feature.DemoFragment.onCreateView(DemoFragment.java:74)
        at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439)
        at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
        at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
        at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
        at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802)
        at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
        at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
        at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
        at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
        at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManager.java:733)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

PiperOrigin-RevId: 225376286
2018-12-21 10:39:27 -05:00
afohrman
734670d9ac Add full color palette for themes in shape theming demos.
- The color palettes are now more or less legible (no more white on white text fields)
- Change placeholder text in chip to be more visually descriptive

PiperOrigin-RevId: 224973952
2018-12-12 16:21:48 -05:00
marianomartin
55cfdb0480 Invalidate BorderDrawable when changing shapeAppearance
PiperOrigin-RevId: 224826056
2018-12-12 16:21:08 -05:00
marianomartin
9837721733 Replace circular border drawable with a drawable for any shape.
PiperOrigin-RevId: 224205053
2018-12-06 12:05:36 -05:00
ldjesper
742ad45d42 Catalog Icon Update for Dialog
PiperOrigin-RevId: 224160602
2018-12-06 12:04:12 -05:00
ldjesper
bca2bd0e00 Creates a new builder for Alert Dialog's that supports the Material Shape system.
PiperOrigin-RevId: 223985990
2018-12-06 12:03:16 -05:00
gauthams
26fb53756c Update contentDescription for icon-only buttons in button demo
PiperOrigin-RevId: 223590648
2018-12-06 11:45:41 -05:00
connieshi
b8f05271a1 Fix crash in chip group demo due to ClassCastException.
PiperOrigin-RevId: 223514614
2018-12-06 11:40:54 -05:00
connieshi
7158fe2b7f In the text field demo, when the "show error" button is pressed, do not change focus if the focus is already on a text field with an error.
PiperOrigin-RevId: 223513021
2018-12-06 11:40:34 -05:00
Material Design Team
0ccc9c0f24 Automated g4 rollback of changelist 223388533
PiperOrigin-RevId: 223398975
2018-12-06 11:38:41 -05:00
ldjesper
e5ad8ffe43 Creates a new builder for Alert Dialog's that supports the Material Shape system.
PiperOrigin-RevId: 223388533
2018-12-06 11:35:10 -05:00
connieshi
e190118c6f Update the chip group demo in the catalog app to use switchmaterial.
PiperOrigin-RevId: 223339622
2018-12-06 11:34:39 -05:00
connieshi
9e05f52c5c Refactor R.layout.cat_bottom_navs_label_visibility_controls to that contents are not cut off horizontally when display size or text size is set to large.
All controls have been moved out of the 2 column GridLayout and moved into a LinearLayout that adjusts according to the screen width.

PiperOrigin-RevId: 223232173
2018-12-06 11:34:11 -05:00