aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/menu/MenuRow.java
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2016-08-31 16:00:31 -0700
committerNick Chalko <nchalko@google.com>2016-09-07 05:38:33 -0700
commit65fda1eaa94968bb55d5ded10dcb0b3f37fb05f2 (patch)
treeffc8e4c5a71c130d3782bf03e674f9d77ca77f72 /src/com/android/tv/menu/MenuRow.java
parentad819718f80e796cf039f96537b5c8cd127c042b (diff)
downloadTV-65fda1eaa94968bb55d5ded10dcb0b3f37fb05f2.tar.gz
Sync to ub-tv-dev at http://ag/1415258
Bug: 30970843 Change-Id: I0aa43094d103de28956a3d9b56a594ea46a20543
Diffstat (limited to 'src/com/android/tv/menu/MenuRow.java')
-rw-r--r--src/com/android/tv/menu/MenuRow.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/tv/menu/MenuRow.java b/src/com/android/tv/menu/MenuRow.java
index fe73edd2..6f98e615 100644
--- a/src/com/android/tv/menu/MenuRow.java
+++ b/src/com/android/tv/menu/MenuRow.java
@@ -17,6 +17,7 @@
package com.android.tv.menu;
import android.content.Context;
+import android.view.View;
/**
* A base class of the item which will be displayed in the main menu.
@@ -30,6 +31,8 @@ public abstract class MenuRow {
private final int mHeight;
private final Menu mMenu;
+ private MenuRowView mMenuRowView;
+
// TODO: Check if the heightResId is really necessary.
public MenuRow(Context context, Menu menu, int titleResId, int heightResId) {
this(context, menu, context.getString(titleResId), heightResId);
@@ -71,6 +74,20 @@ public abstract class MenuRow {
}
/**
+ * Sets the menu row view.
+ */
+ public void setMenuRowView(MenuRowView menuRowView) {
+ mMenuRowView = menuRowView;
+ }
+
+ /**
+ * Returns the menu row view.
+ */
+ protected MenuRowView getMenuRowView() {
+ return mMenuRowView;
+ }
+
+ /**
* Updates the contents in this row.
* This method is called only by the menu when necessary.
*/