宁可枝头抱香死,何曾吹落北风中。这篇文章主要讲述Draw your Next App Idea with Ink to Code相关的知识,希望能为你提供帮助。
Imagine that you’ve just been struck by inspiration for your next great app. You might start by jotting some notes and sketching out screens. If you’re thinking about reaching for a sketchbook, a whiteboard, or even the back of a napkin, think about reaching for your computer and installing
Ink to Code
instead.
Ink to Code, a Microsoft Garage project, is the digital version of the back of a napkin for your app ideas. A nimble Windows 10 app, it launches in seconds and provides a quick canvas for you to sketch out screens with your stylus. Let’s give it a try!
Getting StartedThe first thing you’ll want to do is
install
Ink to Code
from the Microsoft Store. Upon launching it, you’ll be greeted by its minimal user interface and large drawing area. To get some guidance on what to draw, click the
Guide
button in the toolbar. This shows you the different design elements that
Ink to Code
recognizes:
文章图片
Drawing Your AppLet’s pretend you’re inspired to make the next great tip calculator. This video illustrates how you might draw it in Ink to Code:
Video Player
As you draw each design element, you’ll notice that Ink to Code converts the ink strokes into recognized components. Tapping on each of these items displays a menu that allows you to delete them, or if they were misrecognized, convert them into different components. You’ll also notice that tapping the second button in the left toolbar switches into constraint mode, where you can draw constraint lines that can be used to align other elements.
How does this magic work? Internally, Ink to Code uses the powerful Windows Ink platform and some of its own heuristics to recognize common design elements in your app sketches and then convert them into UWP XAML or android layout XML that can be loaded directly into Visual Studio.
Exporting to Visual StudioInk to Code is great for quickly sketching the broad strokes of your app idea, but to start refining it into a prototype, you’ll want to export your drawings to Visual Studio. For this exercise, we’ll build a Xamarin.Android app:
- Click the
Export
button in the
Ink to Code
toolbar and choose
Android
from the menu. Then choose a temporary directory in which to export the layout XML file.
文章图片
- Open Visual Studio 2017 and create a new Blank Android App project. If you cannot find the project template, ensure that you have Xamarin installed. You can also use Visual Studio for Mac and ensure Android is selected during installation.
- Find
Main.axml
in your Android project under the pathResources\layout
. Replace it with the file you exported in the first step. - Ink to Code
uses
ConstraintLayout
in its exported Android XML, so you’ll need to add the Android.Support.Constraint.Layout NuGet package to your project. - Click Run, and you should see the screen you sketched launch in an Android emulator as real, interactive Android widgets!
Main.axml
file and the Xamarin Android Designer will open:【Draw your Next App Idea with Ink to Code】
文章图片
推荐阅读
- 安装Android Studio
- iPad Pro 10.5+Apple Pencil之专注文献阅读与笔记效率的App综述
- [android] - 解决Error:(16, 0) Minimum supported Gradle version is 3.3. Current version is 2.14.1
- Fix-Mapped Addresses
- Dynamic DMA mapping Guide
- APP功能测试
- Linux内存初始化identity mapping和kernel image mapping
- Win8系统怎样固定开始屏幕磁贴?win8防范移动开始屏幕磁贴的办法
- win8纯净版IE浏览器打开不了.mgt文件怎样办?win8打开.mgt文件的办法