axure9控件树 rp_如何在Axure RP 9中创建分段控件

axure9控件树 rp

Segmented controls are not very easy to tackle in prototyping. This is especially true when you have more than 2 segments. This article will show you how to create a segmented control with 3 segments in Axure in just 2 simple steps. The technique can be applied for any number of segments.

在原型设计中,分段控件并不是很容易解决。 当您具有两个以上的细分时,尤其如此。 本文将向您展示如何通过两个简单的步骤在Axure中创建具有3个细分的细分控件。 该技术可以应用于任何数量的段。

Ready? Let’s begin!

准备? 让我们开始!

先决条件 (Prerequisites)

To follow along, you’ll need to be a little bit familiar with Axure and have some understanding about widgets, interactions, local variables and expressions.

要继续学习,您需要对Axure有所了解,并对小部件,交互,局部变量和表达式有所了解。

Also, if you haven’t done it yet, you can download Axure latest version from Axure Website.

另外,如果您尚未执行此操作,则可以从Axure网站下载最新版本。

您将创造什么 (What you will create)

Axure Segmented Control

You will create a segmented control (a very well known input control pattern) used in mobile or desktop UI. This type of control allows the user to switch to a specific option within a group. 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/segmented-controls/

您将创建在移动或桌面UI中使用的分段控件 (一种众所周知的输入控件模式)。 这种控制类型允许用户切换到组中的特定选项。 如果您想了解有关此控件类型的更多信息,可以在这里查看Apple HIG: https : //developer.apple.com/design/human-interface-guidelines/ios/controls/segmented-controls/

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 change the selected option (but we will not gonna use global variables for this, instead we will take advantage of local variables).

为了使一切正常工作(在交互部分),我们将使用一点逻辑来响应Click或Tap事件,以更改选定的选项(但我们不会为此使用全局变量,而是将局部变量的优势)。

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

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

分步说明 (Step by step instructions)

The level of difficulty is easy to medium. Everything was broken into 2 steps so you can follow along more easily.

难易程度中等。 一切都分为2个步骤,因此您可以更轻松地进行后续操作。

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

In this step we are going to create all the necessary shapes for our segmented control. To see an overview of the shapes and structure take a look at the image below.

在这一步中,我们将为分段控件创建所有必要的形状。 要查看形状和结构的概述,请看下面的图片。

Axure — Segmented Control shapes properties

Basically, we have only one group called “Segmented Control” and inside we have:

基本上,我们只有一个称为“分段控制”的组,内部有:

  • “Options” group — In this group there are all the options for this control, these are named with the “+” prefix to indicate that will hold the interaction (in the next step)

    “选项”组-该组中有此控件的所有选项,这些选项都以“ +”前缀命名,以表示将保持交互(在下一步中)
  • “Selector” — this shape indicates the current selection

    “选择器”-此形状表示当前选择
  • 2 separator shapes (Separator 1, Separator 2) to separate the segments

    2种分隔符形状(分隔符1,分隔符2)用于分隔段
  • “Options background” — this is the gray background that makes the control to feel like one shape

    “选项背景”-这是使控件感觉像一个形状的灰色背景
  • “Control background” — out control background for the component (can be optional)

    “控制背景”-组件的控制背景(可以是可选的)

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/ 。

The “Options” group is actually made of Label Widgets and the way they are laid out is to overlap a little bit the boundaries of the separator shapes. These boundaries are set up in such a way that can be used to determine the left and right limit for each segment.

“选项”组实际上是由标签小部件组成的 ,它们的布局方式是使分隔符形状的边界重叠一点。 这些边界的设置方式可用于确定每个线段的左边界和右边界。

Also, notice that the “Selector” sits under the “Options” group and it has a wider length.

另外,请注意,“选择器”位于“选项”组下,并且长度更大。

See all shapes properties below.

请参阅下面的所有形状属性。

Segmented Control — In depth properties

Shape properties (of course you can adjust these properties to fit your needs):

形状属性(当然,您可以调整这些属性以适合您的需求):

Options (+Option 1/+Option 2/+Option 3):

选项 (+选项1 / +选项2 / +选项3):

  • Width/Height: 115/28

    宽度/高度:115/28
  • Fill: none

    填写:无
  • Shadow: fill: #000000, opacity: 15%, x: 0, y: 3, blur: 8

    阴影:填充:#000000,不透明度:15%,x:0,y:3,模糊:8

Selector:

选择器

  • Width/Height: 117/28

    宽/高:117/28
  • Fill: #FFFFFF

    填写:#FFFFFF
  • Border: 1, fill: #000000, opacity: 4%

    边框:1,填充:#000000,不透明度:4%
  • Corner: 7

    角球:7
  • Shadow: fill: #000000, opacity: 12%, x: 0, y: 3, blur: 8

    阴影:填充:#000000,不透明度:12%,x:0,y:3,模糊:8

Separator (Separator 1/Separator 2):

分隔符 (分隔符1 /分隔符2)

  • Width/Height: 1/16

    宽度/高度:1/16
  • Fill: #8E8E93

    填充:#8E8E93

Options background:

选项背景

  • Width/Height: 343/32

    宽度/高度:343/32
  • Fill: #767680, Opacity: 12%

    填充:#767680,不透明度:12%
  • Corner: 9

    角球:9

Control background:

控制背景

  • Width/Height: 375/44

    宽/高:375/44
  • Fill: #ffffff

    填写:#ffffff

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

The only interaction that you are going to add is on the +Option(1/2/3) widgets on the Click or Tap event. Basically, what you need is to move the “Selector” shape on the horizontal axis to the left bound of the widget that triggered the event.

您要添加的唯一交互是在Click或Tap事件上的+ Option(1/2/3)小部件上。 基本上,您需要将水平轴上的“选择器”形状移动到触发事件的小部件的左边界。

You are going to add this interaction only on one of the +Option widgets (in this case +Option 1) and using the copy/paste function replicate this interaction on the rest of the widgets +Option 2, +Option 3.

您将仅在其中一个+ Option小部件(在本例中为+ Option 1 )上添加此交互,并使用复制/粘贴功能在其余小部件+ Option 2 +3中复制此交互。

As you can see it is really easy to add the interaction to new segments all you need is to copy/paste the existing one.

如您所见,将交互添加到新段中确实很容易,您所需要的只是复制/粘贴现有​​段。

Segmented Control — Interactions properties

To achieve the required interaction (basically to move the “Selector” widget to the appropriate position) you will use some expressions inside one action with the following settings:

为了实现所需的交互(基本上是将“选择器”小部件移动到适当的位置),您将在具有以下设置的一个动作内使用一些表达式

  1. Action Move:

    动作动作

  • Target: Selector

    目标:选择器
  • Move: to

    搬去
  • Move X = [[LVAR1.x]] — this expression give us the new X position

    移动X = [[LVAR1.x]]-此表达式为我们提供了新的X位置

  • Move Y = [[LVAR1.y]] — here we use the local variable y position to maintain the “Selector” at the same Y position

    移动Y = [[LVAR1.y]]-在这里,我们使用局部变量y位置将“选择器”保持在相同的Y位置
  • Animate: ease with cubic, 200ms

    动画效果:立体感轻松200ms
Segmented Control — Local variable in expression

LVAR1 is a local variable and it represents the current widget that triggered the event, in Axure is referred as This widget.

LVAR1是一个局部变量,它代表触发事件的当前窗口小部件,在Axure中称为窗口小部件。

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/上阅读有关它们的更多信息。

Segmented Control — Replicate interactivity to all options

All right now that you have the interaction completed all you need is to copy/paste on the rest of the +Option widgets and that is it.

现在,您已经完成了交互,您需要复制/粘贴其余的+ Option小部件,仅此而已。

Creating a segmented control is relatively easy in Axure if you have the appropriate document structure. Now, you can use your new segmented control in future projects.

如果您具有适当的文档结构,则在Axure中创建分段控件相对容易。 现在,您可以在以后的项目中使用新的分段控件。

You can also download the Axure file from here: https://hi.switchy.io/1SLZ

您也可以从此处下载Axure文件: https ://hi.switchy.io/1SLZ

Image for post
UX Para Minas Pretas (UX For Black Women), a Brazilian organization focused on promoting equity of Black women in the tech industry through initiatives of action, empowerment, and knowledge sharing. Silence against systemic racism is not an option. Build the design community you believe in.UX Para Minas Pretas (UX For Black Women),这是一个巴西组织,致力于通过采取行动,赋权和知识共享的举措来促进科技行业中的黑人女性平等。 对系统性种族主义保持沉默是不可行的。 建立您相信的设计社区。

翻译自: https://uxdesign.cc/how-to-create-a-segmented-control-in-axure-rp-9-100cecd13ab2

axure9控件树 rp

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/275596.shtml

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

相关文章

stack

1. 栈数据结构简单介绍 2. 简单实现代码及stl中stack简单使用 3. 代码下载 1. 栈数据结构简单介绍 栈是这样的一种数据结构,遵循“先进后出”的原则。在stack上定义如下的operations: 1. 判空 2. 入栈push 3. 出栈pop,在栈的不同实现版本中&…

MacOS搭建环境

基础环境 从AppStore下载 有道云笔记微信网易云音乐Chrome浏览器postmanChrome插件云笔记剪报基础命令 mac下别名vi ~/.bash_profile 添加 alias llls -alF alias lals -A alias lls -CF 保存后执行(不能有空格) source ~/.bash_profile复制代码开发环境 PhpStorm 从官网下载Ph…

【送书-小姐姐配音】低代码平台的核心价值与优势

大家好,我是若川。记得点上方听小姐姐配音,识别下方二维码加我微信 ruochuan12,明天(8月8日)晚8点在朋友圈发动态。点赞抽3位小伙伴包邮送《实战低代码》,细则见动态。最近组织了源码共读活动,每…

oracle静默安装集群,静默安装Oracle数据库10g篇

静默安装Oracle数据库10g篇以下是在Linux系统上静默安装Oracle数据库10g的实践过程,主要分为以下两个步骤:Step 1.静默安装Oracle数据库10g软件1. 使用OUI录制响应文件,记录安装过程执行以下命令,然后在OUI中根据提示执…

sketch钢笔工具_设计工具(Sketch,Adobe XD,Figma和InVision Studio)中奇怪的一项功能

sketch钢笔工具When you build a new product that is very similar to the existing products in the market, the designers and product managers tend to do certain features different from others. Sometimes this brings a good change, sometimes worse.当您构建与市场…

modprobe:FATAL: could not load /lib/modules/2.6.35-22-generic/modules.dep No such file or directory

给ubuntu升级到10.10 ,开机可能出现错误modprobe:FATAL: could not load /lib/modules/2.6.35-22-generic/modules.dep No such file or directorymodprobe:FATAL: could not load /lib/modules/2.6.35-22-generic/modules.dep No such file or directory解决办法&a…

Python进阶:如何将字符串常量转化为变量?

2019独角兽企业重金招聘Python工程师标准>>> 前几天,我们Python猫交流学习群 里的 M 同学提了个问题。这个问题挺有意思,经初次讨论,我们认为它无解。 然而,我认为它很有价值,应该继续思考怎么解决&#xf…

怎么在matlab中图像中外接矩形,Matlab 最小外接矩形

Matlab 中并没有发现最小外接矩形的代码,为了方便下面提供最小外接矩形的代码:注:这个函数是源于网上找到的代码的改进版,原版不能检测水平线或者垂直线function [rectx,recty,area,perimeter] minboundrect(x,y,metric)% minbou…

尤雨溪开发的 vue-devtools 如何安装,为何打开文件的功能鲜有人知?

1. 前言大家好,我是若川。最近组织了一次源码共读活动。每周读 200 行左右的源码。很多第一次读源码的小伙伴都感觉很有收获,感兴趣可以加我微信 ruochuan12,拉你进群学习。第一周读的是:据说 99% 的人不知道 vue-devtools 还能直…

sketch浮动布局_使用智能布局和调整大小在Sketch中创建更好的可重用符号

sketch浮动布局Sketch is a widely used tool for UI designs. It implemented the Sketch是用于UI设计的广泛使用的工具。 它实施了 atomic design methodology and made the workflow of UI design much more efficient. You can create a Symbol in Sketch and use it ever…

用Sql添加删除字段,判断字段是否存在的方法

增加字段alter table docdsp add dspcode char(200)删除字段ALTER TABLE table_NAME DROP COLUMN column_NAME修改字段类型ALTER TABLE table_name ALTER COLUMN column_name new_data_type改名sp_rename更改当前数据库中用户创建对象(如表、列或用户定义数据类型…

小姐姐笔记:我是如何学习简单源码拓展视野的

大家好,我是若川。这是我上周组织的源码共读纪年小姐姐的笔记,写得很好。所以分享给大家。欢迎加我微信 ruochuan12,进源码共读群。其他更多人的笔记可以阅读原文查看。川哥的源码解读文章:据说 99% 的人不知道 vue-devtools 还能…

php表决器代码,三人表决器:VHDL源代码

描述--三人表决器(三种不同的描述方式) vhdl-- Three-input Majority Voter-- The entity declaration is followed by three alternative architectures which achieve the same functionality in different ways.ENTITY maj ISPORT(a,b,c : IN BIT; m : OUT BIT);END maj;--D…

保持危机感和紧迫感_什么是紧迫的:您需要知道的一切

保持危机感和紧迫感Putting the finishing touches on a graphic design project calls for a keen eye. But you already know this, because perfectionism is just a part of the job! You look at every nook and cranny of a project before you can consider it complete…

剑指offer java版(一)

二维数组中的查找 问题描述 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断…

如何系统搭建现代 Web CI/CD

大家好,我是若川。今天分享一篇00后写的CI/CD直播文字稿。之前发过他的故事:一位00后前端2年经验的成长历程。我最近组织了源码共读活动,感兴趣的加我微信 ruochuan12。本次直播录播链接:https://live.juejin.cn/4354/595741[1]开…

sqlserver oracle 数据类型对应关系,SQLSERVER和ORACLE数据类型对应关系详解和对应表格整理...

Oracle SQLServer 比较 SQLServer 常见的 数据 库 类型 字符 数据 类型 CHAR CHAR :都是固定长度字符资料但oracle里面最大度为2kb,SQLServer里面最大长度为8kb 变长字符 数据 类型 VARCHAR2 VARCHAR :racle里面最大长度为4kb,SQLServer里面最大长度为8k…

优化算法汇总

interior point block coordinate relaxation Boltzmann machine 求解L1范数最小化 E. Candes, M. B. Wakin, and S. P. Boyd, “Enhancing sparsity by reweighted l1 minimization,” Journalof Fourier Analysis and Applications, vol. 14, pp. 877-905, Dec. 2008.I. Daub…

对接百度地图API

一、准备工作 百度地图开发文档 注册百度账号&#xff0c;成为开发人员&#xff0c;同时获取AK实例代码&#xff1a;<!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta name"viewport" content&quo…

ui边框设计图_UI设计形状和对象基础知识:填充和边框

ui边框设计图第2部分 (Part 2) Welcome to the second part of the UI Design shapes basics. This time we’ll cover two of the most essential properties of a shape — fills and borders. This is also a part of the free chapters from Designing User Interfaces.欢迎…