android - In xml VideoView and ScrollView issue -


I'm trying to do that top half screen with text, with scroll, but lower half screen video Shows one video in the scene. I want to scroll my text area but will not scroll down the button and video. But my code does not work. How can I do this?

My code is below.

  & lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/Android" android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: orientation = "vertical" & gt; & Lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; Android: background = "@ android: color / black" Android: layout_alignParentBottom = "true" & gt; RelativeLayout Android: id = "@ + id / rel_btn_Check" android: layout_width = "fill_parent" Android: layout_height = "50dip" & Lt; Android: layout_alignParentBottom = "true" android: background = "@ drawable / round_button": Android: layout = "" @ " Android: onClick = "onClickSkip" Android: Text = "Check" /> & Lt; / RelativeLayout & gt; & Lt; RelativeLayout Android: id = "@ + id / rel_video" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: layout_above = "@ id / rel_btn_Check" Android: background = "@ android: color / white" & gt; ; & Lt; VideoView Android: layout_width = "fill_parent" android: layout_centerHorizontal = "true" android: layout_height = "fill_parent" android: id = "@ + id / vv01" /> & Lt; / RelativeLayout & gt; & Lt; Android: layout_height = "wrap_content" Android: layout_alignParentTop = "true" Android: layout_above = "@ id / rel_video" Android: orientation = "vertical"> gt; & Lt; LinearLayout Android: layout_width = "fill_parent" Android: layout_height = "100dip" Android: orientation = "vertical" & gt; & Lt; RelativeLayout Android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: id = "@ + id / relative_id" Android: background = "@ android: color / white" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_height = "wrap_content" android: layout_centerHorizontal = "true" android: layout_marginTop = "5dp" Android: textSize = "20dip" Android: text = "@ string / XYZ" /> & Lt; Android: layout_height = "wrap_content" android: layout_height = "wrap_content" android: layout_centerHorizontal = "true" android: layout_marginLeft = "20dip" Android: layout_marginRight = "10dip" Android: layout_marginTop = "35dp" Android: textSize = "15 dip "Android: Text =" XYZ "/> & Lt; / RelativeLayout & gt; & Lt; / LinearLayout & gt; & Lt; / Scrollview & gt; & Lt; / RelativeLayout & gt; & Lt; / RelativeLayout & gt; You can use the  LinearLayout       

/ code> container to split the screen into two parts, Set the orientation to vertical, and as set for 2 children layout_weight = "1"
  & lt; LinearLayout xmlns: Android = "http: //schemas.android.com/apk/res/android" android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "vertical" & gt; & Lt; ScrollView Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: layout_weight = "1" & gt; & Lt ;! - Your scrolling content here - & gt; & Lt; / Scrollview & gt; & Lt; RelativeLayout Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: layout_weight = "1" & gt; & Lt ;! - Watch your video here - & gt; & Lt; / RelativeLayout & gt; & Lt; / LinearLayout & gt;    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -