简体   繁体   English

Tizen本机应用程序无法创建

[英]Tizen Native Application Unable to create

I am trying to create Tizen Native app, But i am unable to create app, View my below picture there is no samples available in native app, My Tizen sdk version is 2.1.1 我正在尝试创建Tizen本机应用程序,但是我无法创建应用程序,请查看下面的图片,本机应用程序中没有可用的示例,我的Tizen sdk版本为2.1.1。 在此处输入图片说明

I can tell you how to do this using Tizen Native (WYSIWYG). 我可以告诉您如何使用Tizen Native(WYSIWYG)进行此操作。 If you are seeking a code based answer, then ignore this. 如果您正在寻找基于代码的答案,请忽略此。 HOWEVER, for those trying to learn and navigate within Tizen Studio this is very helpful! 但是,对于那些试图在Tizen Studio中学习和导航的人来说,这非常有帮助!

Start Tizen Studio 启动Tizen Studio

File/New Tizen Project 文件/新Tizen项目

Template / Next 模板/下一个

Mobile / Next 手机/下一个

Native Application / Next 本机应用程序/下一步

UI Builder Single View (Bottom Left) / Next UI Builder单视图(左下)/下一步

In the Project Explorer (Top Left) open the tree to Layout / Layout.xml (Double click to open the Layout). 在项目资源管理器(左上)中,打开树,进入Layout / Layout.xml(双击以打开Layout)。

Choose Design Tab (Center) 选择“设计”选项卡(居中)

In Palette , UI Container (just to right of center) 在Palette中,UI容器(位于中心右侧)

Drag "Grid" from the Palette onto your screen 将“网格”从组件面板拖到屏幕上

In Properties Tab (far right or turn on: Window/ Show View/ Other/ choose properties OK) 在“属性”选项卡中(最右边或打开:“窗口” /“显示视图” /“其他” /“选择属性”,然后单击“确定”)

Change Col Count to 720 and Row Count to 1280 将“列数”更改为720,将“行数”更改为1280

Drag "Grid" from the Palette onto your screen 将“网格”从组件面板拖到屏幕上

Now you should see more (22) UI Components 现在您应该看到更多(22)UI组件

Drag "Background" from the Palette onto your screen If it does not automatically resize (Hello BUG) then do the following. 从面板上将“背景”拖到屏幕上。如果它没有自动调整大小(Hello BUG),请执行以下操作。 Drag to a little LARGER then your screen size (assuming HD, Look into this I think this is REQUIRED by the Tizen Store). 拖到更大一点,然后拖动屏幕大小(假设为高清,请看一下,我认为这是Tizen商店要求的)。

With Background highlighted, again go to Properties Tab, bottom Variation Attributes make: Left 0, Top 0, Width 720, Height 1280. The first few times it will give you trouble until you figure out that the BG resized window can't go higher than the BLUE TOP and the window should be larger on the bottom, until you manually type in the CORRECT SIZE as shown above. 在突出显示背景的情况下,再次转到“属性”选项卡,底部“变化属性”如下:左0,上0,宽度720,高度1280。前几次会给您带来麻烦,直到您确定BG调整大小的窗口不能再高一点比BLUE TOP还要大,并且窗口的底部应该更大,直到您如上所述手动键入正确的尺寸为止。

Now go to or open your Resource Tab (just drag and drop files here from Windows Explorer) and find your background image that you already RESIZED CORRECTLY in Adobe PS and used SAVE FOR WEB to reduce jpg file size. 现在转到或打开“资源”选项卡(只需从Windows资源管理器中拖放文件),找到您已在Adobe PS中正确调整大小并使用SAVE FOR WEB减小jpg文件大小的背景图像。

Drag onto Background "layer" on your Screen. 拖到屏幕上的背景“图层”上。

For a button you can: Drag "BUTTON" from UI components onto Background OR BETTER is to drag "IMAGE" from UI components onto Background... 对于按钮,您可以:将UI组件中的“按钮”拖动到背景上,或者更好的方法是将UI组件中的“图像”拖动到背景中...

Then drag and drop (PRE-MADE BUTTON from Adobe PS) image from the Resource Manager Tab onto the empty image place holder. 然后将资源管理器选项卡中的图像(来自Adobe PS的预制按钮)拖放到空白图像占位符上。 You will have to resize it manually in the Properties Tab to get the correct proportions. 您必须在“属性”选项卡中手动调整其大小,以获取正确的比例。

REPEAT for more Images and Buttons and Text since the built in text "Label" is horrible to say the least. 重复,以获得更多的图像,按钮和文本,因为至少可以说内置的文本“标签”太可怕了。 You can always make any of these do Button Actions. 您始终可以使其中任何一个执行“按钮动作”。

This is as far as I have come, now I need to learn how to program said buttons and actions. 据我所知,现在我需要学习如何对所述按钮和动作进行编程。

Whew! ew! This will save you many weeks! 这将节省您数周的时间! Wish I had found a step by step like this! 希望我能一步一步找到这样的东西!

Now where to post this? 现在在哪里发布? IO IO

PS If you find this useful. PS:如果您觉得有用。 Tick the little black up arrow to up vote this. 勾选黑色向上的小箭头以对此进行投票。 Purely to help others, I receive no reward for "likes". 纯粹是为了帮助他人,我没有因为“喜欢”而获得任何奖励。

This will help you. 这将为您提供帮助。 Read down a little ways and follow the lengthy instructions. 阅读一些方法并遵循冗长的说明。

Tizen Native Application Unable to create Tizen本机应用程序无法创建

IO IO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM