2

同様の問題を調べましたが、それらの解決策は機能していません。私の相対レイアウトは左パディングを追加しています。

これは私のXMLです:

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical" >

    <RelativeLayout 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_margin="0dp"
         android:fillViewport="true"
         android:padding="0dp" >

        <ImageView
            android:id="@+id/imageViewUserProfile"
            android:layout_width="114dp"
            android:layout_height="98dp"
            android:layout_alignParentTop="false"
            android:layout_margin="0dp"
            android:adjustViewBounds="true"
            android:padding="0dp"
            android:src="@drawable/default_t" />

        <TextView
            android:id="@+id/textViewUserProfileName"
            android:layout_width="fill_parent"
            android:layout_height="44dp"
            android:layout_alignParentTop="true"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@id/imageViewUserProfile"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TextView 
            android:id="@+id/textViewUserProfileHighlights"
            android:layout_width="fill_parent"
            android:layout_height="30dp"
            android:layout_toRightOf="@id/imageViewUserProfile"
            android:layout_below="@id/textViewUserProfileName"/>
    </RelativeLayout>

</LinearLayout>

親の LinearLayout を削除して、左のパディングが少なくとも RelativeLayout ブロックから来ていることを再確認しました。私は他の人のために働いたもののほとんどを試しました. どんな助けや提案も大歓迎です。

4

1 に答える 1