File tree Expand file tree Collapse file tree 5 files changed +16
-11
lines changed
src/main/java/eu/inmite/demo/dialogs Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
44 }
55
66 dependencies {
7- classpath ' com.android.tools.build:gradle:0.12.+ '
7+ classpath ' com.android.tools.build:gradle:1.0.0 '
88 }
99}
1010
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
4- compileSdkVersion 19
4+ compileSdkVersion 21
55 buildToolsVersion " 20"
66
77 defaultConfig {
88 minSdkVersion 7
9- targetSdkVersion 19
9+ targetSdkVersion 21
1010 versionName project. VERSION_NAME
1111 versionCode Integer . parseInt(project. VERSION_CODE )
1212 }
Original file line number Diff line number Diff line change @@ -167,13 +167,16 @@ public void onClick(View v) {
167167 });
168168 }
169169
170+ // IListDialogListener
171+
170172 @ Override
171173 public void onListItemSelected (String value , int number ) {
172- showSelectedItem ( value , number );
174+ Toast . makeText ( c , "Selected: " + value , Toast . LENGTH_SHORT ). show ( );
173175 }
174176
175- public void showSelectedItem (String value , int number ) {
176- Toast .makeText (c , "Selected: " + value , Toast .LENGTH_SHORT ).show ();
177+ @ Override
178+ public void onCancelled () {
179+ Toast .makeText (c , "Nothing selected" , Toast .LENGTH_SHORT ).show ();
177180 }
178181
179182 // ISimpleDialogCancelListener
@@ -210,6 +213,8 @@ public void onNeutralButtonClicked(int requestCode) {
210213 }
211214 }
212215
216+ // IDateDialogListener
217+
213218 @ Override
214219 public void onNegativeButtonClicked (int resultCode , Date date ) {
215220 String text ="" ;
Original file line number Diff line number Diff line change 1- # Mon Jul 07 15:02:11 CEST 2014
1+ # Mon Dec 22 15:26:50 CET 2014
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =http \://services.gradle.org/distributions/gradle-1.12 -all.zip
6+ distributionUrl =https \://services.gradle.org/distributions/gradle-2.2.1 -all.zip
Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ repositories {
55}
66
77android {
8- compileSdkVersion 19
8+ compileSdkVersion 21
99 buildToolsVersion " 20"
1010
1111 defaultConfig {
1212 minSdkVersion 7
13- targetSdkVersion 19
13+ targetSdkVersion 21
1414 versionName project. VERSION_NAME
1515 versionCode Integer . parseInt(project. VERSION_CODE )
1616 }
1717}
1818
1919dependencies {
20- compile ' com.android.support:support-v4:19.1.0 '
20+ compile ' com.android.support:support-v4:21.0.3 '
2121}
2222
2323// Used to push in maven
You can’t perform that action at this time.
0 commit comments