@android: dimen / abc_action_bar_default_height_material

1

I would like to know why this part of my code in Android version "3.1.4" botrates me. If I already have in my file "build.gradle" the "implementation" com.android.support:design:28.0.0-rc01'"

    
asked by Gian Franco Alexis Poma Vidal 13.08.2018 в 10:35
source

1 answer

0

This dimension was used in old versions to determine the height of action bar , currently it does not exist.

<!-- Default height of an action bar. -->
<dimen name="abc_action_bar_default_height_material">56dp</dimen>

You can add this value to your dimens.mxl file. If this file does not exist, to create it you do it this way:

create a file called dimens.xml and add the entry:

<?xml version="1.0" encoding="utf-8"?>
<resources>    
    <dimen name="abc_action_bar_default_height_material">56dp</dimen>   
</resources>

and obtain the reference in this way:

android:layout_height="@dimen/abc_action_bar_default_height_material"
    
answered by 13.08.2018 / 16:27
source