次のビューオブジェクトを使用したレイアウトのアプリがあります。 2つのスピナー、2つのボタン、1シークバーと基本的に私が描くキャンバスであるカスタムビューオブジェクトです。UIの画面に表示されるビューの順序を制御するものは何ですか?
何らかの理由で、スピナーとシークバーがキャンバスの上に描画されますが、2つのボタンは描画されません。私はなぜこれが混乱しているのですか?
これはどのようにして決定されますか?
ありがとうございました。
編集:XML(要望に応じて、これを修正する前にカスタムビューを上に移動します)。注文がXMLベースであると想定されている場合、カスタムビューは、それがしなかったスピナーをカバーしていたはずです。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Spinner
android:id="@+id/cc_component"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:drawSelectorOnTop="true"
android:prompt="@string/cc_component_spinner" />
<TextView
android:id="@+id/desc"
android:text="@string/step1_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dip"
android:visibility="gone"
android:layout_centerHorizontal="true"
android:textSize="25sp"/>
<Button
android:id="@+id/switch_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"/>
<com.cmllc.zcc.CCView
android:id="@+id/cc"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/switch_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/rightarrow1" />
<Spinner
android:id="@+id/component_color"
android:layout_above="@+id/switch_color"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:drawSelectorOnTop="true"
android:prompt="@string/component_color_spinner" />
<SeekBar
android:id="@+id/switch_color"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:max="100"
android:minWidth="200dip"
android:progress="50"/>
</RelativeLayout>
あなたのレイアウトファイルのコードをここに表示することができたら... –