user interface - android - linearlayout in scrollview -


Since my UI is quite simple, I want to complete both scenario and picture in an XML file.

Everything in Portrait Mode is as much as I want.

The main-title textview in the landscape is barely shown. Is there a job for this?

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; scrollview android: background = "@ color / background" Android: Layout_width = "Fill_parent" android: padding = "20dip" Android: layout_height = "fill_parent" xmlns: android = "Http://schemaskandroidkcom/apk / Res / Android "& gt; & Lt; LinearLayout Android: Layout_height = "Fill_parent" Android: Layout_gravity = "center" android: orientation = "vertical" android: layout_marginTop = "30dip" android: id = "@ + id / LinearLayout01" Android: layout_width = "fill_parent" & gt; & Lt; TextView android: Layout_marginBottom = "L5dip" Android: TextSize = "24k5sp" Android: Layout_height = "Wrap_content" android: id = "@ + id / TextView01" Android: Layout_gravity = "center" android: text = "@ string / Muky_ Title "Android: Layout_width =" Wrap-Object "& gt; & Lt; / TextView & gt; & Lt; Button Android: Layout_marginBottom = "L5dip" Android: Layout_height = "Wrap_content" android: id = "@ + id / START_BUTTON" android: text = "@ string / START_LABEL" Android: layout_width = "fill_parent" & gt; & Lt; / Button & gt; & Lt; TextView android: TextSize = "L8sp" Android: Layout_height = "Wrap_content" android: id = "@ + id / TextView02" android: text = "@ string / time_window_please_select_label" Android: Layout_width = "Wrap_content '& Gt; & Lt; / TextView & gt; & Lt; Spinner Android: layout_height = "wrap_content" Android: id = "@ + id / spinner" Android: Speedy = "@ string / time_window_prompt" Android: layout_width = "fill_parent" & gt; & Lt; / Spinner & gt; & Lt; TextView android: layout_height = "wrap_content" Android: layout_marginBottom = "10dip" Android: id = "@ + id / status_label" Android: layout_width = "wrap_content" & gt; & Lt; / TextView & gt; & Lt; TextView android: layout_height = "wrap_content" Android: layout_marginBottom = "10dip" android: id = "@ + id / status_time_label" Android: layout_width = "wrap_content" & gt; & Lt; / TextView & gt; & Lt; ImageView Android: Android: Android: Android: Android: Android: Android: "Layout_Wind =" wrap_ content "Android: bottom | correct" /> & Lt; / LinearLayout & gt; & Lt; / Scrollview & gt;   

link:

looks like a problem with your margin and padding values.

The best option can be to have 2 different layouts, 1 being the picture and the other being the landscape in your res folder layout-land < Create a second folder named / code> and layout-port then copy the layout file into both of these folders and make the appropriate changes for the orientation.

For more information about providing various resources for different orientations, see Android Docs:

Comments