如何在按钮中添加图标(Tizen可穿戴)+ Tizen中的RelativeLayout的等效项 [英] How to Add Icon to Button (Tizen Wearable) + Equivalent of RelativeLayout in Tizen

查看:98
本文介绍了如何在按钮中添加图标(Tizen可穿戴)+ Tizen中的RelativeLayout的等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天.我正在尝试开发一个简单的Tizen(可穿戴)应用程序.因此,我目前的目标是制作一个带有加号"图标的按钮.我创建了一个UI布局项目.

Good day. I'm trying to develop a simple Tizen (wearable) app. So, my current goal is to make a button that has a 'plus' icon. I've created a single UI Layout project.

所以,这是按钮的代码.

So, this is the code for the button.

<button align_v="fill" visible="true" weight_v="1" pack_h="49" weight_h="1" align_h="fill" pack_w="210" disable="false" pack_x="290" pack_y="364" style="default" id="button1" text="Button">

通常,在创建Android应用时,我们会这样做:

Usually, when creating Android apps, we do this:

android:src="@mipmap/baseline_plus_alt_black_24"

显然,Tizen中的按钮不允许使用

'src'属性. 有解决方法吗?

'src' attribute is not allowed for buttons in Tizen apparently. Is there a workaround?

我们如何在Tizen中做类似的事情?

How do we do something like this in Tizen?

PS:有没有人知道Tizen中的RelativeLayout(android)等效项?

PS: Does anyone have any idea the equivalent of a RelativeLayout(android) in Tizen?

欣赏它!

推荐答案

Tizen可穿戴设备有3种应用程序模型.

There are 3 application model for Tizen Wearable device.

  • 本机(C)
  • 网络
  • C#

我建议使用C#. Tizen支持Xamarin Forms和 Tizen.CircularUI 来开发UI.

I recommend to use C#. Tizen supports Xamarin Forms and Tizen.CircularUI for developing UI.

安装Visual Studio Tizen工具

这篇关于如何在按钮中添加图标(Tizen可穿戴)+ Tizen中的RelativeLayout的等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆