再做一个播放器,主界面activity layout中是一个videoview,想在点击屏幕时出现播放控制的界面,这个界面是用windowmanager给主界面添加的一个view,但是现在view出现之后就把下面的videoview遮住了,请问应该怎么解决啊,求指点,多谢!
解决方案 »
- 我的eclipse里找不到这个Window(窗口) -> Show Views(显示视图) -> device -> view menu(视图菜单)
- 请问android的这种效果是怎么弄的?谢谢!
- 关于android AsyncTask 上传图片的问题
- 想买了android系统的手机跑自己的软件,买哪部好??
- 谢谢,如何获得AlertDialog中编辑框的值?
- 哪位能推荐下那款手机定位比较好的,是要装GPS定位软件么?
- 请教,谁可以推荐本android的好书,可以配合源码学习的书
- 如何将/system/data/test/目录下的所有文件和子目录考贝到/data/data/目录下
- 求算术运算的正则表达式
- android手机的联网程序是否需要拨号?
- 以 android\packages\app\voiceDialer 为例, 如何在界面上加一个按钮
- 手机电池电量是问号,而且充电不进
fullscreenRL=(RelativeLayout)findViewById(R.id.FLBottom);
fullscreenRL.getBackground().setAlpha(100);
fullscreenRL.setVisibility(View.GONE);
//fullscreenRL.setVisibility(View.VISIBLE);
<FrameLayout
android:id="@+id/mainFL"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.jht.playvideo.VideoView android:id="@+id/fsSurface"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<RelativeLayout
android:id="@+id/FLBottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/fullscreenbottombg">
<SeekBar
android:id="@+id/fsseekbar"
android:layout_width="500dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:maxHeight="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:progressDrawable="@drawable/fullseekbar"
android:thumb="@drawable/fullseekbarslid"/>
<TextView android:id="@+id/fulldurationtime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/fsseekbar"
android:layout_centerVertical="true"/>
<Button
android:id="@+id/playorpausebtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/fulldurationtime"
android:layout_marginRight="10dp"
android:background="@drawable/suspendbtnstor"
android:layout_centerVertical="true" />
<TextView android:id="@+id/fulltotaltime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/fsseekbar"
android:layout_centerVertical="true"/>
<ImageView
android:id="@+id/soundimg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/fulltotaltime"
android:background="@drawable/voice" />
<SeekBar
android:id="@+id/soundseekbar"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/soundimg"
android:maxHeight="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:progressDrawable="@drawable/voicebarbg"
android:thumb="@drawable/voiceslid" />
</RelativeLayout>
</FrameLayout>