Android Launcher3 Shortcut 包名两行显示相切的问题。

来源:互联网 发布:java方法名长度 编辑:程序博客网 时间:2024/05/16 03:51
    public View createShortcut(ViewGroup parent, ShortcutInfo info) {
        BubbleTextView favorite = (BubbleTextView) mInflater.inflate(R.layout.app_icon,
                parent, false);
        favorite.applyFromShortcutInfo(info, mIconCache);
      
        //favorite.setCompoundDrawablePadding(mDeviceProfile.iconDrawablePaddingPx);//modify

        favorite.setOnClickListener(this);
        favorite.setOnFocusChangeListener(mFocusHandler);
        return favorite;

    }


在layout apps_icon.xml  中修改DrawablePadding 无效。

0 0
原创粉丝点击