我的申请中有视频.代码是这样的.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent" android:orientation="vertical"
android:background="@drawable/opsbuds">
<TextView android:text="TextView" android:id="@+id/adtxt1"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<VideoView android:layout_width="300dip"
android:layout_height="250dip" android:id="@+id/videoView11" android:layout_marginLeft="30dip"></VideoView>
<LinearLayout android:layout_width="match_parent"
android:id="@+id/llv11" android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
<Button android:text=" Continue " android:id="@+id/button1211"
android:layout_width="wrap_content" android:textStyle="bold"
android:layout_marginTop="10dp" android:layout_height="wrap_content"
android:textSize="20dp" android:layout_marginLeft="5dp"
android:textColor="#800080" android:background="@drawable/button"></Button>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
xml文件中提到了视频宽度和高度.我想要的是,一旦我按下按钮,视频视图应该全屏显示,一旦我按下后退按钮,视频视图应该回到它提到的大小.请帮忙?
如何在Android应用程序中添加单选按钮作为图像选项,而不是文本..我们可以通过android:setText属性将文本设置为单选按钮.但我希望在那里显示图像而不是文本..请帮助我?
android ×2