106 Commits

Author SHA1 Message Date
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
afohrman
f4aae4cd3c Use string resources for slider labels.
Also organize the strings a bit.

PiperOrigin-RevId: 223226182
2018-12-06 11:33:42 -05:00
connieshi
0d2c04cf36 In the textfield demos that demonstrate showing an error when a button is pressed, request focus on the first text field to show an error so screen reader users can easily find the error.
PiperOrigin-RevId: 223181665
2018-12-06 11:33:05 -05:00
connieshi
ac9d38b4b5 Update controllable Tabs demo to improve accessibility:
- Increased the dropdown height to 48dp
       - Updated switch to using switchmaterial

PiperOrigin-RevId: 222826404
2018-12-06 11:22:30 -05:00
connieshi
9b1f8478e5 Remove chipTouchTargetDelegate attribute.
PiperOrigin-RevId: 222298640
2018-12-06 11:16:48 -05:00
connieshi
feb93d25de Show snackbar (to provide feedback) when non-checkable chips are clicked.
PiperOrigin-RevId: 222275988
2018-12-06 11:16:25 -05:00
connieshi
76d7dbac25 Update the chip demo in the catalog app to use switchmaterial.
PiperOrigin-RevId: 222243442
2018-12-06 11:14:44 -05:00
leticiars
e97d669ca9 Fixing spacing around text fields on demo.
PiperOrigin-RevId: 222137256
2018-12-06 11:14:07 -05:00
gauthams
3300bd41a7 Change GridLayout in buttons demo to collapse to 1 column if buttons are too wide for the screen
PiperOrigin-RevId: 222128018
2018-12-06 11:13:09 -05:00
leticiars
7fd9a0486b Fixing runtime crash in text fields demo.
PiperOrigin-RevId: 222080797
2018-12-06 11:11:48 -05:00
marianomartin
415e6ea003 Add a cut corners top edge treatment in the BAB demo
PiperOrigin-RevId: 222071849
2018-11-26 07:55:59 -05:00
marianomartin
2e011d8b3f Close button in gm transformation demo
PiperOrigin-RevId: 221831111
2018-11-26 07:48:19 -05:00
gauthams
a87e523853 Add contentDescription to icon-only buttons in button demo
PiperOrigin-RevId: 221782917
2018-11-16 12:22:11 -05:00
marianomartin
1ddd4a8afc Automated g4 rollback of changelist 221455586
PiperOrigin-RevId: 221622429
2018-11-16 11:59:09 -05:00
connieshi
37b3285ea9 Add chips in recyclerview demo.
PiperOrigin-RevId: 221490657
2018-11-16 11:57:24 -05:00
marianomartin
f05d18f450 [a11y] send event when hide buttons fab is tapped
PiperOrigin-RevId: 221455586
2018-11-16 11:55:27 -05:00
marianomartin
50f3d0be15 Add toggle to set default start Demo
PiperOrigin-RevId: 221439442
2018-11-16 11:51:45 -05:00
dniz
0bef80a76b Update colors for DayNight themes
PiperOrigin-RevId: 221137528
2018-11-16 11:26:51 -05:00
marianomartin
b0d6827e91 Update comment about lib only api usage
PiperOrigin-RevId: 220520792
2018-11-16 11:01:35 -05:00
marianomartin
a121bc0740 Improve menus catalog demo
PiperOrigin-RevId: 220498523
2018-11-16 10:59:47 -05:00
connieshi
60d1dfac70 Update chipDrawable to be wrapped by InsetDrawable (if needed) to ensure it meets Android's recommended minimum touch target size.
Update demo catalog app.

PiperOrigin-RevId: 220370443
2018-11-16 10:57:34 -05:00
isabellekim
26109ae837 Update MaterialCardView to use MaterialShapeDrawable, changing stroke to respect extra padding that CardView adds for shadows.
Also adds clickable Card to the catalog

PiperOrigin-RevId: 220343650
2018-11-16 10:53:15 -05:00
Material Design Team
00c3c668a8 Migrate from AndroidSupportInjectionModule to AndroidInjectionModule.
PiperOrigin-RevId: 220291186
2018-11-16 10:48:53 -05:00
ldjesper
1becd650ca MDC Catalog Icon Updates
PiperOrigin-RevId: 219307796
2018-11-01 16:10:13 -07:00
dniz
c3d6042412 Remove default Theme Switcher color options in favor of Reset option (helps for dark theme)
PiperOrigin-RevId: 219160833
2018-11-01 16:06:51 -07:00
dniz
613edaa025 Update default Catalog theme to use black for on primary color and Dark Catalog theme to use baseline MDC colors
Also update default Catalog Toolbar style to Primary

PiperOrigin-RevId: 218861912
2018-10-28 21:43:19 -04:00
marianomartin
2c551bb52e Add button to rotate FABs on catalog demo
PiperOrigin-RevId: 218722231
2018-10-28 21:41:20 -04:00
dniz
36722a874e Swap Catalog primary and secondary colors and remove Theme.Catalog.Swapped
PiperOrigin-RevId: 218684599
2018-10-28 21:40:33 -04:00
dniz
985357da26 Update text color of Catalog WIP label and buttons/tabs labels (looks better in dark theme)
PiperOrigin-RevId: 218417752
2018-10-28 19:10:46 -04:00
dniz
aded35a7a8 Prepare Catalog for Dark Theme update
PiperOrigin-RevId: 218341038
2018-10-28 18:34:05 -04:00
ldjesper
5258d3ddc1 Update Dialog Title styling to material design specs
PiperOrigin-RevId: 217565758
2018-10-28 18:27:27 -04:00
dniz
6e6692eb57 Update ActionBar to use new color system
PiperOrigin-RevId: 217321401
2018-10-28 18:14:54 -04:00