File tree Expand file tree Collapse file tree 7 files changed +28
-20
lines changed
java/com/mancj/materialsearchbar Expand file tree Collapse file tree 7 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 23
5
- buildToolsVersion " 23 .0.3"
4
+ compileSdkVersion 25
5
+ buildToolsVersion " 25 .0.3"
6
6
7
7
defaultConfig {
8
8
applicationId " com.mancj.example"
9
9
minSdkVersion 16
10
- targetSdkVersion 23
10
+ targetSdkVersion 25
11
11
versionCode 2
12
12
versionName " 1.1"
13
13
}
@@ -24,5 +24,5 @@ dependencies {
24
24
compile project(' :library' )
25
25
compile ' com.android.support:appcompat-v7:23.4.0'
26
26
compile ' com.android.support:design:23.4.0'
27
- testCompile ' junit:junit:4.12'
27
+ // testCompile 'junit:junit:4.12'
28
28
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:2.2 .3'
8
+ classpath ' com.android.tools.build:gradle:2.3 .3'
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
- # Mon Dec 12 09:35:06 CAT 2016
1
+ # Mon Jul 10 11:00:23 MSK 2017
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-2.14.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 23
5
- buildToolsVersion " 23 .0.3"
4
+ compileSdkVersion 25
5
+ buildToolsVersion " 25 .0.3"
6
6
7
7
defaultConfig {
8
8
minSdkVersion 16
9
- targetSdkVersion 23
9
+ targetSdkVersion 25
10
10
versionCode 1
11
11
versionName " 0.1"
12
12
}
@@ -20,10 +20,10 @@ android {
20
20
21
21
dependencies {
22
22
compile fileTree(dir : ' libs' , include : [' *.jar' ])
23
- testCompile ' junit:junit:4.12'
24
- compile ' com.android.support:appcompat-v7:23.4.0 '
25
- compile ' com.android.support:recyclerview-v7:23.4.0 '
26
- compile ' com.android.support:cardview-v7:23.4.0 '
23
+ // testCompile 'junit:junit:4.12'
24
+ compile ' com.android.support:appcompat-v7:25.3.1 '
25
+ compile ' com.android.support:recyclerview-v7:25.3.1 '
26
+ compile ' com.android.support:cardview-v7:25.3.1 '
27
27
}
28
28
29
29
// build a jar with source files
Original file line number Diff line number Diff line change @@ -440,14 +440,21 @@ public void setNavButtonEnabled(boolean navButtonEnabled) {
440
440
if (navButtonEnabled ){
441
441
navIcon .setVisibility (VISIBLE );
442
442
navIcon .setClickable (true );
443
- LayoutParams lp = (LayoutParams ) inputContainer . getLayoutParams ( );
444
- lp . leftMargin = ( int ) ( 50 * destiny );
445
- inputContainer .setLayoutParams ( lp );
443
+ navIcon . getLayoutParams (). width = (int ) ( 50 * destiny );
444
+
445
+ (( LayoutParams ) inputContainer .getLayoutParams ()). leftMargin = ( int ) ( 50 * destiny );
446
446
arrowIcon .setVisibility (GONE );
447
447
}else {
448
- navIcon .setVisibility (GONE );
448
+ navIcon .getLayoutParams ().width = 1 ;
449
+ navIcon .setVisibility (INVISIBLE );
449
450
navIcon .setClickable (false );
451
+
452
+ ((LayoutParams ) inputContainer .getLayoutParams ()).leftMargin = (int ) (0 * destiny );
453
+ arrowIcon .setVisibility (VISIBLE );
450
454
}
455
+ navIcon .requestLayout ();
456
+ placeHolder .requestLayout ();
457
+ arrowIcon .requestLayout ();
451
458
}
452
459
453
460
/**
Original file line number Diff line number Diff line change 10
10
android : layout_width =" match_parent"
11
11
android : layout_height =" wrap_content" >
12
12
<RelativeLayout
13
- xmlns : android =" http://schemas.android.com/apk/res/android"
14
13
android : orientation =" vertical"
15
14
android : layout_width =" match_parent"
16
15
android : id =" @+id/root"
57
56
android : textColor =" @color/material_grey_600"
58
57
android : textStyle =" bold"
59
58
android : visibility =" visible"
60
- tools : text =" Hara haza mettig d1alocurg yu. Hara haza mettig d1alocurg yu. Hara haza mettig d1alocurg yu " />
59
+ tools : text =" Hara" />
61
60
62
61
<LinearLayout
63
62
android : id =" @+id/inputContainer"
Original file line number Diff line number Diff line change 3
3
<dimen name =" activity_horizontal_margin" >16dp</dimen >
4
4
<dimen name =" activity_vertical_margin" >16dp</dimen >
5
5
<dimen name =" fab_margin" >16dp</dimen >
6
+
7
+ <dimen name =" icon_size" >50dp</dimen >
6
8
</resources >
You can’t perform that action at this time.
0 commit comments