如您所知,从 android4.1 开始,谷歌支持智能应用更新。对于用户来说,当他们更新从 google play 安装的 android 应用程序时,他们只下载更改的内容,而不是下载所有的 apk。
在我的应用程序中,我也希望支持 smartAppUpdates。现在我使用 bsdiff 和 bspatch。但我也认为当我更新我的应用程序时,用户下载它是如此之大。在我的应用程序的 apk 文件中,libs 很大,我的 apk 大约为 11M,但 libs 中的 .so 文件为 9M。当我更新我的应用程序时,我从未更新过库。例如:我像这样使用 bsdiff
bsdiff 旧.apk 新.apk diff.apk
new.apk 为 11.5M,old.apk 约为 11.4M,但 diff.apk 约为 6M。
当我更新我的应用程序时,我从未更新过库。
当我尝试压缩 diff.apk 以减少它时,但它没有使用。diff.zip 的大小等于 diff.apk 的大小
我该怎么做?大家都帮我吗?提前致谢。
如何提高应用程序的增量更新效率?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="left" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="center" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:text="right" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我知道我也可以使用Relativelayout并设置alignparentRight = true,让右边的按钮位于这个父节点的右侧,但我只是想知道,如果我使用的是LinearLayout,我怎样才能在它的右边做右边的按钮家长吗?任何帮助谢谢