开发者社区> 问答> 正文

安卓XML布局问题 有关验证码

想弄出来这种效果 弄不出来
screenshot
还有就是大家弄布局的时候都是用手敲吗 有没有好的模板之类

展开
收起
爵霸 2016-06-01 13:55:44 1836 0
1 条回答
写回答
取消 提交回答
  • 没有模板,自己弄

     <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="#000000" >
    
            <EditText
                android:id="@+id/editText1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="1px"
                android:layout_weight="1"
                android:background="@color/white"
                android:ems="10"
                android:inputType="number" >
    
                <requestFocus />
            </EditText>
    
            <View
                android:id="@+id/view1"
                android:layout_width="1px"
                android:layout_height="match_parent"
                android:background="#000000" />
    
            <TextView
                android:id="@+id/textView1"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_margin="1px"
                android:layout_weight="1"
                android:background="#FFFFFF"
                android:gravity="center"
                android:text="获取验证码" />
    
        </LinearLayout>
    
    </LinearLayout>
    2019-07-17 19:23:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载