Skip to content

Commit

Permalink
Added new menu icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikramjeet Singh authored and Vikramjeet Singh committed Feb 13, 2015
1 parent 2809afb commit c51cd79
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 12 deletions.
Binary file added app/src/main/ic_share-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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);


}


Expand Down
Binary file added app/src/main/res/drawable-hdpi/ic_action_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 app/src/main/res/drawable-mdpi/ic_action_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 app/src/main/res/drawable-xhdpi/ic_action_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 app/src/main/res/drawable-xxhdpi/ic_action_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions app/src/main/res/menu/menu_image_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
app:showAsAction="ifRoom|collapseActionView"
app:actionViewClass="android.support.v7.widget.SearchView" />

<item android:id="@+id/miFilters"
<item android:id="@+id/miShare"
android:orderInCategory="2"
android:title="@string/action_share"
app:showAsAction="ifRoom"
android:icon="@drawable/ic_action_share" />

<item android:id="@+id/miFilters"
android:orderInCategory="3"
android:title="@string/action_settings"
app:showAsAction="ifRoom"
android:icon="@drawable/ic_launcher" />
android:icon="@drawable/ic_settings_filter" />

</menu>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<string name="app_name">GridImageSearch</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings/Filter</string>
<string name="action_share">Share</string>
<string name="search_label">Search</string>
<string name="search_prompt">Enter search query</string>
<string name="image_title">Image Title</string>
Expand Down

0 comments on commit c51cd79

Please sign in to comment.