0
集我有一个片段CustomSwitchFragment,我想用如下:如何强制嵌入机器人片段设置为固定宽度
<fragment android:name="m6world.test_toggle_yes_no.CustomSwitchFragment"
android:id="@+id/custom_switch_fragment"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:orientation="horizontal" />
我不希望有输入80dp,我会喜欢能够把wrap_content和片段将被设置为我创建它时使用的任何宽度。 基本上我不想告诉那些要使用我的片段的人,将它设置为80dp。