问题
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