diff --git a/docs-android/app/src/main/java/com/sismics/docs/MainApplication.java b/docs-android/app/src/main/java/com/sismics/docs/MainApplication.java index c381cec1..727b8b4e 100644 --- a/docs-android/app/src/main/java/com/sismics/docs/MainApplication.java +++ b/docs-android/app/src/main/java/com/sismics/docs/MainApplication.java @@ -20,10 +20,8 @@ public class MainApplication extends Application { JSONObject json = PreferenceUtil.getCachedJson(getApplicationContext(), PreferenceUtil.PREF_CACHED_USER_INFO_JSON); ApplicationContext.getInstance().setUserInfo(getApplicationContext(), json); - // TODO Tags in drawer & search on select // TODO Sharing - // TODO Error feedback - // TODO Printing + // TODO Error feedback (all REST request, even login) // TODO Fullscreen preview // TODO Caching preferences diff --git a/docs-android/app/src/main/java/com/sismics/docs/activity/MainActivity.java b/docs-android/app/src/main/java/com/sismics/docs/activity/MainActivity.java index d16bf54e..f87762bc 100644 --- a/docs-android/app/src/main/java/com/sismics/docs/activity/MainActivity.java +++ b/docs-android/app/src/main/java/com/sismics/docs/activity/MainActivity.java @@ -100,6 +100,19 @@ public class MainActivity extends ActionBarActivity { } }); + // Click on All documents + View allDocumentsLayout = findViewById(R.id.allDocumentsLayout); + allDocumentsLayout.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + SearchView searchView = (SearchView) searchItem.getActionView(); + searchView.setQuery(null, true); + searchView.setIconified(true); + drawerLayout.closeDrawers(); + + } + }); + handleIntent(getIntent()); } diff --git a/docs-android/app/src/main/res/drawable-xhdpi/ic_work_grey600_24dp.png b/docs-android/app/src/main/res/drawable-xhdpi/ic_work_grey600_24dp.png new file mode 100644 index 00000000..00cc7845 Binary files /dev/null and b/docs-android/app/src/main/res/drawable-xhdpi/ic_work_grey600_24dp.png differ diff --git a/docs-android/app/src/main/res/drawable-xxhdpi/ic_work_grey600_24dp.png b/docs-android/app/src/main/res/drawable-xxhdpi/ic_work_grey600_24dp.png new file mode 100644 index 00000000..1ec33464 Binary files /dev/null and b/docs-android/app/src/main/res/drawable-xxhdpi/ic_work_grey600_24dp.png differ diff --git a/docs-android/app/src/main/res/layout/main_activity.xml b/docs-android/app/src/main/res/layout/main_activity.xml index d8fc692b..58832008 100644 --- a/docs-android/app/src/main/res/layout/main_activity.xml +++ b/docs-android/app/src/main/res/layout/main_activity.xml @@ -17,11 +17,12 @@ android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" - android:gravity="center" android:orientation="vertical" android:background="#fff" android:elevation="5dp"> + + + + + + + + + + + + + + + + + + + + Please check the server URL and try again A crash occurred, a report has been sent to resolve this problem Created date + Download current file + Downloading file number %1s + Download all files + Downloading document + Search documents + All documents + All tags Invalid email @@ -26,10 +33,5 @@ Too long (max. %d) Required Only letters and numbers - Download current file - Downloading file number %1s - Download all files - Downloading document - Search documents