Skip to content

Commit

Permalink
provide drawables for different screen densities
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed Mar 12, 2014
1 parent cc77f53 commit b0e072a
Show file tree
Hide file tree
Showing 54 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ local.properties
.project
.settings
libs
tmp
Binary file added res/drawable-hdpi/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_audio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_ms_excel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_ms_ppt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_ms_word.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_pdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_audio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_ms_excel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_ms_ppt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_ms_word.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_pdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/file_video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/repo_encrypted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/file_audio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-mdpi/file_binary.png
Binary file not shown.
Binary file modified res/drawable-mdpi/file_image.png
Binary file modified res/drawable-mdpi/file_ms_excel.png
Binary file modified res/drawable-mdpi/file_ms_ppt.png
Binary file modified res/drawable-mdpi/file_ms_word.png
Binary file modified res/drawable-mdpi/file_pdf.png
Binary file modified res/drawable-mdpi/file_text.png
Binary file modified res/drawable-mdpi/file_video.png
Binary file modified res/drawable-mdpi/folder.png
Binary file removed res/drawable-nodpi/file_binary.png
Diff not rendered.
Binary file added res/drawable-xhdpi/file.png
Binary file added res/drawable-xhdpi/file_audio.png
Binary file added res/drawable-xhdpi/file_image.png
Binary file added res/drawable-xhdpi/file_ms_excel.png
Binary file added res/drawable-xhdpi/file_ms_ppt.png
Binary file added res/drawable-xhdpi/file_ms_word.png
Binary file added res/drawable-xhdpi/file_pdf.png
Binary file added res/drawable-xhdpi/file_text.png
Binary file added res/drawable-xhdpi/file_video.png
Binary file added res/drawable-xhdpi/folder.png
Binary file added res/drawable-xhdpi/repo.png
Binary file added res/drawable-xhdpi/repo_encrypted.png
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<string name="download_failed">下载失败</string>
<string name="trust_https_server">此证书不是由受信任的组织颁发,要继续吗?</string>
<string name="upload_to">上传至: </string>
<string name="task_cancel">取消上传</string>
<string name="task_cancel">取消</string>
<string name="task_retry">重新上传</string>
<string name="task_remove">移除</string>
<string name="task_remove_all_finished">移除所有任务</string>
Expand Down Expand Up @@ -86,7 +86,6 @@
<string name="no_app_available">没有找到应用</string>
<string name="add_to_seafile">添加到Seafile中</string>
<string name="ok">确定</string>
<string name="cancel">取消</string>
<string name="no_account">首先请在Seafile上创建一个账户</string>
<string name="no_library">对不起,您还没有任何资料库</string>
<string name="choose_an_account">请选择一个账户</string>
Expand Down Expand Up @@ -138,7 +137,6 @@
<string name="error_when_load_starred">加载星标文件失败</string>
<string name="open_as">打开为</string>
<string name="select_upload_files">请选择要上传的文件</string>
<string name="cancel">取消上传</string>
<string name="upload">上传</string>
<string name="storage_removed">存储卡已被移出</string>
<string name="error_selecting_file">选择文件时出错</string>
Expand Down
4 changes: 2 additions & 2 deletions src/com/seafile/seadroid2/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public static int getResIdforMimetype(String mimetype) {
} else if (mimetype.contains("presentationml")) {
return R.drawable.file_ms_ppt;
}
} else if (mimetype.contains("application")) {
return R.drawable.file_binary;
// } else if (mimetype.contains("application")) {
// return R.drawable.file_binary;
}

return R.drawable.file;
Expand Down
2 changes: 1 addition & 1 deletion src/com/seafile/seadroid2/ui/SeafItemAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private View getDirentView(SeafDirent dirent, View convertView, ViewGroup parent

viewHolder.title.setText(dirent.getTitle());
if (dirent.isDir()) {
viewHolder.subtitle.setText("");
viewHolder.subtitle.setText(dirent.getSubtitle());
viewHolder.icon.setImageResource(dirent.getIcon());
viewHolder.action.setVisibility(View.VISIBLE);
setDirAction(dirent, viewHolder, position);
Expand Down
5 changes: 2 additions & 3 deletions src/com/seafile/seadroid2/ui/TabsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
public class TabsFragment extends SherlockFragment {

private static final int[] ICONS = new int[] {
R.drawable.perm_group_library, R.drawable.perm_group_starred,
R.drawable.perm_group_activity

R.drawable.tab_library, R.drawable.tab_starred,
R.drawable.tab_activity
};

private int currentPosition = 0;
Expand Down

0 comments on commit b0e072a

Please sign in to comment.