嗨,我在 Android Xamarin 项目的 PDFViewerCtrl 中有这个 CustomRelativeLayout:
<pdftron.PDF.Tools.CustomRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="250dp"
android:layout_height="250dp"
app:posX="50"
app:posY="150"
app:pageNum="1"
android:background="#33AFAFFF"
app:zoomWithParent="true">
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/holo_red_dark" />
</pdftron.PDF.Tools.CustomRelativeLayout>
位置 x=50 y=150 的 50*150 矩形。但我希望在页面位置 x=50 y=150 处绘制一个 250x250 的矩形。有什么我没有考虑或我做错了吗?我想扩展 RelativeLayout 以理想地匹配父 PDFPage。
谢谢。