12 Commits

Author SHA1 Message Date
Jeff Verkoeyen
92254ea119 Rename all icons to an ic_<#name#> convention.
PiperOrigin-RevId: 308232277
2020-04-24 04:33:51 -07:00
Galia Kaufman
36f6a30fa6
[List] Removing MDCListThemer (#9187)
Removing MDCListThemer from within our library.
2019-12-09 19:49:21 -05:00
Robert Moore
74a27253e8
Global replace of integral single-precision literals with integer literals. (#5709)
Global replace of integral single-precision literals with integer literals.

Regular expression used:
```perl
/[^\w]([0-9]+)\.[0]*[fF]/$1/
```
2018-11-08 14:02:04 -05:00
Robert Moore
410f2f55e7 [List Items] Improve BiDi example performance. (#5506)
The example showing how to use MDF Internationalization's language
direction code was somewhat inefficient, calling the method twice on the
same string. Instead it should be called once and the result checked.

In manual testing, dropped overhead from 0.8% of Main Thread time to
0.4% while scrolling the example.
2018-10-24 19:05:12 -04:00
Andrew Overton
49b29af661
Use ListThemer for List example (#5502)
## The problem:

The Stereo cell example wasn't using the List Themer.

## The solution:

Make the Stereo cell example use the List Themer.

I didn't include before and after screenshots because there is no visual change.

Closes #5501.
2018-10-24 15:55:50 -04:00
Andrew Overton
d1961ea5d7
Add RTL arabic text to list example (#5500)
## The problem:

There wasn't any RTL text in our List example!

## The solution:

I added some RTL text to our List example.

Closes #5498

### Before:
![simulator screen shot - iphone x - 2018-10-23 at 11 28 37](https://user-images.githubusercontent.com/8020010/47372425-bb07a600-d6b7-11e8-997f-ba19d17dc85b.png)

### After:
![simulator screen shot - iphone x - 2018-10-23 at 11 28 02](https://user-images.githubusercontent.com/8020010/47372426-bb07a600-d6b7-11e8-86b1-e088a8737102.png)
2018-10-23 16:52:33 -04:00
Robert Moore
12773d3289
[List] Fix example import. (#5426)
Examples should import umbrella headers, not individual classes.
2018-10-15 16:27:06 -04:00
Julien Poumailloux
d55b6bb37f [List] Fix MDCSelfSizingStereoCell not using the right text color and not resetting all label properties on re-use (#5341)
There were two issues:
1) the -titleLabel and -detailLabel UILabels were not getting their -textColor set, despite the helper methods -defaultTitleLabelTextColor and -defaultDetailLabelTextColor defined in the file.
2) within -prepareForReuse, the -textColor and -numberOfLines properties on the -titleLabel and -detailLabel UILabels weren't getting reset.
2018-10-08 14:22:35 -04:00
Andrew Overton
d554709099
[List] Generalize List themers (#5357)
These changes generalize List themers so that for the List component there is one themer per subsystem, each with one method per List Item class.

Closes #5356
2018-10-08 13:02:45 -04:00
Andrew Overton
0aabda44b3
Add MDCSelfSizingStereoCellColorThemer (#5311)
Add ColorThemer to MDCSelfSizingStereoCell. Closes #5303.
2018-10-03 15:16:41 -04:00
Andrew Overton
0fb7ec9712
[List] Add TypographyThemer to MDCSelfSizingStereoCell (#5298)
* Add TypographyThemer to MDCSelfSizingStereoCell

* Appease clang format

* Update BUILD file

* Fix copy/paste typo
2018-10-03 11:36:38 -04:00
Andrew Overton
cf09971831
[List] Add Self Sizing Stereo Cell (#4953)
* Four prototypes: (#4382)

Two have manual layout and two have auto layout.
Two have configurable supporting views, two don't.

* Manual Layout prototype 3

* Fix project by adding initial List Item Cell Demo

* Add other List Item example

* Make view properties readonly and make cellWidth private

* Make cellWidth public again and make more efficient

* Rename MDCListItemCell to MDCBasicStereoCell

* Rename to MDCSelfSizingStereoCell

* Small nits

* Set cellWidth in preferredLayoutAttributes

* Some Jeff feedback

* Extract layout code

* Delete all the prototypes from forever ago

* Fix copyright messages

* Get rid of __IPHONE_11_0 checks

* PR feedback

* Move layout to its own file

* Add dependencies

* Tweak documentation

* Fix copyright stanzas

* Clang format

* Move numberOfLines logic to cell
2018-09-04 11:34:56 -04:00