File tree Expand file tree Collapse file tree
src/main/java/com/matpag/sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
22
33android {
44 compileSdkVersion setup. compileSdk
5- buildToolsVersion setup. buildTools
65
76 defaultConfig {
87 applicationId " com.matpag.sample"
Original file line number Diff line number Diff line change 55import android .support .v4 .content .ContextCompat ;
66import android .support .v4 .graphics .drawable .DrawableCompat ;
77import android .support .v7 .app .AppCompatActivity ;
8+ import android .util .Log ;
89import android .widget .ArrayAdapter ;
910import android .widget .Toast ;
1011
@@ -29,9 +30,11 @@ protected void onCreate(Bundle savedInstanceState) {
2930 mCdEditText .setOnDrawableClickListener ((view , position ) -> {
3031 Toast .makeText (MainActivity .this , position .name (),
3132 Toast .LENGTH_SHORT ).show ();
33+ Log .e ("on_click" , "DRAWABLE_CLICKED" );
3234 //close the keyboard if opened
3335 mCdEditText .closeKeyboard ();
3436 });
37+ mCdEditText .setOnClickListener (v -> Log .e ("on_click" , "EDITEXT_CLICKED" ));
3538
3639 //####### ClickDrawableEditText - search example ########
3740 //In this example we got the view from the XML, so go watch R.layout.activity_main to
You can’t perform that action at this time.
0 commit comments