diff --git a/app/src/main/ic_share-web.png b/app/src/main/ic_share-web.png new file mode 100644 index 0000000..3cc3e31 Binary files /dev/null and b/app/src/main/ic_share-web.png differ diff --git a/app/src/main/java/com/example/vikramjeet/activities/ImageDetailActivity.java b/app/src/main/java/com/example/vikramjeet/activities/ImageDetailActivity.java index cbdd5da..c04563e 100644 --- a/app/src/main/java/com/example/vikramjeet/activities/ImageDetailActivity.java +++ b/app/src/main/java/com/example/vikramjeet/activities/ImageDetailActivity.java @@ -23,22 +23,12 @@ protected void onCreate(Bundle savedInstanceState) { // Find imageView TouchImageView ivImageDetail = (TouchImageView) findViewById(R.id.ivImageDetail); // Load the image into image view using picasso -// Picasso.with(this) -// .load(imageUrl) -// .resize(200, 200) -// .centerCrop() -// .placeholder(R.drawable.image_placeholder) -// .error(R.drawable.image_error) -// .into(ivImageDetail); - Picasso.with(this) .load(imageUrl) .placeholder(R.drawable.image_placeholder) .error(R.drawable.image_error) .resize(Integer.parseInt(image.getWidth()), Integer.parseInt(image.getHeight())) .into(ivImageDetail); - - } diff --git a/app/src/main/res/drawable-hdpi/ic_action_share.png b/app/src/main/res/drawable-hdpi/ic_action_share.png new file mode 100644 index 0000000..615c9cc Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_share.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_settings_filter.png b/app/src/main/res/drawable-hdpi/ic_settings_filter.png new file mode 100644 index 0000000..f76a718 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_settings_filter.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_share.png b/app/src/main/res/drawable-mdpi/ic_action_share.png new file mode 100644 index 0000000..5b677e2 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_share.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_settings_filter.png b/app/src/main/res/drawable-mdpi/ic_settings_filter.png new file mode 100644 index 0000000..34485cd Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_settings_filter.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_share.png b/app/src/main/res/drawable-xhdpi/ic_action_share.png new file mode 100644 index 0000000..3a63dde Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_share.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_settings_filter.png b/app/src/main/res/drawable-xhdpi/ic_settings_filter.png new file mode 100644 index 0000000..f43a842 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_settings_filter.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_share.png b/app/src/main/res/drawable-xxhdpi/ic_action_share.png new file mode 100644 index 0000000..2643062 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_share.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_settings_filter.png b/app/src/main/res/drawable-xxhdpi/ic_settings_filter.png new file mode 100644 index 0000000..8d921e7 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_settings_filter.png differ diff --git a/app/src/main/res/menu/menu_image_search.xml b/app/src/main/res/menu/menu_image_search.xml index 2dc0972..96e11e4 100644 --- a/app/src/main/res/menu/menu_image_search.xml +++ b/app/src/main/res/menu/menu_image_search.xml @@ -9,10 +9,16 @@ app:showAsAction="ifRoom|collapseActionView" app:actionViewClass="android.support.v7.widget.SearchView" /> - + + + android:icon="@drawable/ic_settings_filter" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7184e9b..f0ab0c6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,6 +4,7 @@ GridImageSearch Hello world! Settings/Filter + Share Search Enter search query Image Title