Office UI Fabric for Android - The front-end framework for building experiences for Office and Office 365
Перейти к файлу
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
OfficeUIFabric Changed version to 0.2.0 2019-04-18 11:23:03 -07:00
OfficeUIFabric.Demo Merged PR 258993: Add conditional use of secret global gradle variables 2019-04-19 22:27:55 +00:00
gradle/wrapper Merged PR 196135: Updated build related files after Android studio update 2018-10-26 01:35:41 +00:00
metadata Merged PR 188108: PeoplePicker intro 2018-10-18 15:49:15 +00:00
.gitignore Initial commit 2018-07-05 10:56:48 -07:00
CONTRIBUTING.md Create CONTRIBUTING.md 2019-03-29 10:35:48 -07:00
LICENSE Updated LICENSE 2019-03-28 17:33:06 +00:00
NOTICE Updated NOTICE 2019-04-18 16:55:37 +00:00
README.md Update README.md 2019-04-19 09:29:00 -07:00
build.gradle Added BinTray config for publishing 2019-03-29 17:08:55 -07:00
gradle.properties Initial commit 2018-07-05 10:56:48 -07:00
gradlew Initial commit 2018-07-05 10:56:48 -07:00
gradlew.bat Initial commit 2018-07-05 10:56:48 -07:00
settings.gradle Initial commit 2018-07-05 10:56:48 -07:00

README.md

Build status GitHub release

Office UI Fabric for Android

The Android UI framework for building experiences for Office and Office 365.

Office UI Fabric for Android is a native library that provides the Office UI experience for the Android platform. It contains information about colors and typography, as well as custom controls and customizations for platform controls, all from the official Fluent design language used in Office and Office 365 products.

Contents

Colors and typography

Office UI Fabric for Android provides colors and typography based on the Fluent design language.

Controls

Office UI Fabric for Android includes an expanding library of controls written in Kotlin. These controls implement the Fluent design language and bring consistency across Office app experiences.

Some of the controls available include:

  • AvatarView
  • CalendarView
  • DateTimePickerDialog
  • PeoplePickerView
  • PersonaChipView
  • PersonaListView
  • PersonaView
  • Snackbar
  • TemplateView
  • Tooltip

A full list of currently supported controls can be found here: OfficeUIFabric.

Install and use Office UI Fabric

Requirements

API 19+

1. Using Gradle

  • Our library is published through JCenter, so make sure the jcenter() repository has been added to your project level build.gradle file (which usually is automatic).

  • Inside the dependency block in your build.gradle, add this line for the OfficeUIFabric library:

dependencies {
    ...
    implementation 'com.microsoft.uifabric:OfficeUIFabric:$version'
    ... 
}
  • Make sure you replace $version with the latest version of OfficeUIFabric.

2. Using Maven

  • Add the OfficeUIFabric library as a dependency:
<dependency>
  <groupId>com.microsoft.uifabric</groupId>
  <artifactId>OfficeUIFabric</artifactId>
  <version>${version}</version>
</dependency>
  • Make sure you replace ${version} with the latest version of OfficeUIFabric.

3. Manual installation

  • Download the latest changes from the Office UI Fabric Android repository.

  • Follow these instructions to build and output an AAR file from the OfficeUIFabric module, import the module to your project, and add it as a dependency. If you're having trouble generating an AAR file for the module, make sure you select it and run "Make Module 'OfficeUIFabric'" from the Build menu.

Import and use the library

In code:

import com.microsoft.officeuifabric.persona.AvatarView

In XML:

<com.microsoft.officeuifabric.persona.AvatarView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:name="Mona Kane" />

Demo app

Included in this repository is a demo of currently implemented controls. A full list of implemented controls available in the demo can be found here: Demos.

To see samples of all of our implemented controls and design language, run the OfficeUIFabric.Demo module in Android Studio.

Contributing

Post bug reports, feature requests, and questions in Issues.

Changelog

We use GitHub Releases to manage our releases, including the changelog between every release. You'll find a complete list of additions, fixes, and changes on the Releases page.

License

All files on the Office UI Fabric for Android GitHub repository are subject to the MIT license. Please read the LICENSE file at the root of the project.