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

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)

A switch component in Axure

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).

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

Details configuration for the shapes

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种样式效果( 选中禁用 )。

Selected and Disabled styles

第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).

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

Switch logic (interaction builder)

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.

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

SwitchOn case (Condition Builder)

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.

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

SwitchOff case (Condition Builder)

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.mzph.cn/news/274462.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

用 Vue3 手撕了个企业级项目,真香!

最近几年,随着短视频、小程序、直播带货的火爆,前端开发工程师越来越热门,薪资待遇也快接近后端开发工程师了,前端领域进化为内卷重灾区。然而伴随着 Vue 3.0 的发布,前端技术也迎来了一次大革新,像是字节跳…

界面设计语言_使用任何语言设计界面的提示

界面设计语言Designing for international audiences is challenging. I spent most of my career in Australia designing exclusively in English. Australian English is ‘unique’ in the sense that we are really into slang, puns, idioms.为国际观众设计是具有挑战性的…

托管代码和非托管代码

托管代码和非托管代码有什么区别呢?从字面上理解,只是一个是被托管的,另一个是没有被托管的。但是,被托管的托管代码是被谁管着呢?让我们先来看看它们的定义。 托管代码:由公共语言运行库环境(而…

如何实现前端新手引导功能?

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 lxchuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

hp-ux锁定用户密码_UX设计101:提出正确的问题-规划和促进用户访谈

hp-ux锁定用户密码这是什么? (What is this?) This session is part of a learning curriculum that I designed to incrementally skill up and empower a team of Designers and Researchers whose skillset and ways of working needed to evolve to keep up wi…

我与掘金合作出了源码共读第一期,首发超400人报名,快来参与~

大家好,我是若川。最近有不少新朋友关注我。对我不是很了解的,或许可以读我的2021年度总结。诚邀各位新老读者朋友参加源码共读活动。同时我和掘金合作,共同出了源码共读第一期,11月25日——12月25日,奖品丰厚。我是前…

mac基本操作技巧_6个基本设计技巧

mac基本操作技巧“In everything you do, refine your skills and knowledge about fundamental concepts and simple cases. Once is never enough. As you revisit fundamentals, you will find new insights. It may appear that returning to basics is a step backward an…

如何突破技术瓶颈(适合P6以下)

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 lxchuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

stack smash_扶手椅VGUX:Super Smash Bros.Ultimate

stack smashEasily far the most exciting news out of Super Smash Bros. Ultimate’s announcement was that every single character would be returning to the game.asily迄今为止最令人兴奋的消息了任天堂明星大乱斗最终宣布的是, 每一个字符会被返回到游戏中…

《Two Dozen Short Lessons in Haskell》学习(十)- Private Definitions — the where-clause

《Two Dozen Short Lessons in Haskell》(Copyright © 1995, 1996, 1997 by Rex Page,有人翻译为Haskell二十四学时教程,该书如果不用于赢利,可以任意发布,但需要保留他们的copyright)这本书是学习 Ha…

我和掘金合作的源码共读小册报名快1000人了~

众所周知,我和掘金合作出了源码共读第一期。我是前端领读员。现在报名快1000人了~奖品丰厚。也有一些小伙伴已经写了好几期笔记了~但相对1000人写的还是太少。什么?你不知道?那也很正常,毕竟我的公众号常读人数比较少。大部分人都…

【短语学习】盈余量分析(earned value analysis)

作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ 各种形式的盈余量分析是衡量执行时最常用的方法。它把范围、成本和进度等度量标准结合在一起以帮助项目管理小组评估项目执行。对每项活动而言,盈余量分析包括计算三个主要数值:…

配音剧本_网络的各个阶段:剧本如何传达更好的UX

配音剧本让我们将焦点放在使用剧本技巧提升显微镜上。 (Let’s put the spotlight on elevating microcopy with playwriting techniques.) “Anything you put in a play — any speech — has got to do one of two things: either define character or push the action of t…

极致编译速度,一文搞定webpack5升级

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 lxchuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

全库模式 用户模式 表模式_暗模式,亮模式和用户的故事

全库模式 用户模式 表模式I have been working on designing a UI for an app that has individuals over the age of 60 as its main audience. At some point, I found my design more appealing in dark mode. As a UX designer, I know that my opinions and preferences d…

Rollup 与 Webpack 的 Tree-shaking

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 lxchuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

聚类与分类的主要区别在于:_经验在于细节:分析流服务的用户体验

聚类与分类的主要区别在于:看不见的差异 (The Invisible Difference) When app markets mature the overlap in features and designs grows closer as they catch up and copy each other. The more similar the apps are to one another, the more important the …

asp.net 动态创建TextBox控件 如何加载状态信息

接着上文Asp.net TextBox的TextChanged事件你真的清楚吗? 这里我们来说说状态数据时如何加载的。虽然在Control中有调用状态转存的方法,但是这里有一个判断条件 if (_controlState > ControlState.ViewStateLoaded) 一般的get请求这里的条件是不满足…

从零实现一个迷你 Webpack

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 lxchuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

ios 刷新遮罩遮罩_在Adobe XD中进行遮罩的3种方法

ios 刷新遮罩遮罩Are you new to Adobe XD? Or maybe you’re just stuck on how to create a simple mask? Here are 3 quick tips for how to mask your photos and designs in Adobe XD.您是Adobe XD的新手吗? 或者,也许您只是停留在如何创建简单的…