मुझे बस आश्चर्य है कि क्या मैं dimens.xml के अंदर कुछ गणना कर सकता हूं? मैं इसे करने की कोशिश की है, लेकिन काम नहीं करता:क्या मैं dimens.xml के अंदर गणना कर सकता हूं?
dimens.xml
<dimen name="wrap_content">-2dp</dimen>
<dimen name="width">@dimen/wrap_content * 0.5</dimen>
<dimen name="height">@dimen/wrap_content * 0.5</dimen>
my_layout.xml
<include
android:id="@+id/main_right_menu_layout"
android:layout_width="@dimen/width"
android:layout_height="@dimen/height"
layout="@layout/main_right_menu_layout" />
अभी तक संभव नहीं है – androidu
प्रोग्रामेटिक रूप से संभव हो सकता है लेकिन मुझे यकीन नहीं है कि आप xml में टीआई कर सकते हैं या नहीं। –