Search in sources :

Example 11 with GamedayTickerClickListener

use of com.thebluealliance.androidclient.listeners.GamedayTickerClickListener in project the-blue-alliance-android by the-blue-alliance.

the class AwardsPostedNotificationItemView method bind.

@Override
public void bind(AwardsPostedNotificationViewModel model) {
    header.setText(getContext().getString(R.string.gameday_ticker_event_title_format, EventHelper.shortName(model.getEventName()), EventHelper.getShortCodeForEventKey(model.getEventKey()).toUpperCase()));
    details.setText(getContext().getString(R.string.notification_awards_updated_gameday_details));
    time.setText(model.getTimeString());
    summaryContainer.setOnClickListener(new GamedayTickerClickListener(getContext(), model.getIntent()));
}
Also used : GamedayTickerClickListener(com.thebluealliance.androidclient.listeners.GamedayTickerClickListener)

Example 12 with GamedayTickerClickListener

use of com.thebluealliance.androidclient.listeners.GamedayTickerClickListener in project the-blue-alliance-android by the-blue-alliance.

the class CompLevelStartingNotificationItemView method bind.

@Override
public void bind(CompLevelStartingNotificationViewModel model) {
    header.setText(model.getHeader());
    details.setText(model.getDetails());
    time.setText(model.getTimeString());
    summaryContainer.setOnClickListener(new GamedayTickerClickListener(getContext(), model.getIntent()));
}
Also used : GamedayTickerClickListener(com.thebluealliance.androidclient.listeners.GamedayTickerClickListener)

Example 13 with GamedayTickerClickListener

use of com.thebluealliance.androidclient.listeners.GamedayTickerClickListener in project the-blue-alliance-android by the-blue-alliance.

the class AwardsPostedNotification method getView.

@Override
public View getView(Context c, LayoutInflater inflater, View convertView) {
    ViewHolder holder;
    if (convertView == null || !(convertView.getTag() instanceof ViewHolder)) {
        convertView = inflater.inflate(R.layout.list_item_notification_awards_posted, null, false);
        holder = new ViewHolder();
        holder.header = (TextView) convertView.findViewById(R.id.card_header);
        holder.details = (TextView) convertView.findViewById(R.id.details);
        holder.time = (TextView) convertView.findViewById(R.id.notification_time);
        holder.summaryContainer = (LinearLayout) convertView.findViewById(R.id.summary_container);
        convertView.setTag(holder);
    } else {
        holder = (ViewHolder) convertView.getTag();
    }
    holder.header.setText(c.getString(R.string.gameday_ticker_event_title_format, EventHelper.shortName(eventName), EventHelper.getShortCodeForEventKey(eventKey).toUpperCase()));
    holder.details.setText(c.getString(R.string.notification_awards_updated_gameday_details));
    holder.time.setText(getNotificationTimeString(c));
    holder.summaryContainer.setOnClickListener(new GamedayTickerClickListener(c, this));
    return convertView;
}
Also used : GamedayTickerClickListener(com.thebluealliance.androidclient.listeners.GamedayTickerClickListener)

Aggregations

GamedayTickerClickListener (com.thebluealliance.androidclient.listeners.GamedayTickerClickListener)13 MatchListElement (com.thebluealliance.androidclient.listitems.MatchListElement)4