Skip to content

Commit 79074e8

Browse files
author
lucas
committed
- 视联网容器优化成动态布局
- 视联网小程序宽度优化成按比例 - 屏幕旋转监听采用入参作为依据 - pub的资源文件转移至library
1 parent b0ecbfc commit 79074e8

File tree

130 files changed

+8178
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+8178
-50
lines changed

VideoOS/LuaViewSDK/src/com/taobao/luaview/userdata/kit/UDApplet.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,16 @@ public UDApplet(Globals globals, LuaValue metatable) {
4040
class AppletSize extends VarArgFunction {
4141
@Override
4242
public Varargs invoke(Varargs args) {
43-
float width = 222;
44-
float height = DimenUtil.pxToDpi(AndroidUtil.getScreenHeight(getContext()));
43+
int screenHeight = AndroidUtil.getScreenHeight(getContext());
44+
int screenWidth = AndroidUtil.getScreenWidth(getContext());
45+
46+
47+
// float width = Math.max(screenWidth,screenHeight) * 0.332f;
48+
49+
50+
float height = DimenUtil.pxToDpi(Math.min(screenWidth,screenHeight));
51+
float width = height / 375.0f * 222;
52+
4553
LuaValue[] luaValue = new LuaValue[]{LuaValue.valueOf(width), LuaValue.valueOf(height)};
4654
return LuaValue.varargsOf(luaValue);
4755
}

VideoOS/VenvyLibrary/src/main/assets/lua/os_video_starContent_hotspot.lua

Lines changed: 601 additions & 0 deletions
Large diffs are not rendered by default.

VideoOS/venvy_pub/src/main/res/drawable/bg_disconnect_wifi.xml renamed to VideoOS/VenvyLibrary/src/main/res/drawable/bg_disconnect_wifi.xml

File renamed without changes.

VideoOS/venvy_pub/src/main/res/drawable/shape_loading_circle.xml renamed to VideoOS/VenvyLibrary/src/main/res/drawable/shape_loading_circle.xml

File renamed without changes.

VideoOS/venvy_pub/src/main/res/layout/video_program_tool.xml renamed to VideoOS/VenvyLibrary/src/main/res/layout/video_program_tool.xml

File renamed without changes.

VideoOS/venvy_pub/src/main/res/mipmap-xhdpi/ic_back.png renamed to VideoOS/VenvyLibrary/src/main/res/mipmap-xhdpi/ic_back.png

File renamed without changes.

VideoOS/venvy_pub/src/main/res/mipmap-xhdpi/ic_close.png renamed to VideoOS/VenvyLibrary/src/main/res/mipmap-xhdpi/ic_close.png

File renamed without changes.

VideoOS/venvy_pub/src/main/res/mipmap-xhdpi/pic_disconnect.png renamed to VideoOS/VenvyLibrary/src/main/res/mipmap-xhdpi/pic_disconnect.png

File renamed without changes.

VideoOS/venvy_pub/src/main/res/mipmap-xhdpi/pic_error.png renamed to VideoOS/VenvyLibrary/src/main/res/mipmap-xhdpi/pic_error.png

File renamed without changes.

VideoOS/venvy_pub/src/main/res/mipmap-xxhdpi/ic_back.png renamed to VideoOS/VenvyLibrary/src/main/res/mipmap-xxhdpi/ic_back.png

File renamed without changes.

0 commit comments

Comments
 (0)