我在 VideoView 顶部有一个透明的 ListView,但是这些行现在占据了屏幕的整个宽度。我想知道是否有办法减少这种情况。我的 XML 如下所示:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/RelativeScreen"
   android:descendantFocusability="blocksDescendants"
   android:orientation="horizontal"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent">
  <VideoView
   android:id="@+id/VideoWindow"
   android:descendantFocusability="blocksDescendants"
   android:layout_height="fill_parent"
   android:layout_width="fill_parent">
  </VideoView>
  <TextView
      android:id="@android:id/list"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent">
  </TextView>
</RelativeLayout> 
Java代码是:
setListAdapter(new ArrayAdapter<String>(this, R.layout.main, android.R.id.list, a_list));
// Get an object for the list
ListView listView = getListView();
listView.setTextFilterEnabled(true);
listView.setCacheColorHint(0);
listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        InitiatePlayback(position);
    }
});