专业做俄语网站建设司,企业网站优化暴肃湖南岚鸿很好,网站和网址有什么不同,网站关键词越多越好吗设置登录界面为线性布局#xff0c;组件垂直居中排列设置主页为滚动模式#xff0c;包括布局、添加背景图片设置按钮样式#xff0c;包括形状、边框线的宽度和颜色
设置登录界面
设置界面为线性布局#xff0c;组件垂直居中排列
--android:gravitycenter_vertical…设置登录界面为线性布局组件垂直居中排列设置主页为滚动模式包括布局、添加背景图片设置按钮样式包括形状、边框线的宽度和颜色
设置登录界面
设置界面为线性布局组件垂直居中排列
--android:gravitycenter_vertical 这个的意思是指 限定它里面的内容要垂直居中显示。
--android:layout_gravitycenter_vertical这个是指它的位置是相对于它父亲的垂直居中。
LinearLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parenttools:context.MainActivityandroid:orientationverticalandroid:backgrounddrawable/backandroid:gravitycenter_verticalTextViewandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text欢迎进入手机银行android:textColor#000079android:layout_marginBottom70dpandroid:textSize35dp/
/LinearLayout 设置主页为滚动模式
RelativeLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/tools
--设置主页为相对布局布局的高度和宽度铺满整个界面android:layout_widthmatch_parentandroid:layout_heightmatch_parent
--设置背景图片android:backgrounddrawable/zhuyetools:context.LendActivityandroid:idid/parent
!-- 设置表格布局的宽度为铺满高度为自适应随组件的高度自动调整
排列方式为垂直排列 --TableLayoutandroid:layout_widthmatch_parentandroid:layout_heightwrap_contentandroid:orientationvertical/TableLayout
/RelativeLayout 设置按钮样式
?xml version1.0 encodingutf-8?
!--相当于做了一张圆角的图片,然后给button作为背景图片--
shape xmlns:androidhttp://schemas.android.com/apk/res/androidandroid:shaperectangle!--设置圆角--corners android:radius105dip /solid android:color#E0E0E0/solidpaddingandroid:bottom3dpandroid:left5dpandroid:right5dpandroid:top5dp/!--设置边框线的宽度和颜色--
/shape
Buttonandroid:idid/btnandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:backgroundxml/btnandroid:text登录android:layout_weight1android:layout_marginRight30dpandroid:layout_marginBottom10dp/Button