7715平台修改BUG记录

来源:互联网 发布:上古卷轴5优化补丁 编辑:程序博客网 时间:2024/06/05 16:47

BUG:打开下载菜单,标题栏瞬间显示"文档";

把AndroidManifast.xml里 

<application android:name=".DocumentsApplication"
android:label="@string/app_label"
android:supportsRtl="true">
中的 android:label="@string/app_label" 去掉了,全编后下载到手机里,再进下载,此时actionbar会先显示一下documentsUI的包名,然后再显示下载内容。
我后来将 android:label="@string/app_label" 改为android:label=" " 再编译,push到手机里,此时actionbar就不会显示名字,直接跳转显示下载内容了

DocumentsUI是为download功能提供服务接口的,frameworks/base/packages/下google原生设计可以是框架清晰,应该是为了其他应用还可以用;DocumentsUI里应该用到了android不向应用公开的接口或库.



BUG:主菜单界面上图标名称有三行时,第三行字体显示不全.

在BubbleTextView 这个类的属性里加一个属性 android:singleLine="true"

android主菜单的图片和名字都是用一个类BubbleTextView来实现的,所以只需要在这个里面改就可以。launcher3中用一个apps_customize_application.xml来控制 textview属性的,用到的类文件是PagedViewIcon.java

<com.android.launcher3.PagedViewIcon

    xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"


    style="@style/WorkspaceIcon.AppsCustomize"


    android:id="@+id/application_icon"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:singleLine="true"

    android:focusable="true"

    android:background="@drawable/focusable_view_bg" />

0 0
原创粉丝点击