Powerful_cat 2015-10-13 00:50 采纳率: 0%
浏览 1535

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

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

  • 写回答

6条回答 默认 最新

  • bdmh 移动开发领域优质创作者 2015-10-13 01:00
    关注

    没有模板,自己弄

     <?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>
    
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题