axure rp 创建弹框

Axure is a well-known prototyping tool with a lot of history, it has been around for years. You can create almost any kind of prototypes from simple ones to more complex ones with variables and logic without writing a single line of code (well, when dealing with the complexity you will need to write some expressions).

Axure是著名的原型制作工具,已有很长的历史了,已经存在了很多年。 您可以创建几乎所有类型的原型,从简单的原型到具有变量和逻辑的更复杂的原型,而无需编写任何代码(嗯,当处理复杂性时,您将需要编写一些表达式)。

先决条件 (Prerequisites)

First, you need to have Axure installed, if you don’t have it then simply head over axure.com and download the latest (trial) version.

首先,您需要安装Axure ,如果没有,请直接访问axure.com并下载最新(试用)版本。

Axure is available for Windows and Mac, so choose the appropriate version to download.

Axure可用于Windows和Mac,因此请选择适当的版本进行下载。

If you are a little bit familiar with Axure (even with older versions) you know about widgets, interactions and cases then you are on the right track, if not, you should still be able to follow the steps in this tutorial.

如果您对Axure(甚至是较旧的版本)有点了解,那么您会了解小部件,交互和用例,那么您就走对了 ,否则,您仍然可以按照本教程中的步骤进行操作。

我们将创造什么 (What we will create)

In this tutorial, we will see how we can put together a simple switch (a very well known input control pattern) used in mobile or desktop UI. The important part to this component is the interaction (the on/off toggle interaction).

在本教程中,我们将看到如何将用于移动或桌面UI的简单开关 (众所周知的输入控制模式)组合在一起。 该组件的重要部分是交互(打开/关闭切换交互)。

If you want to learn more about this control type you can take a look at the Apple HIG here: https://developer.apple.com/design/human-interface-guidelines/ios/controls/switches/

如果您想了解有关此控件类型的更多信息,可以在这里查看Apple HIG: https : //developer.apple.com/design/human-interface-guidelines/ios/controls/switches/

To make everything work(on the interaction part), we will use a little bit of logic to respond to the click(or tap) event in order to toggle the switch (but we will not gonna use variables for this).

为了使一切正常(在交互部分上),我们将使用一些逻辑来响应click(或tap)事件,以切换开关(但我们不会为此使用变量)。

The reason for not using a variable to handle the toggle state is because we want this component to be self contained (without dependencies) to be easily reused across projects.

不使用变量来处理切换状态的原因是因为我们希望该组件是自包含的(没有依赖项),以便可以在项目中轻松重用。

分步说明 (Step by step instructions)

This tutorial is quite simple and it has only 2 steps.

本教程非常简单,只有两个步骤。

步骤1 —建立必要的形状 (Step 1 — Building the necessary shapes)

First things first. Let’s create the basic shapes by dragging 1 rectangle and 1 ellipse on the canvas area. The rectangle will be the background (so we can also rename it to background) and the ellipse will be the knob (also rename it to knob).

首先是第一件事。 让我们通过在画布区域上拖动1个矩形和1个椭圆来创建基本形状。 矩形将是背景 (因此我们也可以将其重命名为背景),而椭圆将是旋钮 (也将其重命名为旋钮)。

For these to shape I’ve used the following settings (see below) and at the end I’ve grouped them (and renamed the group to switch).

为了使它们成形,我使用了以下设置(请参见下文),最后将它们分组(并重命名了要切换的组)。

If you don’t have too much experience with Axure shape widgets then you can read more about them here: https://docs.axure.com/axure-rp/reference/shapes/.

如果您对Axure形状小部件没有太多经验,则可以在这里阅读有关它们的更多信息: https : //docs.axure.com/axure-rp/reference/shapes/ 。

Shape properties:

形状属性:

Knob:

旋钮

  • Width/Height: 27宽/高:27
  • Fill: #FFFFFF填写:#FFFFFF
  • Shadow: fill: #000000, opacity: 6%, x: 0, y: 3阴影:填充:#000000,不透明度:6%,x:0,y:3

Background:

背景

  • Width: 51宽:51
  • Height: 31高度:31
  • Fill: #D7D7D7填写:#D7D7D7

For the background shape I’ve also set up 2 style effects (selected and disabled) using the Interactions tab.

对于背景形状,我还使用“ 交互”选项卡设置了2种样式效果( 选中禁用 )。

第2步-添加互动 (Step 2 — Adding interactivity)

Now, that we have done the basic setup and have all the shapes we can move to the interactivity.

现在,我们已经完成了基本设置,并拥有了可以移至交互性的所有形状。

We will add the interactivity on the group object (this way we can respond to the group events) on the click(tap) event.

我们将在click(tap)事件上将交互性添加到组对象上(通过这种方式,我们可以响应组事件)。

See the image below (with the Interaction Editor) where I’ve added the interactivity (don’t worry if it looks complex, I’ll explain what is happening).

参见下图(使用“交互编辑器”),其中添加了交互性(不要担心它看起来是否复杂,我将解释发生了什么)。

So let’s break this down.

因此,让我们分解一下。

I’ve added an interaction on the Click(tap) trigger (so this is the click/tap event). To add an interaction make sure that you have the switch group selected and on the Interaction panel click on the New Interaction button and select the Click or Tap trigger.

我在Click(tap)触发器上添加了一个交互(因此这是click / tap事件)。 要添加交互,请确保已选择开关组,然后在“ 交互”面板上单击“ 新建交互”按钮,然后选择“ 单击”或“点击”触发器。

If you are not really familiar with events, actions, cases you can read more about them on the Axure website https://docs.axure.com/axure-rp/reference/events-cases-actions/.

如果您不太熟悉事件,操作和案例,则可以在Axure网站https://docs.axure.com/axure-rp/reference/events-cases-actions/上阅读有关它们的更多信息。

Now, as you can see on the image, we have 2 cases named SwitchOn and SwitchOff and each of these steps have some actions.

现在,你可以在图像上看到的,我们有2箱子命名合闸合闸关机和每个步骤都有一些动作。

1.打开机箱。 (1. SwitchOn case.)

To add a case just click on the Enable Cases button for the Click(Tap) trigger in the Interaction panel. Clicking on the Enable Cases will open the Condition Builder dialog, this is where we can build our condition and run a set of actions if this condition is evaluated as true.

要添加案例,只需在“交互”面板中单击Click(Tap)触发器的“ 启用案例”按钮。 单击“ 启用案例”将打开“ 条件构建器”对话框,在此条件下,如果此条件被评估为true ,我们可以在其中构建条件并运行一组操作。

See the image below with the set up for the condition.

请参阅下面的图片,其中包含针对该条件的设置。

As you can see we will check if the background selected value is false. If this happens it will run a series of actions (see my previous image).

如您所见,我们将检查背景选定值是否为false 。 如果发生这种情况,它将执行一系列操作(请参阅我的上一张图像)。

Here are the actions:

操作如下:

  1. Action Move (basically we will move the knob on the horizontal axis from left to right by 20):

    动作移动 (基本上,我们将水平轴上的旋钮从左向右移动20):

  • Target: knob目标:旋钮
  • Move: by x: 20, y:0移动:x:20,y:0
  • Animate: ease in cubic: 200ms动画:立体感缓解:200ms

2. Action Set Selected/Checked (we set the background selected value to true):

2. Action Set Selected / Checked ( 将选中/选中的动作设置背景 (我们将背景选择值设置为true ):

  • Target: background目标:背景
  • Set: value设定值
  • To: true至:正确

This is it, let’s now move to the SwitchOff case.

就是这样,让我们​​现在转到“关闭”案例。

2. 关机情况 (2. SwitchOff case)

The SwitchOff case will be quite similar with the SwitchOn case with 2 small changes.

关机的情况下将与合闸合闸情况下用2个小的变化非常相似。

One change will be on the condition, see the image below.

条件将发生变化,请参见下图。

As you can see the condition is the same, except we check if it is true.

如您所见,条件相同,只是我们检查它是否为true

So if the condition is met then we will execute the same steps as on our previous condition with small changes.

因此,如果满足条件,则我们将执行与先前条件相同的步骤,并进行少量更改。

Here are the actions:

操作如下:

  1. Action Move (this is where we move the knob from left to right with a negative value by -20):

    动作移动(这是我们将旋钮从左向右移动负值-20的位置):

  • Target: knob目标:旋钮
  • Move: by x: -20, y:0

    移动:x: -20 ,y:0

  • Animate: ease in cubic: 200ms动画:立体感缓解:200ms

2. Action Set Selected/Checked (we set the background selected value to false):

2. Action Set Selected / Checked(设置选定/选中操作)(我们将选定的背景值设置为false ):

  • Target: background目标:背景
  • Set: value设定值
  • To: false

    收件人:

This is it.

就是这个。

Creating a switch UI component in Axure is relatively easy with just one simple interaction in a group. Now, we can enjoy our new switch component in future projects. You can also download the Axure file from here: https://hi.switchy.io/1O4f

在一个组中只有一个简单的交互,在Axure中创建一个Switch UI组件相对容易。 现在,我们可以在将来的项目中使用我们的新开关组件。 您也可以从此处下载Axure文件: https ://hi.switchy.io/1O4f

翻译自: https://uxdesign.cc/how-to-create-a-switch-in-axure-rp-9-f42060d99b1a

axure rp 创建弹框


http://www.taodudu.cc/news/show-893936.html

相关文章:

  • 界面设计语言_使用任何语言设计界面的提示
  • hp-ux锁定用户密码_UX设计101:提出正确的问题-规划和促进用户访谈
  • mac基本操作技巧_6个基本设计技巧
  • stack smash_扶手椅VGUX:Super Smash Bros.Ultimate
  • 全库模式 用户模式 表模式_暗模式,亮模式和用户的故事
  • ios 刷新遮罩遮罩_在Adobe XD中进行遮罩的3种方法
  • 图像标注技巧_保护互联网上图像的一个简单技巧
  • ar软件测试工具_如何为用户测试制作快速的AR原型
  • 未来ui设计的发展趋势_2025年的未来UI趋势?
  • CSSyphus:烦躁不安的烦恼设计指南。
  • 类从未使用_如果您从未依赖在线销售,如何优化您的网站
  • 程序详细设计之代码编写规范_我在不编写任何代码的情况下建立了一个设计策划网站
  • 图书漂流系统的设计和研究_研究在设计系统中的作用
  • 西里尔字符_如何设计西里尔字母Њ(Nje),Љ(Lje),Ћ(Tshe)和Ђ(Dje)
  • 最新ui设计趋势_10个最新且有希望的UI设计趋势
  • 404 错误页面_如何设计404错误页面,以使用户留在您的网站上
  • 公网对讲机修改对讲机程序_更少的对讲机,对讲机-更多专心,专心
  • ui设计基础_我不知道的UI设计的9个重要基础
  • vue路由匹配实现包容性_包容性设计:面向老年用户的数字平等
  • 见证开户_见证中的发现
  • facebook有哪些信息_关于Facebook表情表情符号的所有信息
  • react动画库_React 2020动画库
  • 线框模型_进行计划之前:线框和模型
  • 工作经验教训_在设计工作五年后获得的经验教训
  • 中文排版规则_非设计师的5条排版规则
  • ux设计_声音建议:设计UX声音的快速指南
  • sans serif_Sans和Serif相遇可爱
  • sql 避免除0错误_设计简历时避免这3个常见的UX错误
  • 如何编写数据库可视化界面_编写用于数据可视化的替代文本
  • reloaddata 跳动_纸跳动像素

axure rp 创建弹框_如何在Axure RP 9中创建交换机相关推荐

  1. python如何创建工程预设_如何在sublime3项目设置中设置python模块的搜索路径?ImportError: No module named *的解决办法...

    问题:之前使用pycharm,用的挺溜,但是电脑配置实在不争气,pycharm启动久了,耗去大量内存,导致运行起来越来越慢,于是转向使用sublime text. 把项目从pycharm切换到subl ...

  2. 用java编写一个记分_如何在Android for Java中创建带有textview,2个变量和一个按钮的记分板...

    我知道这是一个简单的问题,但我不会去学习java,只是在线学习. 如何使用初始值为0的textview,然后每按一次按钮,它就会将25分指向记分板. 起初我希望button按下在42-57之间添加一个 ...

  3. 非静默授权没有弹出弹框_网易考拉Android统一弹框

    作者:钱成杰 链接:https://blog.csdn.net/jessicaiu/article/details/82739334 背景 在快速开发的背景下,经历了n个版本后的考拉Android A ...

  4. html 下拉框设置名称,html下拉菜单怎么做?高手教你如何在HTML和CSS中创建下拉菜单...

    html下拉菜单怎么做?html下拉菜单代码是什么?这些对于刚刚入门的新手,还不是很明白,下面高手教你如何在HTML和CSS中创建下拉菜单? 很多人都会遇到将鼠标悬停在导航上,会出现下拉菜单; 一般出 ...

  5. power bi可视化表_在Power BI报表视图中创建可视化

    power bi可视化表 The Report View in Power BI can be used to create beautiful visualizations in Power BI. ...

  6. 如何在 GitHub 的项目中创建一个分支呢?

    https://www.cnblogs.com/plBlog/p/11573234.html https://www.cnblogs.com/wulibo/p/10608471.html https: ...

  7. 如何在Ubuntu 16.04中创建GIF动图

    大 家经常在新浪微薄.QQ.facebook.twitter 中看到有趣的 GIF 动图吧,GIF 文件比视频小.比静态 JPG 图片形像生动,非常适于互联网上的搞笑帖子.产品展示和功能步骤演示,所以 ...

  8. 如何在Power BI Desktop中创建词云生成器

    In this article, we'll look at how to create a Word cloud generator in Power BI Desktop, including i ...

  9. windows 虚拟磁盘的软链接_如何在Windows的操作系统下创建VHD虚拟磁盘

    VHD文件对很多人来说应该不会陌生,从早期微软使用的虚拟机Virtual PC的硬盘格式文件就是VHD,从Windows 7开始,微软就将VHD植入到了Windows的操作系统当中.可以通过系统中建立 ...

最新文章

  1. Storm介绍及安装部署
  2. django的哲学很耐人回味
  3. 程序员面试100题之十五:数组分割
  4. 为什么你总感觉情绪低落心情颓废?
  5. python 绘制并列条形图并添加数据标签
  6. 拓端tecdat|R语言实现k-means聚类优化的分层抽样(Stratified Sampling)分析各市镇的人口
  7. CSDN重推软件下载频道 软件发布又有新阵地
  8. 使用linux批量引物设计,【分享】超实用的引物设计操作,一看就学会
  9. c 怎么更改计算机的默认打印机,C#Winfrom系统打印机调用/设置默认打印机
  10. 电磁学——电磁场与电磁波:麦克斯韦方程组
  11. 视觉里程计 特征点法
  12. 第三方平台可以通过微信公众平台素材管理接口实现同步了
  13. c语言复杂万年历带农历,c语言实现农历万年历(48页)-原创力文档
  14. 计算机毕业设计Java超市货品进销存系统后台(源码+系统+mysql数据库+lw文档)
  15. 二维码扫码登录的原理
  16. 显示屏服务器出错,电脑显示屏卡顿和出现错误提示怎么办
  17. Delaunay三角剖分
  18. C语言中的与、或、非
  19. 体验极速——在旭日X3派上使用双频1300M USB无线网卡
  20. iphone的ibooks如何导入pdf?

热门文章

  1. 二阶传递函数的推导及几种求解方法的比较
  2. C++11系列学习之六-----for
  3. java 循环标记_深入浅析Java 循环中标签的作用
  4. Jackson学习笔记
  5. ajax post 请求415\ 400 错误
  6. java多线程之hashmap concurrenthashmap的状态同步
  7. 程序猿是如何解决SQLServer占CPU100%的
  8. ios即时通讯客户端开发之-mac上安装MySQL
  9. How to: Display a Gradient Fill
  10. [记忆碎片的磁盘整理]老妈