答复: Weex Page display become slow when Native Activiti run finish() back to Weex page after several times

2018-03-23 Thread
PS: Our platform is android

Best Regards!
HuangBJ

发件人: 黄炳金
发送时间: 2018年3月23日 17:20
收件人: dev
主题: Weex Page display become slow when Native Activiti run finish() back to 
Weex page after several times

Hi Weex team,

We found that weex page jump to a Native APK Activity, then back to Weex page, 
several times, back to weex page become slow.
But the Native APK Activity has been finished.

This is the case often happened in weex page complex, like SPA.

  Do you have any suggestion?

Best Regards!
HuangBJ



答复: [weex.incubator.apache.org代发]Discussion of weex components in the round table conference - 2018 Weex conf

2018-01-24 Thread
Hi TW,
I'm grad to hear that.

The GridSelect component display from top to bottom on android 
platform, do you have any suggestion to solve this problem?

Best Regards!
HuangBJ

-邮件原件-
发件人: 汤威 [mailto:t...@qq.com] 
发送时间: 2018年1月21日 12:01
收件人: dev
主题: [weex.incubator.apache.org代发]Discussion of weex components in the round 
table conference - 2018 Weex conf

Discussion of weex components in a round table conference

A simple introduction

Hello everybod,I'm YouXi(Tw93) from the Fliggy user technology team, Currently 
maintaining  weex-ui components.

First of all, Congratulations on the success of 2018 weex conf.  

I would like to introduce our four aspects of the Weex component in round table 
discussion.

What we need to pay attention to when encapsulating native components ?


Common features:We need to consider whether this component will be used in more 
than one business, as well as a removable, or mature, functional component in 
native. Such as  Video/TabBar/TitleBar/ImageUpload components.



Stability, Because the native components do not like weex upper component has a 
very good regulatory, so we must need to pay attention to good native 
components must need no bug, prevent repair and update time will have trouble. 
Also need to pay attention to the native components should be given the most 
part at the beginning, to prevent frequent updates, led to the need to fit a 
lot of versions.



Atomicity, not suggesting that a component does a lot of things at the same 
time, should be a single function, and then get more functionality through the 
collocation method.


What's good experience in the development and practice of Weex UI components ?


811 principles:80% features should be the default, users don't need configure 
many parameters. And let users configure some parameters to achieve 10% 
features. A rare case of 10% can temporarily don't be considered, here may cost 
a lot of time to develop, so we can wait for when the user needs to update it.



Need someone unify:In order to avoid the components into a hodgepodge, 
subsequent iterations visual interaction, adding new features need to be taken 
into account. Commonality here need a unified the convergent, development 
maintenance can avoid a lot of business to interfere with the availability of 
components. But the more ideas there are, the better.



Performance experience, Weex components need to ensure performance experience 
more than H5 components.



Trust mechanism: A lot of times when someone uses your component, a big reason 
is to believe that the component is not buggy, is stable and good, and will be 
maintained later.


What do you think Weex Ui is still missing?


Currently, the use of a single component has been described in detail, but for 
some use of multiple components, or a lack of relevant cases at the page level, 
the latter needs to be patched up.



More often than not, the theme color is changed by parameter configuration, 
which can be modified by a unified external parameter configuration.


What is the future of cross-end development?


Native layout needs to learn from the development flexibility of H5, and 
gradually use the automatic layout to realize it. Meanwhile, flexbox 
development is introduced to avoid absolute calculation.



Data binding is becoming more and more convenient, like MVVM, when the data 
changes, the view is immediately modified, not triggered manually.


These are some of the conclusions of our discussion. Thank you for reading, and 
welcome to the discussion.


答复: [weex.incubator.apache.org代发]Re: border-radius no effect on Glide Image Adapter

2017-08-18 Thread
Hi Shenyuancs,
My problem solved as your suggestion.

Tks~

Best Regards!
HuangBJ


-邮件原件-
发件人: 申远 [mailto:shenyua...@gmail.com] 
发送时间: 2017年8月17日 11:33
收件人: dev@weex.incubator.apache.org
主题: [weex.incubator.apache.org代发]Re: border-radius no effect on Glide Image 
Adapter

The Image Adapter should pass a bitmapDrawable to ImageView.setDrawable(),  
otherwise the border-radius/resize will have no effect.
> 在 2017年8月17日,10:06,黄炳金 <huan...@landicorp.com> 写道:
> 
> Hi Pals,
> I use Glide as Image Adapter to replace original Picasso in android 
> platform.
> And then I found that border-radius no effect on Glide Image Adapter.
> 
> I test using this link : 
> http://dotwe.org/vue/aa186371a3a5b3133cd9e1c6c8715aec
> 
> Do you have met this problems, and any suggestion?
> 
> Best Regards!
> HuangBJ
> 



border-radius no effect on Glide Image Adapter

2017-08-16 Thread
Hi Pals,
 I use Glide as Image Adapter to replace original Picasso in android 
platform.
 And then I found that border-radius no effect on Glide Image Adapter.

 I test using this link : 
http://dotwe.org/vue/aa186371a3a5b3133cd9e1c6c8715aec

 Do you have met this problems, and any suggestion?

Best Regards!
HuangBJ



答复: [weex.incubator.apache.org代发]Re: How to code splitting with webpack

2017-08-10 Thread
Hi danwu,
Your suggestion is very helpful, and it seems like solved our problem.

Thanks a log.

Best Regards!
HuangBJ


-邮件原件-
发件人: danwu wu [mailto:faterr...@gmail.com] 
发送时间: 2017年8月4日 15:24
收件人: dev@weex.incubator.apache.org
主题: [weex.incubator.apache.org代发]Re: How to code splitting with webpack

Hi,HuangBJ,

Here are some documents,hope this help you!

BroadcastChannel APi: https://weex-project.io/cn/references/jsfm-apis.html
issues #1536: https://github.com/alibaba/weex/issues/1536


Best Regards!
erha

2017-08-04 15:14 GMT+08:00 danwu wu <faterr...@gmail.com>:

> Hi,HuangBJ,
>
> Weex encourage you to use native ideas to solve the page problem,my 
> advice is that you can split the logic of multiple blocks into 
> multiple weex instances in a single page.
>  If you want to communicate between multiple instances,you can also  see:
> https://github.com/alibaba/weex/issues/1938,you can use the runtime 
> hook to inject some instance variables when such a Weex instance 
> created in such a JS framework.That requires you to make some support at the 
> native side.
>
> Best Regards!
> erha
>
> 2017-08-04 14:54 GMT+08:00 黄炳金 <huan...@landicorp.com>:
>
>> Hi faterrole,
>> For example, we have 30 functions, each function write in a 
>> single JS file, so we have 30 JS files.
>> A file just like index.js will call the 30 functions above 
>> sequencely. And then after compiled, index.js will include the 30 JS 
>> files content, and will become big size.
>>
>> That is why I want using code splitting.
>>
>> Thanks a lot!
>>
>> Best Regards!
>> HuangBJ
>>
>>
>> -邮件原件-
>> 发件人: danwu wu [mailto:faterr...@gmail.com]
>> 发送时间: 2017年8月4日 11:45
>> 收件人: dev@weex.incubator.apache.org
>> 主题: [weex.incubator.apache.org代发]Re: 答复: How to code splitting with 
>> webpack
>>
>> Hi~ HuangBJ,
>>
>> I'm not very sure about your scene, can you provide an example?
>>
>> Best Regards!
>> erha
>>
>> 2017-08-04 11:01 GMT+08:00 黄炳金 <huan...@landicorp.com>:
>>
>> > Hi faterrole,
>> > Thanks for your reply.
>> > You recommend method below seems like not usable on weex 
>> > environment.
>> >
>> > I think the major problems are weex not support global variable.
>> >
>> > Do you have any suggestions for me?
>> >
>> > Best Regards!
>> > HuangBJ
>> >
>> > -邮件原件-
>> > 发件人: 吴丹武 [mailto:faterr...@gmail.com]
>> > 发送时间: 2017年7月24日 18:19
>> > 收件人: dev@weex.incubator.apache.org
>> > 主题: Re: How to code splitting with webpack
>> >
>> > Hi~ HuangBJ
>> >
>> >
>> > I have not tried but maybe you can use webpack target option see 
>> > https://webpack.js.org/configuration/target/.
>> >
>> > By the way,this way is not recommended packaging method,you can 
>> > also use weexpack to package your application
>> >
>> > Best Regards!
>> > erha
>> >
>> >
>> > 2017-07-24 16:01 GMT+08:00 黄炳金 <huan...@landicorp.com>:
>> >
>> > > Hi Weex Team,
>> > >
>> > >  When I use webpack to code splitting, It will generate
>> “window”
>> > > Object.
>> > >
>> > >  But in android native, “window” is not support, will run
>> error.
>> > >
>> > >  How could I code splitting with webpack?
>> > >
>> > >  Do you have any suggestion for me?
>> > >
>> > >
>> > > Best Regards!
>> > > HuangBJ
>> > >
>> > >
>> >
>>
>
>


How to code splitting with webpack

2017-07-24 Thread
Hi Weex Team,

 When I use webpack to code splitting, It will generate “window” Object.

 But in android native, “window” is not support, will run error.

 How could I code splitting with webpack?

 Do you have any suggestion for me?


Best Regards!
HuangBJ



答复: 使用clone的WEEX SDK,android studio不会打印jsLog

2017-07-13 Thread
I think I have found the answer.

main.js need be update in sdk assets.

Thanks a lot!

Best Regards!
HuangBJ, 0592 - 2178033


-邮件原件-
发件人: 黄炳金 
发送时间: 2017年7月13日 13:55
收件人: dev@weex.incubator.apache.org
主题: 答复: 使用clone的WEEX SDK,android studio不会打印jsLog

Hi sospartan,
Thanks for your reply.

According to the commit: 
https://github.com/apache/incubator-weex/pull/470/commits/e82ccf061fd19f92e3723ce1e807814fc95a63a8,
Where position should I put the html5/shared/console.js into my android 
project?


Best Regards!
HuangBJ

-邮件原件-
发件人: sospartan [mailto:sospar...@gmail.com]
发送时间: 2017年7月13日 10:47
收件人: dev@weex.incubator.apache.org
主题: Re: 使用clone的WEEX SDK,android studio不会打印jsLog

Hi,
This issue is fixing.
See more https://issues.apache.org/jira/projects/WEEX/issues/WEEX-51

On Thu, Jul 13, 2017 at 9:54 AM, 黄炳金 <huan...@landicorp.com> wrote:

> Hi Weex Team,
>  I use cloned weex_sdk, it can not print jsLog on Android
> Studio。
>
>  But when I use official release sdk just like weex_sdk:0.10.0 
> or weex_sdk:0.11.0, Android studio print jsLog normally。
>
>How can I set in cloned weex_sdk to open jsLog print on Android 
> Studio.
>
>Need Your Help!!!
>
>I also ask question here : https://segmentfault.com/q/
> 101010133116?_ea=2173819。
>
>  Thanks a lot!!!
>



--
Best Regards!

sospartan
http://weex.apache.org/ <https://weex-project.io/>


答复: 使用clone的WEEX SDK,android studio不会打印jsLog

2017-07-12 Thread
Hi sospartan,
Thanks for your reply.

According to the commit: 
https://github.com/apache/incubator-weex/pull/470/commits/e82ccf061fd19f92e3723ce1e807814fc95a63a8,
Where position should I put the html5/shared/console.js into my android 
project?


Best Regards!
HuangBJ

-邮件原件-
发件人: sospartan [mailto:sospar...@gmail.com] 
发送时间: 2017年7月13日 10:47
收件人: dev@weex.incubator.apache.org
主题: Re: 使用clone的WEEX SDK,android studio不会打印jsLog

Hi,
This issue is fixing.
See more https://issues.apache.org/jira/projects/WEEX/issues/WEEX-51

On Thu, Jul 13, 2017 at 9:54 AM, 黄炳金 <huan...@landicorp.com> wrote:

> Hi Weex Team,
>  I use cloned weex_sdk, it can not print jsLog on Android 
> Studio。
>
>  But when I use official release sdk just like weex_sdk:0.10.0 
> or weex_sdk:0.11.0, Android studio print jsLog normally。
>
>How can I set in cloned weex_sdk to open jsLog print on Android 
> Studio.
>
>Need Your Help!!!
>
>I also ask question here : https://segmentfault.com/q/
> 101010133116?_ea=2173819。
>
>  Thanks a lot!!!
>



--
Best Regards!

sospartan
http://weex.apache.org/ <https://weex-project.io/>


使用clone的WEEX SDK,android studio不会打印jsLog

2017-07-12 Thread
Hi Weex Team,
 I use cloned weex_sdk, it can not print jsLog on Android Studio。

 But when I use official release sdk just like weex_sdk:0.10.0 or 
weex_sdk:0.11.0, Android studio print jsLog normally。

   How can I set in cloned weex_sdk to open jsLog print on Android Studio.

   Need Your Help!!!

   I also ask question here : 
https://segmentfault.com/q/101010133116?_ea=2173819。

 Thanks a lot!!!


答复: 同步回调,返回值在JS内为undefined如何解决

2017-07-11 Thread
使用新版SDK解决了。

感谢!

Best Regards!
HuangBJ

发件人: 黄炳金
发送时间: 2017年7月12日 9:52
收件人: dev@weex.incubator.apache.org
主题: 同步回调,返回值在JS内为undefined如何解决

Hi Weex Team,
 
根据这个官方文档:https://weex.apache.org/cn/references/advanced/extend-to-android.html
 添加@JSMethod(uiThread = false)可以使用同步的方式

 想请问下,这种同步的方式可以支持返回值吗?
 我在JS内获取返回值都是undefined, 请问这如何解决?


同步回调,返回值在JS内为undefined如何解决

2017-07-11 Thread
Hi Weex Team,
 
根据这个官方文档:https://weex.apache.org/cn/references/advanced/extend-to-android.html
 添加@JSMethod(uiThread = false)可以使用同步的方式

 想请问下,这种同步的方式可以支持返回值吗?
 我在JS内获取返回值都是undefined, 请问这如何解决?


答复: 使用border-radius设置圆形图片的边缘毛刺问题

2017-06-27 Thread
问题找到了, 与我们重写ImageAdapter, 设置的RGB_565有关, Weex代码框架这一块没有问题。

谢谢!

Best Regards!
Bing.Huang

发件人: 黄炳金
发送时间: 2017年6月27日 15:29
收件人: 'dev@weex.incubator.apache.org'
主题: 使用border-radius设置圆形图片的边缘毛刺问题

Hi,
 请教下,使用border-radius设置圆形图片,边缘会有毛刺。
 请问如何解决:
[https://segmentfault.com/img/bVPSOJ?w=231=161]



Best Regards!

Bing.Huang





使用border-radius设置圆形图片的边缘毛刺问题

2017-06-27 Thread
Hi,
 请教下,使用border-radius设置圆形图片,边缘会有毛刺。
 请问如何解决:
[https://segmentfault.com/img/bVPSOJ?w=231=161]



Best Regards!

Bing.Huang