Android 的 DIY 小部件带有一点氛围编码的乐趣
Android’s DIY widgets are a bit of vibe-coding fun
除了处理我的日历之外,我还想让人工智能做一件事:告诉我我是否会错过公共汽车。
我需要的是一个小部件。它需要告诉我我家附近公交车站的实时到达情况。在手机屏幕上点击打开正确的应用程序并选择我的车站会让我的速度减慢,足以错过公交车。我需要一目了然的信息,我希望 Android 的 vivi-coded widget 功能可以帮助我。令我失望的是,事实并非如此,但我仍然在烹饪其他小部件时度过了愉快的时光。
谷歌在春季 I/O 大会上宣布能够使用人工智能创建自定义小部件。它被称为“创建我的小部件”,是 Android 的“Gemini Intelligence”功能套件的一部分。它处于测试阶段,本月初才开始在 Pixel 手机上推出。我很兴奋。此功能不仅引发了诸如“什么是应用程序?”之类的诱人问题。和“应用程序在哪里?” ——我们在 The Verge 网络公司赖以生存的东西——它有可能帮助我让我的主屏幕变得荒谬。
我在 Pixel 11 Pro 上启动了它,并制作了我的前几个小部件,其中一个每小时都会显示《侏罗纪公园》中的不同台词——自然是原版电影,而不是任何续集。制作花了大约 20 秒,一切顺利。点击小部件会在 r/MovieQuotes 中打开一个线程,因此显然在幕后并没有太多软件魔法。但在我的主屏幕上读到“那是一大堆狗屎”这句话给我带来真正的快乐吗?确实如此。
我还制作了一个小部件,只要下雨,它就会显示“啧啧,看起来像下雨了”。这很愚蠢,除了让我快乐之外没有任何作用。我想不出当没有下雨时它应该说什么,所以它只是说“现在没有下雨”。但我住在西雅图,所以我会从这个小部件中获得很多好处。
创建小部件界面提出了一些想法和类别,倾向于更实际的用途,例如习惯跟踪器和食谱灵感。好吧,我会尝试一些正常的事情,我想。我正在努力改善我的日常步行心理健康状况,所以我让它制作了一个小部件来记录一周的步行量。我希望有一些视觉效果能够欺骗我的小猴子大脑,让我继续保持连胜。相反,我得到了一些简单标记为“Log Walk”的东西,当我点击它时,它会触发 Gemini 将散步添加到我的日历中。至少双子座建议采取额外的步骤,创建一个清单,当我完成我的小步行时,我可以在其中标记出一周中的几天。
我花了一分钟才明白它的意思,但许多小部件对于 Gemini 来说基本上都是小快捷方式。你点击其中一个,它就会在你的主屏幕上调出 Gemini 界面,思考一会儿,然后出现你想要的任何内容。您可以制作的小部件类型似乎也适合一些定义良好的模板。您可以创建一个小部件来显示日历上的假期或特定事件的倒计时。您可以显示您最喜欢的运动队的最近得分和即将到来的比赛时间。对于任何更开放的事情,您的小部件将从 Google 搜索结果中提取(例如,每天建议不同的三种成分鸡尾酒配方)或提示 Gemini 为您找出答案。我希望迷你应用程序可以根据我的喜好进行定制,但这更像是一种一刀切的功能。公平,我想。
这就是为什么我的公交车时刻表小部件并没有真正发挥作用。我要求提供实时到达的列表;它给了我一个显示“巴士到达”的图块,并使用 Gemini 搜索我指定的车站的到达时间。双子座在某些事情上有帮助,但在这件事上却毫无用处;它给了我一个冗长的答复,告诉我公交车的运行频率以及我预计公交车根据时间表何时到达。不是我想要的。从好的方面来说,我的《侏罗纪公园》引言小部件对我来说有一些至理名言:“生命,呃,总能找到出路。”现在就这样了。
原文(English)
Aside from dealing with my calendar, there’s one thing I want AI to do: tell me if I’m about to miss the bus.
What I need is a widget. It needs to tell me real-time arrivals for the bus stop near my house. Tapping around on my phone screen to open the right app and select my stop will slow me down enough to miss a bus. I need glanceable information, and I hoped that Android’s vibe-coded widget feature could help me out here. It hasn’t, to my disappointment, but I still had a good time cooking up other widgets.
Google announced the ability to create custom widgets using AI back at I/O in the spring. It’s called Create My Widget, and it’s part of Android’s suite of “Gemini Intelligence” features. It’s in beta, and only just started rolling out to Pixel phones earlier this month. I was hyped. Not only does this feature raise tantalizing questions like “What is an app?” and “Where does the app live?” — stuff we live for here at The Verge dot com — it has potential to help me make my home screen ridiculous.
I fired it up on a Pixel 11 Pro and cooked up my first few widgets, including one that shows a different quote from Jurassic Park every hour — the original film, not any of the sequels, naturally. It took about 20 seconds to make, and it rules. Tapping the widget opens a thread in r/MovieQuotes, so there’s not much software magic going on under the hood, evidently. But did it bring me real joy to read the words “That is one big pile of shit,” on my home screen? It did.
I also made a widget that will display the words “Tut tut, looks like rain” whenever it’s raining. This is silly, and it accomplishes nothing except making me happy. I couldn’t think of anything clever it should say when there’s no rain, so it just says “No rain right now” otherwise. But I live in Seattle, so I’ll get a lot of mileage out of this widget.
The create-a-widget interface suggests a few ideas and categories, leaning on more practical uses like habit trackers and recipe inspiration. Fine, I’ll try something normal, I thought. I’m trying to get better about my daily mental health walk, so I had it make a widget for logging a week’s worth of walks. I was hoping for something visual that would trick my little monkey brain into keeping a streak going. Instead, I got something simply labeled “Log Walk” that triggers Gemini to add a walk to my calendar when I tap it. At least Gemini suggested the extra step of creating a checklist where I could mark off the days of the week as I completed my little walk.
It took me a minute to get my head around it, but many of the widgets are basically little prompt shortcuts for Gemini. You tap one, it pulls up the Gemini interface on your home screen, thinks for a while, then comes up with whatever you were asking for. The kinds of widgets you can make also seem to fit into some well-defined templates. You can create a widget that displays a countdown to a holiday or certain event on your calendar. You can show a recent score and upcoming game time for your favorite sports team. For anything more open ended, your widget will pull from Google search results (suggest a different three-ingredient cocktail recipe every day, for example) or prompt Gemini to figure it out for you. I was hoping for mini apps I could customize to my liking, but this is more of a one-size-fits-all feature. Fair, I guess.
That’s why my bus schedule widget didn’t really work out. I asked for a list of real-time arrivals; it gave me a tile that reads “Bus Arrivals” and uses Gemini to search for arrival times for the stop I specified. Gemini is helpful for some things but useless for this; it gives me a wordy response about how often the bus runs and when I might expect it to arrive based on the schedule. Not what I had in mind. On the bright side, my Jurassic Park quote widget had some words of wisdom for me: “Life, uh, finds a way.” That’ll do for now.
本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-11-27 22:00
阅读原文 ↗https://www.theverge.com/tech/1041801/android-intelligence-c