再做一个播放器,主界面activity layout中是一个videoview,想在点击屏幕时出现播放控制的界面,这个界面是用windowmanager给主界面添加的一个view,但是现在view出现之后就把下面的videoview遮住了,请问应该怎么解决啊,求指点,多谢!
解决方案 »
- 求教:利用adb在电脑和手机上进行文件传输
- 【转】Android permission 访问权限大全
- 关闭收音机问题
- 画面缩放怎么实现?
- 如何使用代码获取Launcher的ContentProvider uri
- 两个Activity没法跳转,求助
- addProximityAlert 如何判断离开的状态?
- 一个26岁的非理工男 准备踏入IT行业年 求各位大牛们给点建议
- 从Fragment跳转到activity时切换动画
- Android 发送十六进制byte的问题
- 以 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>