我有以下textview,它使用簡單的導航欄PNG文件作爲其背景圖像。 下面的代碼:Android:縮放TextView背景圖像以適合XY
<TextView
android:id="@+id/titleNameText"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:background="@drawable/navbar"
android:gravity="center_horizontal"
android:singleLine="true"
android:textColor="@color/WHITE"
android:textSize="18sp"
android:textStyle="bold" />
的問題是,在更大的屏幕導航欄不水平擴展以適應屏幕,我該如何解決這個問題?