android - How to use different percent values for guidelines in ConstraintLayout? -


i use constraint layout in activity , set different percent values guidelines (app:layout_constraintguide_percent="0.5"). want put values different dimens files (dimens-lands, dimens-sw600dp etc.) problem can't find way how put percent value dimens.xml. there way how keep different percent values multiple screens in res/? how percents declared - float value:

<android.support.constraint.guideline         android:id="@+id/center_guideline"         style="@style/layout.guideline"         android:orientation="vertical"         app:layout_constraintguide_percent="0.5" /> 

in end found out way how store value decimal point (float) in res/values. must stored way:

<resources>      <item format="float" name="guideline_right" type="dimen">0.84</item> </resources> 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -