remove viewpager indicator

This commit is contained in:
Andrew Dolgov 2015-02-12 19:34:40 +03:00
parent 4afee6e0d3
commit 6997496449
8 changed files with 5 additions and 34 deletions

2
.idea/gradle.xml generated
View File

@ -3,7 +3,7 @@
<component name="GradleSettings"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>
<option name="distributionType" value="LOCAL" /> <option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="C:\Users\fox\android-studio\gradle\gradle-2.2.1" /> <option name="gradleHome" value="C:\Users\fox\android-studio\gradle\gradle-2.2.1" />
<option name="modules"> <option name="modules">

View File

@ -27,7 +27,6 @@ dependencies {
compile files('libs/dashclock-api-r1.1.jar') compile files('libs/dashclock-api-r1.1.jar')
compile files('libs/jsoup-1.6.1.jar') compile files('libs/jsoup-1.6.1.jar')
compile files('libs/universal-image-loader-1.9.3.jar') compile files('libs/universal-image-loader-1.9.3.jar')
compile 'com.viewpagerindicator:library:2.4.1'
compile 'com.android.support:cardview-v7:21.0.0' compile 'com.android.support:cardview-v7:21.0.0'
compile 'com.android.support:support-v4:21.0.3' compile 'com.android.support:support-v4:21.0.3'
compile 'com.google.code.gson:gson:2.3' compile 'com.google.code.gson:gson:2.3'

View File

@ -87,7 +87,6 @@
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" /> <orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="jsoup-1.6.1" level="project" /> <orderEntry type="library" exported="" name="jsoup-1.6.1" level="project" />
<orderEntry type="library" exported="" name="view-pager-transforms-1.1.0" level="project" /> <orderEntry type="library" exported="" name="view-pager-transforms-1.1.0" level="project" />
<orderEntry type="library" exported="" name="library-2.4.1" level="project" />
<orderEntry type="library" exported="" name="gson-2.3" level="project" /> <orderEntry type="library" exported="" name="gson-2.3" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" /> <orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" /> <orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />

View File

@ -33,7 +33,6 @@ import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.FailReason; import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer; import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import com.nostra13.universalimageloader.core.listener.ImageLoadingListener; import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import com.viewpagerindicator.UnderlinePageIndicator;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
@ -308,9 +307,6 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
ViewPager pager = (ViewPager) findViewById(R.id.article_images_pager); ViewPager pager = (ViewPager) findViewById(R.id.article_images_pager);
pager.setAdapter(m_adapter); pager.setAdapter(m_adapter);
pager.setPageTransformer(true, new DepthPageTransformer()); pager.setPageTransformer(true, new DepthPageTransformer());
UnderlinePageIndicator indicator = (UnderlinePageIndicator)findViewById(R.id.article_images_indicator);
indicator.setViewPager(pager);
} }
@SuppressLint("NewApi") @SuppressLint("NewApi")

View File

@ -16,7 +16,6 @@ import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
import com.viewpagerindicator.UnderlinePageIndicator;
import org.fox.ttrss.types.Article; import org.fox.ttrss.types.Article;
import org.fox.ttrss.types.ArticleList; import org.fox.ttrss.types.ArticleList;
@ -93,12 +92,8 @@ public class ArticlePager extends Fragment {
pager.setAdapter(m_adapter); pager.setAdapter(m_adapter);
UnderlinePageIndicator indicator = (UnderlinePageIndicator)view.findViewById(R.id.article_titles);
indicator.setViewPager(pager);
pager.setCurrentItem(position); pager.setCurrentItem(position);
pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
indicator.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override @Override
public void onPageScrollStateChanged(int arg0) { public void onPageScrollStateChanged(int arg0) {

View File

@ -15,8 +15,6 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.viewpagerindicator.UnderlinePageIndicator;
import org.fox.ttrss.R; import org.fox.ttrss.R;
public class OfflineArticlePager extends Fragment { public class OfflineArticlePager extends Fragment {
@ -170,11 +168,8 @@ public class OfflineArticlePager extends Fragment {
pager.setAdapter(m_adapter); pager.setAdapter(m_adapter);
UnderlinePageIndicator indicator = (UnderlinePageIndicator)view.findViewById(R.id.article_titles);
indicator.setViewPager(pager);
pager.setCurrentItem(position); pager.setCurrentItem(position);
indicator.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override @Override
public void onPageScrollStateChanged(int arg0) { public void onPageScrollStateChanged(int arg0) {

View File

@ -16,11 +16,4 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" /> android:layout_height="fill_parent" />
<com.viewpagerindicator.UnderlinePageIndicator
android:id="@+id/article_images_indicator"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" />
</RelativeLayout> </RelativeLayout>

View File

@ -8,14 +8,8 @@
android:id="@+id/article_pager" android:id="@+id/article_pager"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentTop="true"> android:layout_alignParentTop="true"
android:layout_alignParentBottom="true">
</android.support.v4.view.ViewPager> </android.support.v4.view.ViewPager>
<com.viewpagerindicator.UnderlinePageIndicator
android:id="@+id/article_titles"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" />
</RelativeLayout> </RelativeLayout>