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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

python - PyInstaller UAC not working in onefile mode -