Android Baseline tip, androidbaseline
Reprinted please indicate the source: http://blog.csdn.net/bbld_/article/details/40709353
Baseline Alignment
Android development problems (Code problems)
<LinearLayout // linear layout android: layout_width = "match_parent" // fill the width of the parent container android: layout_height = "0dip" // height. Use android with layout_weight below: layout_weight = "1" // weight of each child element for the remaining space. When either layout_width or layout_height is 0, it is proportional. For example, there are two LinearLayout values under this LinearLayout, so this LinearLayout accounts for 1/3 of the remaining space. If layout_width or layout_height is not 0, it indicates the priority, that is, a priority is displayed, A greater value indicates a higher priority. android: baselineAligned = "false" // whether to allow users to adjust the baseline of its content (NO) android: orientation = "horizontal" // layout direction (horizontal ), vertical> <include // include labels are usually used to extract the public part of the layout for other layout users to share android: id = "@ + id/carousel_tab_one" layout = "@ layout/carousel_tab"/> // The referenced layout file name, which is the same as <include android: id = "@ + id/carousel_tab_two" layout = "@ layout/carousel_tab"/> </LinearLayout>
In android, which layout can be used to set the position of the child control relative to the parent control?
Because there is sunlight outside, the temperature is higher than the room