我希望当视图不适合其容器时,从顶部而不是从底部裁剪视图。这是我的布局:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height=â100dpâ
<View
android:id="@+id/my_view"
android:layout_width="match_parent"
android:layout_height=â80dp">
</FrameLayout>
现在,my_view的底部20dp被裁剪。我应该怎么做才能裁剪my_view的顶部20dp而不是底部?