나는 재생 목록을 위해 화면의 거의 모든 영역을 사용하는 음악 플레이어를 만들려고합니다. scrren의 하단에 재생/일시 정지 버튼, 탐색 바를 누른 다음 중지 버튼이있는 작은 "플레이어"가 표시됩니다. "플레이어"를 끌어 올리면 앨범 커버와 몇 가지 추가 정보가 표시됩니다.SlidingDrawer의 핸들에서 Seekbar
그래서 레이아웃이 완료되었지만 검색 바의 엄지 손가락을 움직일 수 없습니다. 이것이 슬라이딩 도어 핸들의 일부이기 때문에 이것이라고 생각합니다. 맞다면 다른 방법이 있습니까?
여기
<SlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="450dp"
android:layout_gravity="bottom"
android:content="@+id/content"
android:handle="@+id/handle" >
<TableRow
android:id="@+id/handle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/hz_background_gradient"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<ImageView
android:id="@+id/imageButton1"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/playback_play"
android:layout_marginLeft="6dp"
android:layout_marginTop="4dp" />
<SeekBar android:id="@+id/editText1"
android:layout_width="203dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_weight="0.45"
android:layout_marginTop="8dp"
android:max="100" />
<ImageView
android:id="@+id/imageButton1"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/playback_stop"
android:layout_marginLeft="6dp"
android:layout_marginTop="4dp"
android:layout_marginRight="5dp" />
</LinearLayout>
</TableRow>
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="167dp"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="272dp"
android:layout_weight="0.83"
android:src="@drawable/ic_launcher"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginTop="25dp" />
<TableRow
android:id="@+id/tbR1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.98"
android:background="@drawable/hz_background_gradient"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Titel: "
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/tvTitel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Put a spell on you"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Artist: "
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/tvArtist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Credence Clearwater Revival"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</LinearLayout>
</TableRow>
</LinearLayout>
</SlidingDrawer>
감사합니다 사전에 slidingdrawer의 레이아웃 :
당신에게 너무 감사합니다 도움이
희망 : 다음은 관련 자바 코드 –