IはRelativeViewで次のTextViewを実装:のTextView背景リソース
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@drawable/bg"/>
問題は、アプリケーションの実行中にサイズが画面の15%に動的に設定されることです。しかし、私がこれを行うとき、バックグラウンドのressourceはTextViewのサイズを取得しません。元のサイズは150x150 px
です。これを避けるために私は何ができますか?
(それはよくして見ていないので、私は小さいressourceを取るしたくない)
9パッチ画像を使用してください。 –