之間的空間這是我的代碼:安卓:圖片和文字
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:gravity="center"
android:drawableRight="@drawable/error_image"
android:visibility="invisible"
android:textColor="#aa0000"
android:textStyle="bold"
android:textSize="16dp"/>
還有就是圖片和文字之間的空間,我想減少這種空間,我該怎麼辦呢?
你嘗試改變重力剩下什麼? –
@AhishekShukla:當我將它設置爲左側時,圖像位於text.how下方,我可以修復它嗎? –
設置填充。它會訣竅 –