1
如何添加选择选项来观看选择菜单。安卓手表选择菜单选项?
某些手表(例如InstaWeather)在选择缩略图下方显示一个齿轮,然后单击齿轮提供的设置。
不幸的是,我找不到InstaWeather手表的源代码。
但它必须是可能的。
如何添加选择选项来观看选择菜单。安卓手表选择菜单选项?
某些手表(例如InstaWeather)在选择缩略图下方显示一个齿轮,然后单击齿轮提供的设置。
不幸的是,我找不到InstaWeather手表的源代码。
但它必须是可能的。
每Providing Configuration Activities training:
关注面临着支持的配置参数可以让用户定制使用的穿戴式应用的活动,在手持式应用程序,或两者的活性手表的脸。用户可以在可穿戴设备上启动可穿戴配置活动,并且可以从Android Wear配套应用程序启动配对活动。
示例代码包括如何添加一个可穿戴的配置活动:
<service
android:name=".DigitalWatchFaceService" ... />
<!-- companion configuration activity -->
<meta-data
android:name=
"com.google.android.wearable.watchface.companionConfigurationAction"
android:value=
"com.example.android.wearable.watchface.CONFIG_DIGITAL" />
<!-- wearable configuration activity -->
<meta-data
android:name=
"com.google.android.wearable.watchface.wearableConfigurationAction"
android:value=
"com.example.android.wearable.watchface.CONFIG_DIGITAL" />
...
</service>
谢谢。我会尽力实现这一点,看看它是否做我想做的事情。这可能需要一些时间,因为我最缺乏经验。 – kjl