How to Add Icon to Button (Tizen Wearable) + Equivalent of RelativeLayout in Tizen

雨燕双飞 提交于 2019-12-11 15:15:24

问题


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">

Usually, when creating Android apps, we do this:

android:src="@mipmap/baseline_plus_alt_black_24"

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

How do we do something like this in Tizen?

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

Appreciate it folks!


回答1:


There are 3 application model for Tizen Wearable device.

  • Native(C)
  • Web
  • C#

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

Installing Visual Studio Tools for Tizen



来源:https://stackoverflow.com/questions/56341019/how-to-add-icon-to-button-tizen-wearable-equivalent-of-relativelayout-in-tiz

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!