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.
プログラムでプログレスバーを作成しましたが、linearlayout 内で表示されたときに、画面の中央と他のビューの上に保持するにはどうすればよいですか?
RelativeLayoutの代わりにa を使用することを検討し、: = trueLinearLayoutに属性を追加します。ProgressBarcenterInParent
RelativeLayout
LinearLayout
ProgressBar
centerInParent
ビューを別のビューの下に隠すことは、でのみ実行できますRelativeLayout(またはFrameLayout、よりトリッキーです)。
FrameLayout