Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カスタムビューで背景を作成するにはどうすればよいですか?私はビューペインターを作成しました。ビューのキャンバスを描画せずに、ビューの下にあるフォトショップのようにグリッドを使用してバックグラウンドを作成する必要があります。どうも。
背景にしたいパターンをdrawableフォルダに追加し、
レイアウトで次のように呼び出します
android:background="@drawable/your_pattern"