Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
lightSky committed Aug 11, 2015
1 parent bb6f891 commit 91d3ca3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ android {
}

dependencies {
// compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':library')
}
2 changes: 1 addition & 1 deletion demo/demo.iml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
<orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.1.1" level="project" />
<orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
<orderEntry type="module" module-name="library" exported="" />
</component>
</module>
4 changes: 2 additions & 2 deletions library/library.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="cn.lightsky.infiniteindicator" external.system.module.version="1.0.2" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="cn.lightsky.infiniteindicator" external.system.module.version="1.0.3" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down Expand Up @@ -93,7 +93,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-22.1.1" level="project" />
<orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.1.1" level="project" />
<orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
</component>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ private void createIndicators(ViewPager viewPager) {
}

for (int i = 0; i < count; i++) {
View Indicator = new View(getContext());
Indicator.setBackgroundResource(mIndicatorBackground);
addView(Indicator, mIndicatorWidth, mIndicatorHeight);
LayoutParams lp = (LayoutParams) Indicator.getLayoutParams();
View indicator = new View(getContext());
indicator.setBackgroundResource(mIndicatorBackground);
addView(indicator, mIndicatorWidth, mIndicatorHeight);
LayoutParams lp = (LayoutParams) indicator.getLayoutParams();
lp.leftMargin = mIndicatorMargin;
lp.rightMargin = mIndicatorMargin;
Indicator.setLayoutParams(lp);
indicator.setLayoutParams(lp);

mAnimationOut.setTarget(Indicator);
mAnimationOut.setTarget(indicator);
mAnimationOut.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public int getCount() {

@Override
public View getView(final int position, View convertView, ViewGroup container) {
BaseSliderView sliderView = ((BaseSliderView) mSlederViews.get(getPosition(position)));
return ((BaseSliderView) mSlederViews.get(getPosition(position))).getView();
}

Expand Down

0 comments on commit 91d3ca3

Please sign in to comment.