欢迎来到天天文库
浏览记录
ID:12684521
大小:640.00 KB
页数:11页
时间:2018-07-18
《教程】托盘和程序背景的透明美化处理》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、继续前面的教程,今天给大家带来的是托盘和程序背景的透明美化处理,还是针对sense3.0的,不管是徐大神移植的还是VU的都可以通用方法。这个的美化,是集中在紫芝中。用到的工具Apktool和M10。1。罗西还是反编译,得到资产,水库,smali,AndroidManifest.xml中,apktool.yml五个文件夹,这次的透明比较简单,只需要修改RES文件夹里的部分代码,首先处理程序背景的透明(方法有两中,先讲第一种)方法1 甲找罗茜RES下的布局all_apps_view.xml,打开找到1.2、ckground="@drawable/common_app_bkg"android:layout_width="fill_parent"android:layout_height="fill_parent"android:inAnimation="@anim/fade_in"android:outAnimation="@anim/fade_out"复制代码将其改为1.3、Animation="@anim/fade_in"android:outAnimation="@anim/fade_out"复制代码这段主要是去掉默认读取的第一层背景图片(因为没有修改其透明度的代码)还有1.4、left5、center"android:id="@id/content_list"android:background="#ff000000"android:paddingLeft="@dimen/tabbar_padding"android:padding6、Right="@dimen/tabbar_padding"android:nextFocusLeft="@id/content_list"android:nextFocusRight="@id/content_list"android:nextFocusUp="@id/content_list"android:nextFocusDown="@id/content_list"android:layout_width="fill_parent"android:layout_height="fill_parent"android:layout_marginBottom="@dimen/a7、pplication_boxed_padding_bottom"/>2. 8、left9、center"android:id="@id/content_grid"android:background="#ff000000"android:paddingLeft="@dimen/application_grid_left_padding"android:paddingTop="@dimen/10、application_boxed_padding_top"android:paddingRight="@dimen/application_grid_right_padding"android:nextFocusLeft="@id/content_grid"android:nextFocusRight="@id/content_grid"android:nextFocusUp="@id/content_grid"android:nextFocusDown="@id/content_grid"android:layout_width="fill_parent"android:lay11、out_height="fill_parent"android:layout_marginBottom="@dimen/application_boxed_padding_bottom"android:listSelector="@drawable/grid_selector"android:drawSelectorOnTop="false"android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing"a
2、ckground="@drawable/common_app_bkg"android:layout_width="fill_parent"android:layout_height="fill_parent"android:inAnimation="@anim/fade_in"android:outAnimation="@anim/fade_out"复制代码将其改为1.3、Animation="@anim/fade_in"android:outAnimation="@anim/fade_out"复制代码这段主要是去掉默认读取的第一层背景图片(因为没有修改其透明度的代码)还有1.4、left5、center"android:id="@id/content_list"android:background="#ff000000"android:paddingLeft="@dimen/tabbar_padding"android:padding6、Right="@dimen/tabbar_padding"android:nextFocusLeft="@id/content_list"android:nextFocusRight="@id/content_list"android:nextFocusUp="@id/content_list"android:nextFocusDown="@id/content_list"android:layout_width="fill_parent"android:layout_height="fill_parent"android:layout_marginBottom="@dimen/a7、pplication_boxed_padding_bottom"/>2. 8、left9、center"android:id="@id/content_grid"android:background="#ff000000"android:paddingLeft="@dimen/application_grid_left_padding"android:paddingTop="@dimen/10、application_boxed_padding_top"android:paddingRight="@dimen/application_grid_right_padding"android:nextFocusLeft="@id/content_grid"android:nextFocusRight="@id/content_grid"android:nextFocusUp="@id/content_grid"android:nextFocusDown="@id/content_grid"android:layout_width="fill_parent"android:lay11、out_height="fill_parent"android:layout_marginBottom="@dimen/application_boxed_padding_bottom"android:listSelector="@drawable/grid_selector"android:drawSelectorOnTop="false"android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing"a
3、Animation="@anim/fade_in"android:outAnimation="@anim/fade_out"复制代码这段主要是去掉默认读取的第一层背景图片(因为没有修改其透明度的代码)还有1.4、left5、center"android:id="@id/content_list"android:background="#ff000000"android:paddingLeft="@dimen/tabbar_padding"android:padding6、Right="@dimen/tabbar_padding"android:nextFocusLeft="@id/content_list"android:nextFocusRight="@id/content_list"android:nextFocusUp="@id/content_list"android:nextFocusDown="@id/content_list"android:layout_width="fill_parent"android:layout_height="fill_parent"android:layout_marginBottom="@dimen/a7、pplication_boxed_padding_bottom"/>2. 8、left9、center"android:id="@id/content_grid"android:background="#ff000000"android:paddingLeft="@dimen/application_grid_left_padding"android:paddingTop="@dimen/10、application_boxed_padding_top"android:paddingRight="@dimen/application_grid_right_padding"android:nextFocusLeft="@id/content_grid"android:nextFocusRight="@id/content_grid"android:nextFocusUp="@id/content_grid"android:nextFocusDown="@id/content_grid"android:layout_width="fill_parent"android:lay11、out_height="fill_parent"android:layout_marginBottom="@dimen/application_boxed_padding_bottom"android:listSelector="@drawable/grid_selector"android:drawSelectorOnTop="false"android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing"a
4、left
5、center"android:id="@id/content_list"android:background="#ff000000"android:paddingLeft="@dimen/tabbar_padding"android:padding
6、Right="@dimen/tabbar_padding"android:nextFocusLeft="@id/content_list"android:nextFocusRight="@id/content_list"android:nextFocusUp="@id/content_list"android:nextFocusDown="@id/content_list"android:layout_width="fill_parent"android:layout_height="fill_parent"android:layout_marginBottom="@dimen/a
7、pplication_boxed_padding_bottom"/>2. 8、left9、center"android:id="@id/content_grid"android:background="#ff000000"android:paddingLeft="@dimen/application_grid_left_padding"android:paddingTop="@dimen/10、application_boxed_padding_top"android:paddingRight="@dimen/application_grid_right_padding"android:nextFocusLeft="@id/content_grid"android:nextFocusRight="@id/content_grid"android:nextFocusUp="@id/content_grid"android:nextFocusDown="@id/content_grid"android:layout_width="fill_parent"android:lay11、out_height="fill_parent"android:layout_marginBottom="@dimen/application_boxed_padding_bottom"android:listSelector="@drawable/grid_selector"android:drawSelectorOnTop="false"android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing"a
8、left
9、center"android:id="@id/content_grid"android:background="#ff000000"android:paddingLeft="@dimen/application_grid_left_padding"android:paddingTop="@dimen/
10、application_boxed_padding_top"android:paddingRight="@dimen/application_grid_right_padding"android:nextFocusLeft="@id/content_grid"android:nextFocusRight="@id/content_grid"android:nextFocusUp="@id/content_grid"android:nextFocusDown="@id/content_grid"android:layout_width="fill_parent"android:lay
11、out_height="fill_parent"android:layout_marginBottom="@dimen/application_boxed_padding_bottom"android:listSelector="@drawable/grid_selector"android:drawSelectorOnTop="false"android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing"a
此文档下载收益归作者所有