我需要将视图放在边框中,以便它位于布局的最左侧,并希望将其应用于所有不同手机的尺寸!?
示例:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="285dp"
android:text="@string/textView"
android:textSize="28sp" />
</LinearLayout>
现在此代码输出以下内容 Layout,我需要在不使用边距来匹配所有手机尺寸的情况下进行此操作