aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Mobile
  • Programming

Announcing Glance: Tiles For Wear OS Made simple

  • aster.cloud
  • January 31, 2022
  • 2 minute read

Last year we announced the Wear Tiles API. To complement that Java API, we are excited to announce that support for Wear OS Tiles has been added to Glance, a new framework built on top of Jetpack Compose designed to make it easier to build for surfaces outside your app on Android. We’d love to get your feedback on this alpha version.

Tiles provide Wear OS users easy access to the information and actions they need in order to get things done quickly. They also are one of the most used surfaces on Wear OS. Just one swipe away from the Watch Face, users can quickly access the most important information or actions from an app, like start a timer or get the latest weather forecast.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

 

Watch face gif

Let’s see how we can create a Tile with Glance:

 

class HelloTileService : GlanceTileService() {
   @Composable
   override fun Content() {
       Text(text = "Hello Glance")
   }
}

 

The simple code above generates the Tile below.

 

“Hello Glance” Tile sample with Glance

“Hello Glance” Tile sample with Glance

 

Note: Using Glance-wear-tiles requires`minSdkVersion`>= 26.

 

How it works

Glance creates “glanceable” experiences across Android surfaces using a base-set of Composables. For Tiles on Wear OS, Glance translates Composables into Tiles.

 

Diagram: Glance structure

Diagram: Glance structure

 

Glance requires Compose to be enabled and depends on Runtime, Graphics, and Unit UI Compose layers, but it’s not directly interoperable with other existing Jetpack Compose UI elements, like Compose for Wear OS.

What’s in the Alpha

This initial release introduces the main APIs to build wear Tiles:

  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/GlanceTileService" target="_blank" rel="noopener">GlanceTileService</a> – A service to create your tile in the composable Content() function.
  • Initial set of Glance Composables: <a href="https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#box" target="_blank" rel="noopener">Box</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#row" target="_blank" rel="noopener">Row</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#column" target="_blank" rel="noopener">Column</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/text/package-summary#text" target="_blank" rel="noopener">Text</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/package-summary#image" target="_blank" rel="noopener">Image</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#spacer" target="_blank" rel="noopener">Spacer</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/curved/package-summary#curvedrow" target="_blank" rel="noopener">CurvedRow</a>, <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/curved/CurvedRowScope#curvedtext" target="_blank" rel="noopener">CurvedText</a>.
  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier.html" target="_blank" rel="noopener">GlanceModifier</a> – Plays the same role as androidx.compose.ui.Modifier but for the Glance composables.
  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/appwidget/action/package-summary#actionstartactivity" target="_blank" rel="noopener">actionStartActivity</a> – Starts an Activity from a user interaction.
  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimelineMode.SingleEntry">TimelineMode.SingleEntry</a> and <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimelineMode.TimeBoundEntries">TimelineMode.TimeBoundEntries</a> – Handle single-entry and time bound timeline entries.
  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/state/GlanceStateDefinition.html" target="_blank" rel="noopener">GlanceStateDefinition</a> – Persistent tile state
  • <a href="https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/package-summary#localtimeinterval" target="_blank" rel="noopener">LocalTimeInterval</a> – Local compositions (similar to <a href="https://developer.android.com/reference/kotlin/androidx/glance/package-summary#localstate" target="_blank" rel="noopener">LocalState</a>)

We are working on bringing even more functionality with default theming, further Android Studio support, and more. Stay tuned for new releases.

Read More  Google I/O 2019 | What's New in Architecture Components

Get started with Glance

For a quick start, take a look at the samples in the AndroidX repository. Glance works with the latest stable Android Studio, although since Glance relies on Compose Runtime, follow the steps on the Jetpack Compose docs to set it up first.

The Alpha version is your opportunity to influence the APIs, so please share your feedback and let us know your experience!

Happy Composing with Glance!

 

 

 

By Anna Bernbaum, Associate Product Manager
Source Android


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • AndroidX
  • Glance
  • Tiles API
  • Wear OS Tile
You May Also Like
aster-cloud-sms-pexels-tim-samuel-6697306
View Post
  • Programming
  • Software

Send SMS texts with Amazon’s SNS simple notification service

  • July 1, 2025
aster-cloud-website-pexels-goumbik-574069
View Post
  • Programming
  • Software

Host a static website on AWS with Amazon S3 and Route 53

  • June 27, 2025
View Post
  • Architecture
  • Data
  • Engineering
  • People
  • Programming
  • Software Engineering
  • Technology
  • Work & Jobs

Predictions: Top 25 Careers Likely In High Demand In The Future

  • June 6, 2023
View Post
  • Programming
  • Software Engineering
  • Technology

Build a Python App to Alert You When Asteroids Are Close to Earth

  • May 22, 2023
View Post
  • Programming

Illuminating Interactions: Visual State In Jetpack Compose

  • May 20, 2023
View Post
  • Computing
  • Data
  • Programming
  • Software
  • Software Engineering

The Top 10 Data Interchange Or Data Exchange Format Used Today

  • May 11, 2023
View Post
  • Gears
  • Mobile
  • Technology

Apple Watch Pride Edition Celebrates The LGBTQ+ Community

  • May 10, 2023
View Post
  • Architecture
  • Programming
  • Public Cloud

From Receipts To Riches: Save Money W/ Google Cloud & Supermarket Bills – Part 1

  • May 8, 2023

Stay Connected!
LATEST
  • 1
    Expectations vs. Reality: The AI We Thought We’d Have in 10 Years
    • June 19, 2026
  • digital-nomad-freelancer-worker-2151205464 2
    One paperwork problem – Get your Digital Nomad Visa employment documents fast from UK, EU or Singapore
    • June 16, 2026
  • 3
    Samsung Art Store Brings Art Basel to Homes Worldwide With New Curated Collection
    • June 15, 2026
  • 4
    You Do Not Need to Invest in the IPO of SpaceX, Anthropic, and OpenAI
    • June 10, 2026
  • 5
    The consequences of relying on AI for accurate news
    • June 10, 2026
  • 6
    Connecting AI agents with unstructured data using Google Cloud Storage MCP Servers
    • June 10, 2026
  • 7
    WWDC26: Apple unveils next generation of Apple Intelligence, Siri AI, powerful parental controls, and an expansive set of software improvements
    • June 8, 2026
  • 8
    IBM and Google Cloud Announce Strategic Partnership to Scale AI with Human Expertise and AI‑Powered Delivery
    • June 4, 2026
  • Data center 9
    Data Sovereignty in Spain. It’s Not Just About the Law, It’s About Efficiency
    • June 3, 2026
  • 10
    Ink vs Pixels. What you miss versus what you are actually missing.
    • June 1, 2026
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    Banks race to patch new cyber vulnerabilities, and other cybersecurity news
    • May 25, 2026
  • pope-leo-xiv-cq5dam-1500.844 2
    Pope Leo XIV to Publish First Encyclical on Artificial Intelligence and Human Dignity on 25 May
    • May 22, 2026
  • 3
    Portfolio to Clients, and is Strengthened by Ongoing Project Glasswing Work
    • May 20, 2026
  • reMarkable Paper Pure 4
    Everything The reMarkable Paper Pure Actually Does
    • May 14, 2026
  • 5
    Scaling cloud and AI: Microsoft Azure’s commitment to Europe’s digital future
    • May 11, 2026
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.