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.pswp.cn/news/275596.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/275596.shtml
英文地址,請注明出處:http://en.pswp.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.歡迎…