This commit is contained in:
seven332 committed 2014-09-17 11:58:41 +08:00
1 parent f2a1ad7df4
commit b759ee0997
8 files changed
+17 -12

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@
<!-- Send Crash -->
<string name="dialog_send_crash_title">这很重要</string>
<string name="dialog_send_crash_plain">上次该应用崩溃了。你愿意把日志发送给开发者以便以后得到更好的用户体验么?</string>
<string name="dialog_send_crash_plain">上次该应用崩溃了。你愿意把错误日志发送给开发者以便以后得到更好的用户体验么?(以电子邮件的形式发送)</string>
<string name="dialog_send_crash_yes">我愿意</string>
<string name="dialog_send_crash_no">门儿都没有</string>
<string name="dialog_wait_send_crash_msg">请在发送完日志后关闭该窗口</string>
+1 -1
View File
@@ -49,7 +49,7 @@
<!-- Send Crash -->
<string name="dialog_send_crash_title">這很重要</string>
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把日誌發送給開發者以便以後得到更好的用戶體驗麼?</string>
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌發送給開發者以便以後得到更好的用戶體驗麼?(以電子郵件的形式發送)</string>
<string name="dialog_send_crash_yes">我願意</string>
<string name="dialog_send_crash_no">門兒都沒有</string>
<string name="dialog_wait_send_crash_msg">請在發送完日誌後關閉該窗口</string>
+1 -1
View File
@@ -49,7 +49,7 @@
<!-- Send Crash -->
<string name="dialog_send_crash_title">這很重要</string>
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把日誌發送給開發者以便以後得到更好的使用者體驗麼?</string>
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌發送給開發者以便以後得到更好的使用者體驗麼?(以電子郵件的形式發送)</string>
<string name="dialog_send_crash_yes">我願意</string>
<string name="dialog_send_crash_no">門兒都沒有</string>
<string name="dialog_wait_send_crash_msg">請在發送完日誌後關閉該視窗</string>
+1 -1
View File
@@ -64,7 +64,7 @@
<!-- Send Crash -->
<string name="dialog_send_crash_title">It is important</string>
<string name="dialog_send_crash_plain">This application crashed last time. Would you mind to send logcat to the developer for a better user experience in future ?</string>
<string name="dialog_send_crash_plain">This application crashed last time. Would you mind to send logcat to the developer for a better user experience in future ? (via e-mail)</string>
<string name="dialog_send_crash_yes">Never mind</string>
<string name="dialog_send_crash_no">Yes, I would</string>
<string name="dialog_wait_send_crash_msg">Please close the dialog after sending logcat</string>
@@ -92,8 +92,8 @@ public class GalleryView extends GLView
private static final float[] CENTER_AREA_SCALE = {2/7.0f, 3/8.0f, 5/7.0f, 5/8.0f};
private static final float MILLSEC_PER_DIX = 0.2f;
private static final float CHANGE_PAGE_PROPORTION = 0.05f;
private static final float CHANGE_PAGE_OFFSET = Ui.dp2pix(12);
private static final float CHANGE_PAGE_PROPORTION = 0.1f;
private static final float CHANGE_PAGE_OFFSET = Ui.dp2pix(24);
// TODO 根据界面的大小调整缩放界限
private static final float SCALE_MIN = 1/10.0f;
@@ -185,7 +185,6 @@ public class DownloadActivity extends AbsActivity {
.inflate(R.layout.download_list_item, parent, false);
CardViewSalon.reformWithShadow(((ViewGroup)convertView).getChildAt(0),
0xFFFAFAFA, 0, false); // TODO
mWindowsAnimate.addRippleEffect(((ViewGroup)convertView).getChildAt(0), true);
((TextView)convertView.findViewById(R.id.action)).setTextColor(mThemeColor);
}
LoadImageView thumb = (LoadImageView)convertView.findViewById(R.id.thumb);
@@ -150,6 +150,7 @@ public class GalleryListActivity extends AbsGalleryActivity
private EhClient mClient;
private Resources mResources;
private WindowsAnimate mWindowsAnimate;
private SearchRecentSuggestions mSuggestions;
private SlidingMenu mSlidingMenu;
private View mMenuLeft;
@@ -514,7 +515,7 @@ public class GalleryListActivity extends AbsGalleryActivity
String filePath = (String)mSearchImageText.getText();
File file = new File(filePath);
if (!file.exists()) {
MaterialToast.showToast("图片不存在");
MaterialToast.showToast("图片不存在"); // TODO
} else {
if (!file.canRead()) {
MaterialToast.showToast("图片不可读");
@@ -942,6 +943,9 @@ public class GalleryListActivity extends AbsGalleryActivity
mResources = getResources();
mWindowsAnimate = new WindowsAnimate();
mWindowsAnimate.init(this);
mSuggestions = new SearchRecentSuggestions(
GalleryListActivity.this, SimpleSuggestionProvider.AUTHORITY,
SimpleSuggestionProvider.MODE);
handleIntent(getIntent());
// Check show drawer or not
@@ -1259,10 +1263,7 @@ public class GalleryListActivity extends AbsGalleryActivity
@Override
public boolean onQueryTextSubmit(String query) {
// Store suggestion
SearchRecentSuggestions suggestions = new SearchRecentSuggestions(
GalleryListActivity.this, SimpleSuggestionProvider.AUTHORITY,
SimpleSuggestionProvider.MODE);
suggestions.saveRecentQuery(query, null);
mSuggestions.saveRecentQuery(query, null);
// collapse search view
if (mSearchItem != null)
mSearchItem.collapseActionView();
@@ -263,6 +263,9 @@ public class ExpandingListView extends ListView {
setSelectionFromTop(firstVisiblePosition, firstChildStartTop - deltaTop - getPaddingTop());
/* Request another layout to update the layout parameters of the cells.*/
requestLayout();
/* Return false such that the ListView does not redraw its contents on
* this layout but only updates all the parameters associated with its
* children.*/
@@ -458,6 +461,8 @@ public class ExpandingListView extends ListView {
setSelectionFromTop(firstVisiblePosition, firstChildStartTop - deltaTop - getPaddingTop());
requestLayout();
return false;
}