1. 修改画布背景为白色
res/values/colors.xml
像集背景:
<color name="albumset_background">#1A1A1A</color>
修改为:
<color name="albumset_background">#FFFFFF</color>
像册背景
<color name="album_background">#1A1A1A</color>
修改为:
<color name="album_background">#FFFFFF</color>
2. 修改像集间隔距离
res/values/dimensions.xml
<dimen name="albumset_slot_gap">7dp</dimen>
改为
<dimen name="albumset_slot_gap">30dp</dimen>
3. 修改像册间隔
res/values/dimensions.xml
<dimen name="album_slot_gap">5dp</dimen>
修改为:
<dimen name="album_slot_gap">15dp</dimen>
4. 修改像册显示行数为3行显示
res/values/dimensions.xml
<integer name="album_rows_port"4</integer>
改为
<integer name="album_rows_port"3</integer>
5. 像集增加左边距,右边距,
Gallery2/src/com/android/gallery3d/app/AlbumSetPage.java
public static final int ALBUM_SET_LEFT_MARGING = 45;
public static final int ALBUM_SET_RIGHT_MARGING = 45;
private final GLView mRootPane = new GLView() {
private final float mMatrix[] = new float[16];
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
//mSlotView.layout(0, slotViewTop, slotViewRight, slotViewBottom);
//修改为下一行
mSlotView.layout(ALBUM_SET_LEFT_MARGING, slotViewTop, slotViewRight - ALBUM_SET_RIGHT_MARGING, slotViewBottom);
}
...
}
6. 像集增加默认边框图片
Gallery2/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
protected int renderOverlay(GLCanvas canvas, int index, AlbumSetEntry entry, int width, int height) {
...
if (mPressedIndex == index) {
} else if ((mHighlightItemPath != null) && (mHighlightItemPath == entry.setPath)) {
drawSelectedFrame(canvas, width, height);
} else if (mInSelectionMode && mSelectionManager.isItemSelected(entry.setPath)) {
drawSelectedFrame(canvas, width, height);
}else{
//draw normal state
drawNormalFrame(canvas, width, height);
}
}
7. 图片上写字的背景框变白
res/values/colors.xml
<color name="albumset_label_background">#EE414143</color>
改为
<color name="albumset_label_background">#FFFFFFFF</color>
8. 像集里文件夹名字变黑
res/values/colors.xml
<color name="albumset_label_title">#FBFBFB</color>
改为
<color name="albumset_label_title">#000000</color>
9. 像集里文件夹里文件数目变黑
res/values/colors.xml
<color name="albumset_label_count">#A9ABAD</color>
改为
<color name="albumset_label_count">#000000</color>
10. 像集里文件夹显示字体变大
res/values/colors.xml
<dimen name="albumset_title_font_size">12sp</dimen>
改为
<dimen name="albumset_title_font_size">20sp</dimen>
11.
像集里文件夹里文件数目字体变大
<dimen name="albumset_count_font_size">9sp</dimen>
改为
<dimen name="albumset_count_font_size">15sp</dimen>
12. 图片页背景
<color name="photo_background">#1A1A1A</color>
改为
<color name="photo_background">#FFFFFF</color>
12. 幻灯片视图背景
<color name="slideshow_background">#1A1A1A</color>
改为
<color name="slideshow_background">#FFFFFF</color>