zoukankan      html  css  js  c++  java
  • edittext输入框的背景效果

    xml

    <EditText 
            android:id="@+id/login_user_edit"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/login_top_layout"
            android:textColor="#000"
            android:textSize="15sp"
            android:layout_marginTop="25dp"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:singleLine="true"
            android:background="@drawable/login_editbox"
            android:hint="QQ号/微信号(请输入gamecomb)"/>

    drawable

    <?xml version="1.0" encoding="UTF-8"?>
    <selector
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_focused="true"  android:drawable="@drawable/login_edit_pressed" />
        <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/login_edit_pressed" />
        <item android:state_focused="false" android:drawable="@drawable/login_edit_normal" />
    </selector>
  • 相关阅读:
    数据库优化
    Oracle语句集锦
    MVC Razor标签
    转载 操作MyBatis基础
    mysql sqlserver Oracle字符串连接
    Word
    部署IIS错误
    => 朗姆达表达式带入符号
    wcf例子01
    idea通过springboot初始化器新建项目
  • 原文地址:https://www.cnblogs.com/ct732003684/p/2875352.html
Copyright © 2011-2022 走看看