1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.android.setupdesign; 18 19 import android.util.AttributeSet; 20 import android.widget.LinearLayout; 21 import androidx.annotation.Nullable; 22 import com.google.android.setupcompat.internal.TemplateLayout; 23 import com.google.android.setupcompat.template.FooterBarMixin; 24 25 /** A {@link Mixin} to get the container of footer bar for usage. */ 26 public class LoadingFooterBarMixin extends FooterBarMixin { 27 28 /** 29 * Creates a mixin for managing buttons on the footer. 30 * 31 * @param layout The {@link TemplateLayout} containing this mixin. 32 * @param attrs XML attributes given to the layout. 33 * @param defStyleAttr The default style attribute as given to the constructor of the layout. 34 */ LoadingFooterBarMixin( TemplateLayout layout, @Nullable AttributeSet attrs, int defStyleAttr)35 public LoadingFooterBarMixin( 36 TemplateLayout layout, @Nullable AttributeSet attrs, int defStyleAttr) { 37 super(layout, attrs, defStyleAttr); 38 } 39 40 @Override getButtonContainer()41 public LinearLayout getButtonContainer() { 42 return super.getButtonContainer(); 43 } 44 } 45