Граф коммитов

105 Коммитов

Автор SHA1 Сообщение Дата
Vladislav Filyakov 747688b812 Changed version to 0.2.3 2019-05-03 16:45:15 -07:00
Emily Lynam ae8ba70f4a Merged PR 264973: Rename AvatarSize XSMALL
Found this egregious bug while debugging something else!

Related work items: #713657
2019-05-03 23:38:45 +00:00
Emily Lynam 327f77c7f9 Merged PR 264386: PeoplePicker: fix focus issue and collapse jump issue on start
This PR fixes two bugs:
1. [In API 28, views no longer automatically receive focus.](https://developer.android.com/about/versions/pie/android-9.0-changes-28#focus) To create a consistent experience, we not request focus for the first `PeoplePickerView` in the demo.
2. For unfocused `PeoplePickerView`s that have more views added than can fit in one line on start up, you can see a jump that occurs as `performLayoutAndCollapse` hides the appropriate tokens. Now the tokens are only added if they can fit. **NOTE**: to test this, you can comment out the fix for no. 1 in the activity and test on api 28.

Related work items: #713012
2019-05-03 23:06:14 +00:00
Vlad Filyakov 029dbdc9da
README - Added link to build.gradle for manual installation 2019-05-03 10:51:33 -07:00
Vladislav Filyakov 7d15d1f1f1 Added license for Android to NOTICE and MS copyright header to NumberPicker.kt 2019-05-03 10:35:45 -07:00
Emily Lynam 4702936092 Merged PR 264460: Update README for AAR dependencies
Because transient dependencies are not included in AAR artifacts, you have to explicitly add them to the consuming app. Updated the README to reflect this.

Related work items: #719055
2019-05-03 15:58:26 +00:00
William Do efefffb1ae Merged PR 264378: CalendarView/ DateTimePickerDialog Crash Fix
A crash is occurring when CalendarView or DateTimePickerDialog instances are created. This is caused by the ThreeTenABP library not being initialized.

This PR fixes the crash by initializing the library within CalendarView and DateTimePickerDialog.

Couple of things:
- The initialization method, `AndroidTreeTen.init`, checks if the library has been initialized and does not initialize it again
- Added defaults to DateTimePickerDialog's newInstance params for `dateTime` and `duration` which is why their order changed
- ~~The library must be initialized by a consumer in their project if they want to set the time on the controls otherwise the current time will be used~~
- The library needs to be initialized in the Demo; however if consuming as an AAR module, initialization is not required

Related work items: #718332
2019-05-03 01:29:56 +00:00
Vladislav Filyakov 645381bdba Changed version to 0.2.2 2019-05-01 17:43:59 -07:00
Vladislav Filyakov 7a3cc8b7d8 - Updated build.gradle to use new naming for "compile" dependencies in publishing script 2019-05-01 17:42:28 -07:00
Project Collection Build Service (onedrive) 03bd149dc2 Merged PR 262617: Touchdown Build - Localized Resource Files
Latest localized resource files from Touchdown Build
2019-04-29 17:45:32 +00:00
Vlad Filyakov 846993db93 Updated NOTICE 2019-04-25 23:42:26 +00:00
Vladislav Filyakov 9db1f98ad7 Changed version to 0.2.1 2019-04-24 14:47:25 -07:00
Vlad Filyakov 0adcda7893 Merged PR 259833: Demo: UI Fabric version is shown in the subtitle of toolbar on the main screen
- Demo: now shows UI Fabric version in the subtitle of toolbar on the main screen

Related work items: #713614
2019-04-23 01:08:14 +00:00
Emily Lynam 7cb8377c20 Merged PR 258993: Add conditional use of secret global gradle variables
Conditional variables so you don't need them in your local gradle file. Demo now runs without them.

Related work items: #713635
2019-04-19 22:27:55 +00:00
Vlad Filyakov 960ad06388
Update README.md 2019-04-19 09:29:00 -07:00
Vladislav Filyakov 4601df50e0 Changed version to 0.2.0 2019-04-18 11:23:03 -07:00
Vlad Filyakov 7b8459d3d9 Updated NOTICE 2019-04-18 16:55:37 +00:00
Vlad Filyakov 5edcfa023c Updated README.md 2019-04-17 02:06:26 +00:00
Vlad Filyakov aadad907e5 Updated README.md 2019-04-17 01:53:21 +00:00
Emily Lynam 2672e29f87 Merged PR 256092: Snackbar: Ability to update text + Updates to demo + Bug fix
**Ability to update text**
- The OneDrive team requested the ability to update text on snackbars that have already been created and are showing.
- We already had this ability, but the layout was buggy. Updating the view's background when setting text was the cause of this.
- Added an example to the demo where text updates.

**Updates to demo**
- Used the existing Headline + divider pattern with descriptions to organize the demo. Ported over some list item text styles from my open PR that we can use.
- Moved descriptions from button text to a `TextView` for legibility.

**Bug fix**
- Found a bug in API 22 where the bottom margin was not added to the content / RelativeLayout. From some research, it appears that `RelativeLayouts` can have problems with bottom margins.
- To fix this, I added the margin to the parent `FrameLayout` (via Android's `SnackbarLayout`). This seems to render much more reliably.

| Top of page | Bottom of page |
| --- | --- |
| ![Screenshot_1555102041.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/256092/attachments/Screenshot_1555102041.png) | ![Screenshot_1555102045.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/256092/attachments/Screenshot_1555102045.png) |

Related work items: #710721
2019-04-16 22:16:50 +00:00
Emily Lynam 7d2d4e350a Merged PR 257132: README updates for GitHub
README updates for public GitHub, based on a variety of existing comparable repos (listed in the work item). Should have all the basics of what it is and how to use it.

No screenshots of controls yet, we should decide how we want to host them. Adding them via GitHub itself might actually be easier once we're doing PRs on there.

Related work items: #711210
2019-04-16 20:45:51 +00:00
Vlad Filyakov 3c33147f9a Updated NOTICE 2019-04-15 17:35:48 +00:00
Vlad Filyakov c3c6a730a4 Merged PR 256624: Created NOTICE files with third-party licenses
- Added NOTICE file that contains all third-party license per https://docs.opensource.microsoft.com/using/required-notice-template.html
- Removed separate license files for third-party dependencies
2019-04-15 17:08:14 +00:00
Vlad Filyakov 591da1edeb Merged PR 256195: Updated demo appearance to match Design Toolkit
- Demo: updated padding and style of demo list item
- Demo: added row divider in demo list
- Demo: defined demo list background explicitly

I decided not to style toolbar since system style we have is exactly the design in Toolkit.

Related work items: #710814
2019-04-13 00:24:35 +00:00
Emily Lynam e4f6d98c14 Merged PR 253842: Basic and Borderless Button
Basic button implementation using style for default and borderless variants. Applied the style to the theme and updated the demo with a new Button demo and updated other demos using button to be consistent.

| Design | Demo |
| ------ | ------|
|![Screen Shot 2019-04-09 at 2.18.19 PM.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/253842/attachments/Screen%20Shot%202019-04-09%20at%202.18.19%20PM%20(2).png) ![Screen Shot 2019-04-09 at 2.19.02 PM.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/253842/attachments/Screen%20Shot%202019-04-09%20at%202.19.02%20PM%20(2).png)  | ![Screenshot_1555083988.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/253842/attachments/Screenshot_1555083988%20(2).png)  |

Related work items: #708719
2019-04-12 16:47:07 +00:00
Vladislav Filyakov 4aa9b84698 Updated avatar background colors according to the most recent Design Toolkit 2019-04-10 16:48:27 -07:00
Vladislav Filyakov 8bfd78b426 Changed version to 0.1.10 2019-04-08 13:09:05 -07:00
Emily Lynam 665dc1ccf4 Merged PR 251892: Snackbar: Bug fixes and polish for icon variant
- Fix a bug so that we can use `Snackbar`s in `RecyclerView`s with `findSuitableParent` method borrowed from android (discovered this while working on `ListItemView`)
- Add single line Snackbar with icon variant to the demo and fix bugs so that the icon and text are centered properly
- Give a default duration (per design and pm request)
- Note which duration is used in the demo button text.

| Single-line with icon | Single-line with icon and action |
| ------------- |:-------------:|
|![Screenshot_1554738893.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251892/attachments/Screenshot_1554738893.png) | ![Screenshot_1554738897.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251892/attachments/Screenshot_1554738897.png) |
| Multi-line with icon | Multi-line with icon and action |
|![Screenshot_1554738900.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251892/attachments/Screenshot_1554738900.png) | ![Screenshot_1554738905.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251892/attachments/Screenshot_1554738905.png) |

Related work items: #706313
2019-04-08 19:11:34 +00:00
Emily Lynam 475e3f07af Merged PR 252409: PeoplePicker: Create proxy api for TokenClickStyle
Because we exposed `TokenClickStyle` in `PeoplePickerView`, we had to use
`api 'com.splitwise:tokenautocomplete:2.0.8@aar'`
instead of the desired
`implementation 'com.splitwise:tokenautocomplete:2.0.8@aar'`
in gradle. To get around this, I created a "proxy" enum, `PersonaChipClickStyle` to port our click style to `TokenCompleteTextView`.

All functionality should remain the same.

Related work items: #706980
2019-04-05 23:33:42 +00:00
Emily Lynam 6164493020 Merged PR 251134: Splash / Launch screen for demo app
This PR introduces a launch screen xml to the demo that serves as a template that other apps can use to get a launch screen that matches the Fabric design toolkit.

To test the launch screen without it disappearing, you can comment out everything in `onCreate` in `DemoListActivity` except `super.onCreate(savedInstanceState)`.

| Portrait | Landscape |
| ------------- |:-------------:|
| ![Screenshot_1553207368.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251134/attachments/Screenshot_1553207368.png) | ![Screenshot_1553207468.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/251134/attachments/Screenshot_1553207468.png) |

Related work items: #701127
2019-04-03 21:45:43 +00:00
William Do 0b34e11c72 Merged PR 244831: Accessible Date Picker
This PR adds a Date Picker for accessibility that includes month, day and year pickers as well as refactors parts of the DateTimePicker control.
- Added new functionality to `DateTimePicker` to enable picking of dates (month, day, year) in TalkBack mode.
- Refactored function names and enums for more clarity and broader usage.
- Added functionality to automatically switch to accessibility date picker in `DateTimePickerDialog` depending on TalkBack mode
- Removed unused DisplayModes and unused DisplayMode properties
- Updated dialog titles to reflect different representations depending on TalkBack mode
- Modified DateTime Picker demo to reflect different accessibility modes

Accessibility interaction for the whole DateTimePicker control will be implemented in another work item.

**Accessible Date Picker** | **Demo**
-|-
![Screenshot_1552932429.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/244831/attachments/Screenshot_1552932429.png) | ![Screenshot_1552935346.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/244831/attachments/Screenshot_1552935346.png)

Related work items: #667471, #702105
2019-04-03 20:34:06 +00:00
Vladislav Filyakov ffbb198eec Changed version to 0.1.9 2019-04-01 16:47:26 -07:00
Vladislav Filyakov dada686d67 Changed org name for public Maven publishing to the one still available 2019-04-01 16:43:58 -07:00
Vladislav Filyakov c11acf601e Added BinTray config for publishing 2019-03-29 17:08:55 -07:00
Vlad Filyakov e8c9776dfd
Update README.md 2019-03-29 14:33:04 -07:00
Vlad Filyakov b9e0047630
Update README.md 2019-03-29 14:17:21 -07:00
Vlad Filyakov 3f2a4615d6
Update README.md 2019-03-29 14:10:44 -07:00
Vlad Filyakov 8da3f384ae
Create README.md 2019-03-29 11:02:00 -07:00
Vlad Filyakov 68ec363654
Create CONTRIBUTING.md 2019-03-29 10:35:48 -07:00
Project Collection Build Service (onedrive) 72a70dd22f Merged PR 249413: Touchdown Build - Localized Resource Files
Latest localized resource files from Touchdown Build
2019-03-29 01:41:16 +00:00
Vlad Filyakov 8678e94d3c Merged PR 249403: Updated/added license information in/to source files
- Updated/added license information in/to source files
- Removed unused files
2019-03-29 01:21:06 +00:00
Vlad Filyakov b2e980cbf3 Updated LICENSE 2019-03-28 17:33:06 +00:00
Vlad Filyakov 0d636dc5db Merged PR 248744: Changed version to 0.1.8
Changed version to 0.1.8
2019-03-28 00:24:27 +00:00
Vlad Filyakov ba3524a15b Merged PR 248731: Updated API to 28
Updated API to 28

Related work items: #703313
2019-03-28 00:12:02 +00:00
Vlad Filyakov 87420b8e4e Merged PR 248461: Demo update
1) Demo list - removed extra horizontal padding
2) Typography demo - made descriptions more descriptive; removed extra horizontal padding
2019-03-27 18:08:33 +00:00
Vlad Filyakov 49a7ebf18e Merged PR 248183: Changed version to 0.1.7
Changed version to 0.1.7
2019-03-27 00:35:29 +00:00
Vladislav Filyakov 88739e686d Added license 2019-03-21 12:23:24 -07:00
Vladislav Filyakov 2632bad356 Added sanitized files back 2019-03-21 12:10:25 -07:00
Emily Lynam 2dc017654a Merged PR 244578: Add TokenAutoComplete library license
Added this license:
https://github.com/splitwise/TokenAutoComplete/blob/master/LICENSE

Related work items: #699716
2019-03-18 17:30:13 +00:00
Emily Lynam f7454a3ce5 Merged PR 242848: People Picker: refactor performCollapse to adjust spans on layout change
### This PR has two primary bug fixes:
1. Dynamically resize spans on rotate
2. Dynamically add / remove spans to fit the first line of the edit text box

When the screen orientation changes, persona spans can be too large or too small for their space, or take up too many lines of text. This PR adapts `performCollapse` from `TokenCompleteTextView` to account for this need of adjusting persona span layout and hidden span count. In the original `performCollapse`, they only accounted for focus, not layout change.

To account for other bugs that came, I also had to adapt hidden function from their library, `insertSpan`, and tweak the `AccessibilityTouchHelper`.

![Persona span resize before and after.png](https://onedrive.visualstudio.com/4dcbf0bc-c3cd-49c8-a7c3-ec1924691d9b/_apis/git/repositories/32fa6338-45ea-42a0-aca0-484938e1962a/pullRequests/242848/attachments/Persona%20span%20resize%20before%20and%20after%20(4).png)

Related work items: #698127
2019-03-14 22:19:31 +00:00