"旋转"不填写布局

时间:2017-02-01 07:16:45

标签: android xamarin rotation signaturepad

我有/etc/mongodb.conf

Layout

创建此<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutSign" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:minWidth="1000dp" android:minHeight="1000dp" android:padding="2dp"> <LinearLayout android:orientation="horizontal" android:minWidth="25px" android:minHeight="25px" android:weightSum="100" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/linearLayout8" android:layout_weight="1"> <LinearLayout android:orientation="vertical" android:minWidth="25px" android:minHeight="25px" android:id="@+id/layoutSignaturePad" android:background="#FF0055" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="80" android:padding="10dp"> <SignaturePad.SignaturePadView android:minWidth="25px" android:minHeight="25px" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/signaturePad" /> </LinearLayout> <LinearLayout android:orientation="vertical" android:minWidth="25px" android:minHeight="25px" android:layout_weight="20" android:layout_width="0dp" android:layout_height="match_parent" android:id="@+id/linearLayout14" android:weightSum="100" android:background="#00FFFF"> <TextView android:text="Text" android:layout_width="match_parent" android:layout_height="0dp" android:id="@+id/textSignInfoTemp" android:layout_weight="0" /> <Button android:text="Button" android:id="@+id/button1" android:rotation="90" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="50" /> <Button android:text="Button" android:id="@+id/button1" android:rotation="90" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="50" /> </LinearLayout> </LinearLayout> </LinearLayout>

enter image description here

现在我想通过将轮播设置为90来轮换Signature Pad,但这会导致View View Width在SignaturePad上没有更改HeightLayout第一张图片上的灰线在第二张图片上不可见。)

enter image description here

我尝试更改SignaturePadView和两者的轮播,但未获得预期结果。

我的应用程序上的所有屏幕都处于纵向模式,并且DialogFragment正在Landscape中弹出Orientation,我想假设它处于Activity模式而不更改Activity中的SignaturePad或仅为此屏幕创建新的Layout

问题:如何轮换{{1}}并让其填充其父{{1}}?

0 个答案:

没有答案
相关问题