android - how to create layout for registraion mobile number -
Please, I have to make a layout to see this image but I am unable to do this, especially in the Android control set Please help me ..
I am capable of displaying control in Android: Gravity is not below but fixed as my control image. Please check me where I am wrong. Here is my XML file code:
& lt; Fremleaut xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "Match_parent" Android: Layout_height = "Match_parent" android: background = "@ drawable / Rjistrioimej" & gt; & Lt; LinearLayout Android: layout_width = "match_parent" android: layout_height = "132dp" Android: layout_gravity = "bottom" android: orientation = "vertical" & gt; & Lt; Spinner android: id = "@ + id / spinner1" Android: Layout_width = "Match_parent" Android: layout_height = "49dp" Android: entries = "@ array / country_arrays" android: prompt = "@ string / country_prompt" / & gt; & Lt; LinearLayout Android: id = "@ + id / layout1" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: orientation = "horizontal" & gt; & Lt; EditText android: id = "@ + id / editText1" Android: layout_width = "94dp" Android: Layout_height = "Wrap_content" Android: EMS = "10" Android: inputType = "number" android: text = "code" & gt; & Lt; Requestfocus / & gt; & Lt; / EditText> & Lt; EditText Android: Android: Android: Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: Leaut_vet = "1" Android: AMS = "10" Android: inputType = "phone" android: text = "phone" / & Gt; & Lt; / LinearLayout & gt; & Lt; Button android: id = "@ + id / Button1" Android: Layout_width = "Match_parent" Android: Layout_height = "Wrap_content" Android: layout_below = "@ + id / layout1" android: text = "next" Android: textcolor = "# 0066ff "Android: Textstyle =" bold "/> & lt; / LinearLayout & gt; & Lt; / FrameLayout & gt;
Can you try the code below now, I change the framelight layout with a relational layout I am:
& lt; RelativeLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "Match_parent" Android: Layout_height = "Match_parent" android: background = "@ drawable / Men_baband" & gt; & Lt; LinearLayout android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: layout_alignParentBottom = "true" android: layout_margin = "10dp" android: background = "@ android: color / transparent" android: orientation = "vertical" & gt ; & Lt; Spinner Android: id = "@ + id / spinner1" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" /> & Lt; LinearLayout Android: id = "@ + id / layout1" Android: Layout_width = "Match_parent" Android: Layout_height = "Wrap_content" Android: Layout_marginTop = "L0dp" android: orientation = "horizontal" & gt; & Lt; EditText android: id = "@ + id / editText1" Android: layout_width = "94dp" Android: Layout_height = "Wrap_content" Android: EMS = "10" Android: inputType = "number" android: text = "code" & gt; & Lt; Requestfocus / & gt; & Lt; / EditText> & Lt; EditText android: id = "@ + id / editText2" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: EMS = "10" Android: inputType = "call" android: text = "phone" / & gt ; & Lt; / LinearLayout & gt; Android: Android: layout_height = "wrap_content" Android: layout_marginTop = "10dp" Android: Text = "Next" Android: textColor = "# 0066FF" & lt; Button Android: ID = "@ + ID / Button 1" Android: Textstyle = "bold" /> & Lt; / LinearLayout & gt;
Comments
Post a Comment