Search in sources :

Example 1 with AdMenuItemView

use of com.frostwire.android.gui.views.AdMenuItemView in project frostwire by frostwire.

the class NavigationMenu method initAdMenuItemListener.

private AdMenuItemView initAdMenuItemListener(final Activity activity) {
    AdMenuItemView adMenuItemView = activity.findViewById(R.id.slidermenu_ad_menuitem);
    RelativeLayout menuAd = activity.findViewById(R.id.view_ad_menu_item_ad);
    menuAd.setOnClickListener(v -> {
        Intent intent = new Intent(activity, BuyActivity.class);
        activity.startActivity(intent);
    });
    return adMenuItemView;
}
Also used : AdMenuItemView(com.frostwire.android.gui.views.AdMenuItemView) RelativeLayout(android.widget.RelativeLayout) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 RelativeLayout (android.widget.RelativeLayout)1 AdMenuItemView (com.frostwire.android.gui.views.AdMenuItemView)1