Android UIとリソース
View、Layout、RecyclerView、リソースと国際化
30 面接問題·
Junior
1ViewとViewGroupの違いは何ですか?
1
ViewとViewGroupの違いは何ですか?
回答
ViewはすべてのUIコンポーネント(Button、TextView、ImageViewなど)の基底クラスです。ViewGroupはViewのサブクラスで、他のView(またはViewGroup)を含みます。ViewGroupはレイアウトコンテナです:LinearLayout、RelativeLayout、ConstraintLayout、FrameLayoutなど。
2LayoutInflaterとは何ですか?
2
LayoutInflaterとは何ですか?
回答
LayoutInflaterは、XMLレイアウトファイルを対応するViewオブジェクトに変換するために使用されます。onCreate()でsetContentView()と共に、Adapterでリストアイテムを作成する際、そしてFragmentで不可欠です。メソッド:LayoutInflater.from(context).inflate(R.layout.my_layout, parent, false)。
3Viewを水平または垂直の行に配置するLayoutはどれですか?
3
Viewを水平または垂直の行に配置するLayoutはどれですか?
回答
LinearLayoutは子要素を1行に配置します(android:orientation='horizontal'で水平、'vertical'で垂直)。最もシンプルなレイアウトです。layout_weightで利用可能なスペースの分配を制御できます。
4
Viewを互いに相対的に配置できるLayoutはどれですか?
5
複雑なインターフェースにGoogleが推奨するLayoutはどれですか?
+27 面接問題
その他のAndroid面接トピック
Android の基礎
Junior
24問Androidライフサイクル
Junior
30問Android ナビゲーション
Junior
26問Android データ管理
Junior
29問Android ネットワーキング
Junior
29問Android テスト
Junior
28問Android Gradle
Junior
26問Android向けKotlin言語の基礎
Junior
24問Room Database
Mid-Level
25問バックグラウンド処理
Mid-Level
18問Jetpack Compose
Mid-Level
28問パーミッションとデバイス機能
Mid-Level
21問Android向けFirebase
Mid-Level
23問Android MVVM Architecture
Mid-Level
18問Androidネットワーキング上級
Mid-Level
13問Kotlinのコレクションと演算子
Mid-Level
20問Kotlin Coroutinesとflow
Mid-Level
20問Android の依存性注入
Mid-Level
15問Android MVI Architecture
Mid-Level
17問Android Clean Architecture
Senior
21問Android Compose 上級
Senior
17問Android Performance and Monitoring
Senior
13問Android Security and Privacy
Senior
18問Android CI/CD and Release
Senior
15問Android UX and Form Factors
Senior
18問Android Testing Advanced
Senior
18問