forked from google/hover
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request google#5 from matthew-carroll/develop
Release 0.9.4
- Loading branch information
Showing
23 changed files
with
508 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
version = '0.9.3' | ||
version = '0.9.4' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/menus/DoNothingMenuAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.mattcarroll.hover.defaulthovermenu.menus; | ||
|
||
import android.content.Context; | ||
import android.support.annotation.NonNull; | ||
|
||
import io.mattcarroll.hover.Navigator; | ||
|
||
/** | ||
* {@link MenuAction} that does nothing. Use this for temporary stubbing of menu item behavior. | ||
*/ | ||
public class DoNothingMenuAction implements MenuAction { | ||
|
||
@Override | ||
public void execute(@NonNull Context context, @NonNull Navigator navigator) { | ||
// Do nothing. | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/menus/Menu.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.mattcarroll.hover.defaulthovermenu.menus; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* A {@code Menu} contains {@link MenuItem}s. | ||
*/ | ||
public class Menu { | ||
|
||
private final String mTitle; | ||
private final List<MenuItem> mMenuItemList; | ||
|
||
public Menu(@NonNull String title, @NonNull List<MenuItem> menuItemList) { | ||
mTitle = title; | ||
mMenuItemList = menuItemList; | ||
} | ||
|
||
@NonNull | ||
public String getTitle() { | ||
return mTitle; | ||
} | ||
|
||
@NonNull | ||
public List<MenuItem> getMenuItemList() { | ||
return mMenuItemList; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.