public interface

CustomFloatAttributes

 androidx.constraintlayout.motion.widget.CustomFloatAttributes

Gradle dependencies

compile group: 'androidx.constraintlayout', name: 'constraintlayout', version: '2.2.0-alpha01'

  • groupId: androidx.constraintlayout
  • artifactId: constraintlayout
  • version: 2.2.0-alpha01

Artifact androidx.constraintlayout:constraintlayout:2.2.0-alpha01 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.constraintlayout:constraintlayout com.android.support.constraint:constraint-layout

Overview

Interface to custom float attributes

Summary

Methods
public floatget(java.lang.String attribute)

get the value of the attributes

public java.lang.StringgetListOfAttributes()

Get list of attributes

public voidset(java.lang.String attribute, float value)

set the attributes

Methods

public java.lang.String getListOfAttributes()

Get list of attributes

Returns:

public void set(java.lang.String attribute, float value)

set the attributes

Parameters:

attribute:
value:

public float get(java.lang.String attribute)

get the value of the attributes

Parameters:

attribute:

Returns:

Source

/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package androidx.constraintlayout.motion.widget;

/**
 * Interface to custom float attributes
 * @DoNotShow
 */
public interface CustomFloatAttributes {
    /**
     * Get list of attributes
     * @return
     */
    String[]getListOfAttributes();

    /**
     * set the attributes
     * @param attribute
     * @param value
     */
    void set(String attribute, float value);

    /**
     * get the value of the attributes
     * @param attribute
     * @return
     */
    float get(String attribute);
}