viewpagerindicator

NoClassDefFoundError when using proguard

前提是你 提交于 2019-11-29 04:21:40
My Project contains some librarys (ViewPagerIndicator, ActionbarSherlock, SlidingMenu...). After using proguard, my application crash every time when starts. Below is error log java.lang.NoClassDefFoundError:android.support.v4.appp.FragmentActivity$2 at android.support.v4.app.FragmentActivity.<init> (Unknown Source).... And here is my proguard script: -injars bin/classes -injars libs -outjars bin/classes-processed.jar -dontpreverify -repackageclasses '' -allowaccessmodification -optimizations !code/simplification/arithmetic -keepattributes *Annotation* -verbose -keep public class * extends

Android view pager with page indicator

馋奶兔 提交于 2019-11-28 04:09:36
I need to get page indicator in the view pager file with images. Here is my code. public class IndicatorActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MyPagerAdapter adapter = new MyPagerAdapter(); ViewPager myPager = (ViewPager) findViewById(R.id.pager); myPager.setAdapter(adapter); myPager.setCurrentItem(0); TitlePageIndicator indicator = (TitlePageIndicator)findViewById(R.id.indicat); indicator.setViewPager( myPager ); } } In this code

Android: Unable to instantiate activity ComponentInfo

[亡魂溺海] 提交于 2019-11-28 02:17:57
问题 I have a problem on android developing app. I made a research first my error and i found out that there are other people who are having the same problem like me. I read all the comments a tried everything but still i'm having the same error. Here my error 05-29 12:39:36.701: E/AndroidRuntime(823): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.georgepanayi.mixfmcyprus.radio/com.georgepanayi.mixfmcyprus.radio.Main_Activity}: java.lang.ClassNotFoundException: Didn

Touch or Click event ViewPagerIndicator in Android

£可爱£侵袭症+ 提交于 2019-11-28 02:02:50
问题 May be duplicate of: Intercepting touch events in ViewPagerIndicator Disabling & Enabling Paging In ViewPager in Android android: ViewPager and HorizontalScrollVIew I am using ViewPagerIndicator in my android app for swiping dynamic number of view and its working fine. What is want? When user click on one of the slide its corresponding view will open. But i am unable to override touch event on Pager . Activity code is : public class MainActivity extends BaseSampleActivity { @Override

android: RecyclerView inside a ScrollView

落爺英雄遲暮 提交于 2019-11-27 20:44:24
I have a RecyclerView wrapped in a LinearLayout and it works perfectly as expected. I can see all the data in the RecyclerView as populated. So far so good. When I wrap the LinearLayout in a ScrollView , the RecyclerView goes blank. I do not see anything inside RecyclerView . Why? How to make this work. The page is one of the tabs in a ViewPagerIndicator , so everything in that tab needs to be in a ScrollView . Thanks for all the help. Set this property for the ScrollView, android:fillViewport="true" ScrollView will extend itself to fill the contents After checking implementation, the reason

NoClassDefFoundError when using proguard

穿精又带淫゛_ 提交于 2019-11-27 18:17:43
问题 My Project contains some librarys (ViewPagerIndicator, ActionbarSherlock, SlidingMenu...). After using proguard, my application crash every time when starts. Below is error log java.lang.NoClassDefFoundError:android.support.v4.appp.FragmentActivity$2 at android.support.v4.app.FragmentActivity.<init> (Unknown Source).... And here is my proguard script: -injars bin/classes -injars libs -outjars bin/classes-processed.jar -dontpreverify -repackageclasses '' -allowaccessmodification -optimizations

Add ViewPagerIndicator to Android Studio

巧了我就是萌 提交于 2019-11-27 06:23:37
i'm trying to get Jake Wharton's ViewPagerIndicator working with Android Studio but unfortunately it won't work. I downloaded the .aar file from here and included it in my libs folder. I referenced it like this: compile files('src/main/libs/viewpagerindicator_2.4.1.aar') Android Studio gives me the following error: Error:duplicate files during packaging of APK I'm not very familiar with gradle and don't know what to do when it gives me this error. Can you please help me with this one? Here's my complete build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 19

android: RecyclerView inside a ScrollView

蹲街弑〆低调 提交于 2019-11-26 22:58:32
问题 I have a RecyclerView wrapped in a LinearLayout and it works perfectly as expected. I can see all the data in the RecyclerView as populated. So far so good. When I wrap the LinearLayout in a ScrollView , the RecyclerView goes blank. I do not see anything inside RecyclerView . Why? How to make this work. The page is one of the tabs in a ViewPagerIndicator , so everything in that tab needs to be in a ScrollView . Thanks for all the help. 回答1: Set this property for the ScrollView, android

Android ViewPager with bottom dots

时光毁灭记忆、已成空白 提交于 2019-11-26 15:36:35
I want to add 3 bottom dots to my ViewPager, like this. I use FragmentActivity and support library ViewPager. No need for that much code. You can do all this stuff without coding so much by using only viewpager with tablayout . Your main Layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.v4

Add ViewPagerIndicator to Android Studio

可紊 提交于 2019-11-26 12:54:07
问题 i\'m trying to get Jake Wharton\'s ViewPagerIndicator working with Android Studio but unfortunately it won\'t work. I downloaded the .aar file from here and included it in my libs folder. I referenced it like this: compile files(\'src/main/libs/viewpagerindicator_2.4.1.aar\') Android Studio gives me the following error: Error:duplicate files during packaging of APK I\'m not very familiar with gradle and don\'t know what to do when it gives me this error. Can you please help me with this one?