public static boolean sameViews ( View ... views ) { ViewId first_view_id = views [ 0 ] . getViewId ( ) ; return Stream . of ( views ) . allMatch ( v -> v . getViewId ( ) . equals ( first_view_id ) ) ; }
Returns true if all views are the same . Uses the view IDs for comparison