I have a quick question regarding the differences ...
# compose-wear
y
I have a quick question regarding the differences between Accompanist and Horologist. The Accompanist is designed for Android in mind and Horologist is for Wear OS? They both are based on compose right? I was looking for Pager Layouts in Horologist, but it is still only available in Accompanist.
j
Horologist is aimed at Wear OS (which is a super set of Android). Horologist adds things that are not in Compose/Compose for Wear OS and Accompanist
We will not be adding a pager to Horologist as there is one in Accompanist
Also we expect pager to migrate to from Accompanist to Core Compose at some point in the future
👍 2
y
Horologist in fact has a PagerScreen component that combines Accompanist HorizontalPager, Wear Compose PageIndicator and just barely enough lifecycle to focus the right screen if you want Bezel scrolling.
But the Basic Accompanist Pager is well designed and implemented. It makes sense to use
Ahhh, and the horologist class also implements a shape so you don't see surprising corners when you scroll between pages.
y
@yschimke thanks for mention the PagerScreen in Horologist. I also see that from the git repo. Can you point me to an example how I can use the PagerScreen? I wasn’t able to find any sample code from https://github.com/google/horologist/blob/main/sample/src/main/java/com/google/android/horologist/sample/MainActivity.kt
oh..I found the navsample folder in horologist, need to make a new config to start the
com.google.android.horologist.navsample.NavActivity
to see the effects 🙂 Thanks for the great works
y
Damn, there should be a launcher for that. I'll add one if it's missing. Sorry I missed your earlier question.