Skip to content

加强版的EditText,可以为DrawableLeft和DrawableRight设置点击事件

Notifications You must be signed in to change notification settings

caowen/XEditText

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

加强版的EditText,可以为DrawableLeft和DrawableRight设置点击事件

欢迎大家光临我的博客 :) [http://wiyi.org/]

Demo


public class MainActivity extends Activity {
    private XEditText mPassword ;
@Override
protected void onCreate(Bundle saveInstance) {
    super.onCreate() ;
    setContentView(R.layout.main) ;
    
    mPassword.setDrawableRightListener(new DrawableRightListener() {            
        @Override
        public void onDrawableRightClick(View view) {
            // 你的具体逻辑
        }
    }) ;
}

}

About

加强版的EditText,可以为DrawableLeft和DrawableRight设置点击事件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%