Перейти к файлу
Joyeeta Pal 4ed4e181e0
Merge pull request #731 from microsoft/joyapal/cutoutImageColor
[Fluent v2] Add support for customizing cutout icon color
2024-11-20 11:38:03 +05:30
.github Onboarding to GitOps.ResourceManagement (#434) 2023-07-27 20:22:42 +05:30
FluentUI update 2024-10-15 20:46:38 +05:30
FluentUI.Demo Adding Modified Tag To Components From Previous Release 2024-11-19 13:09:04 +05:30
fluentui_calendar theming changes for fluent calendar 2024-09-25 11:03:51 +05:30
fluentui_ccb add lint options for all packages 2024-10-15 19:16:45 +05:30
fluentui_controls v2 Basic Card and Pill Button Token Changes (#684) 2024-09-13 17:16:00 +05:30
fluentui_core remove blank line 2024-11-20 10:11:19 +05:30
fluentui_drawer formatting 2024-11-13 17:13:58 +05:30
fluentui_icons Upgrade tp targetSdk 34 (#677) 2024-08-22 11:05:47 +05:30
fluentui_listitem fix alignment issue in list content builder 2024-10-29 15:51:37 +05:30
fluentui_menus add lint options for all packages 2024-10-15 19:16:45 +05:30
fluentui_notification Upgrade tp targetSdk 34 (#677) 2024-08-22 11:05:47 +05:30
fluentui_others Upgrade tp targetSdk 34 (#677) 2024-08-22 11:05:47 +05:30
fluentui_peoplepicker show underline on focus change 2024-10-30 14:49:03 +05:30
fluentui_persona add option for customizing cutout icon color 2024-11-19 13:45:10 +05:30
fluentui_progress add lint options for all packages 2024-10-15 19:16:45 +05:30
fluentui_tablayout add lint options for all packages 2024-10-15 19:16:45 +05:30
fluentui_topappbars update padding values 2024-10-28 13:18:30 +05:30
fluentui_transients add lint options for all packages 2024-10-15 19:16:45 +05:30
gradle/wrapper [Compose] Upgrade versions (#455) 2023-09-05 15:35:10 +05:30
.gitignore Modularization Base Structure (#41) 2021-03-05 16:05:25 +05:30
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-04-27 08:29:24 -07:00
CONTRIBUTING.md using github's license,code_of_conduct and security files 2020-04-27 21:12:54 +05:30
CredScanSuppressions.json Changes to consider FluentUI.Demo/keystore.jks as exception for credscan. Its contains self-signed key on APK creation 2022-04-18 10:38:47 +05:30
GetLocalizedFiles.sh Update GetLocalizedFiles.sh 2023-02-17 20:34:48 +05:30
LICENSE Initial LICENSE commit 2020-04-27 08:29:26 -07:00
NOTICE Add FluentUI for Android 2020-04-20 15:13:04 +05:30
README.md update 2024-11-18 13:19:40 +05:30
SECURITY.md Initial SECURITY.md commit 2020-04-27 08:29:28 -07:00
azure-maven-central-pipelines.yml Update azure-maven-central-pipelines.yml for Azure Pipelines (#514) 2023-09-21 11:39:31 +05:30
azure-pipelines-fork-build-push.yml Upgrade tp targetSdk 34 (#677) 2024-08-22 11:05:47 +05:30
build.gradle update 2024-09-20 21:06:51 +05:30
cgmanifest.json Release version 0.1.23 (#389) 2023-04-04 18:22:34 +05:30
config.gradle Release 0.3.3 2024-11-19 11:37:33 +05:30
fluentui-android-compliance.yml Changes to consider FluentUI.Demo/keystore.jks as exception for credscan. Its contains self-signed key on APK creation 2022-04-18 10:38:47 +05:30
fluentui-android-master-build-publish-maven.yml Gradle build to use JDK 11 2022-06-14 11:51:18 +05:30
fluentui-android-master-build.yml Gradle build to use JDK 11 2022-06-14 11:51:18 +05:30
fluentui-android-modular-build-universal-publish.yml Release-version-0.1.43 (#578) 2023-12-18 13:07:43 +05:30
fluentui-android-release.yml Update fluentui-android-release.yml for Azure Pipelines 2024-10-07 20:42:20 +05:30
fluentui-android-sync-github-develop.yml Pipeline for syncing develop branch 2020-09-01 12:25:09 +05:30
fluentui-android-sync-github.yml Set up CI with Azure Pipelines for syncing github 2020-04-27 16:12:03 +00:00
fluentui-maven-central-publish-1espt.yml Update fluentui-maven-central-publish-1espt.yml for Azure Pipelines 2024-08-23 19:30:52 +05:30
fluentui-office-build-universal-publish-1espt.yml Release 0.3.3 2024-11-19 11:37:33 +05:30
gradle.properties removing disabled automatic component creation from gradle properties (#683) 2024-08-23 20:05:12 +05:30
gradlew 0.1.0 SDK release 2022-06-16 15:26:10 +05:30
gradlew.bat 0.1.0 SDK release 2022-06-16 15:26:10 +05:30
lint.xml Index/ Position Announcement for Pill Buttons inside PillBar + Lint MissingTranslation Warning suppression (#547) 2023-10-31 15:38:38 +05:30
localize.sh Update localize.sh 2023-02-17 20:29:24 +05:30
publish-check.gradle Improving release pipeline 2022-11-01 20:24:10 +05:30
publish.gradle removing developer creds (#512) 2023-09-15 13:21:34 +05:30
settings.gradle Badge, TabBar implementation 2023-01-23 12:04:19 +05:30

README.md

Fluent UI for Android

The Android UI framework for building experiences for Microsoft 365.

Fluent UI 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 Microsoft 365 products.

Build status (master branch)

Build Service Status
App Center Build status
Build Pipeline Android CI
Release Pipeline Build Status

Contents

Colors and typography

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

In version 0.0.12, as a part of modularization, the colors and typographies have been moved to respective modules Please refer to Modularization section for more details

Controls

Fluent UI 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.

XML based Controls (v1)

Compose based Controls (v2)

Install and use Fluent UI

Requirements

API 21+

1. Using Gradle

  • Our library is now published using MavenCentral, so make sure the mavenCentral() repository has been added to your project level build.gradle file if you want to consume versions >= 0.0.17.

  • If you are still using older versions you can consume jcenter() too. Please note it will only work for versions <=0.0.16

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

dependencies {
    ...
    implementation 'com.microsoft.fluentui:FluentUIAndroid:$version'
    ...
}
  • Make sure you replace $version with the latest version of FluentUI.
  • From version 0.0.12, individual modules can also be used by applications as per need. E.g To use just BottomSheet control which is part of fluentui_drawer module, following block can be added to build.gradle
dependencies {
    ...
    implementation 'com.microsoft.fluentui:fluentui_drawer:$version'
    ...
}

Replace ${version} with the latest version of fluentui_drawer

More information about contents of each module can be found in Modularization section

a) Develop for Surface-Duo:

  • Please also add the following lines to your repositories section in your gradle script:
maven {
    url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1"
}
  • Also add the SDK dependency to the module-level build.gradle file(current version may be different from what's shown here):
implementation "com.microsoft.device:dualscreen-layout:1.0.0-alpha01"

NOTE: Some modules already have the SDK dependency added for providing customizations for Surface Duo. Please add the maven url to repositories section in your gradle script to use these modules.

2. Using Maven

  • Add the FluentUI library as a dependency:
<dependency>
  <groupId>com.microsoft.fluentui</groupId>
  <artifactId>FluentUIAndroid</artifactId>
  <version>${version}</version>
</dependency>
  • Make sure you replace ${version} with the latest version of FluentUI.
  • As in case of Gradle, here too, to use specific modules add dependency as follows:
<dependency>
  <groupId>com.microsoft.fluentui</groupId>
  <artifactId>fluentui_drawer</artifactId>
  <version>${version}</version>
</dependency>

Replace ${version} with the latest version of fluentui_drawer

Check Modularization for details of every module.

3. Manual installation

Modularized FluentUI manual installation involves building individual AARs of required modules
  • Download the latest changes from the Fluent UI Android repository.

  • Follow these instructions to build and output an AAR files from the FluentUI modules, import the module(s) 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 e.g "Make Module 'fluentui_drawer'" from the Build menu.

  • Some components have dependencies you will need to manually add to your app if you are using this library as an AAR artifact because these dependencies do not get included in the output.

    • If using PeoplePickerView, include this dependency in your gradle file:
      implementation 'com.splitwise:tokenautocomplete:2.0.8'
      
    • If using CalendarView or DateTimePickerDialog, include this dependency in your gradle file:
      implementation 'com.jakewharton.threetenabp:threetenabp:1.1.0'
      
    • Double check that these library versions correspond to the latest versions we implement in the FluentUI build.gradle.

Import and use the library

In code:

import com.microsoft.fluentui.persona.AvatarView

In XML:

<com.microsoft.fluentui.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 FluentUI.Demo module in Android Studio.

Modularization

Starting from version 0.0.12, Fluent UI has been split into multiple modules by grouping related controls together. The main objective of this is to reduce the size impact of library on the applications which want to use only specific controls from Fluent UI

The list of modules and their respective controls is as follows

Modules v1 Controls v2 Controls
fluentui_calendar Calendar, DateTime Picker
fluentui_ccb ContextualCommandBar
fluentui_controls AnnouncementCard, BasicCard,
BasicChip, Button,
Checkbox, Citation,
FileCard, FloatingActionButton,
Label, RadioButton,
TextField, ToggleSwitch
fluentui_core TemplateView, Utilities
fluentui_drawer Drawer, BottomSheet,
Persistent BottomSheet
BottomSheet, Drawer
fluentui_listitem ListItemView ListContentBuilder, Divider,
ListItem, TabItem
fluentui_menus Pop up Menu Dialog, Menu
fluentui_notification Badge, CardNudge,
NotificationCommon, Snackbar,
ToolTip
fluentui_others Action Bar Layout, Bottom Navigation, Buttons, View Pager
fluentui_persona AvatarView, AvatarGroup View,
PersonaChipView, PersonaListView
Avatar, AvatarCarousel,
AvatarGroup, Persona,
PersonaChip, PersonaList,
SearchBarPersonaChip
fluentui_peoplepicker PeoplePickerView PeoplePicker
fluentui_progress Linear Progress Bar, Circular Progress Bar CircularProgressIndicator, LinearProgressIndicator,
ProgressText, Shimmer
fluentui_tablayout Tablayout SideRail, TabBar,
Pill, PillSwitch,
PillTabs
fluentui_topappbars Toolbar, AppBar Layout, SearchBar AppBar, SearchBar
fluentui_transients Snackbar, Tooltip

Contributing

Post bug reports, feature requests, and questions in Issues. Contributions to any specific controls should be done in respective modules. Refer Modularization section for more details

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 Fluent UI for Android GitHub repository are subject to the MIT license. Please read the LICENSE file at the root of the project.

Usage of the logos and icons referenced in Fluent UI for Android is subject to the terms of the assets license agreement.