Skip to content

Instantly share code, notes, and snippets.

View Iman's gist: ViewPager
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
@akodiakson
akodiakson / add_category.xml
Created Sep 9, 2015
StackOverflow "Android add EditText dynamically"
View add_category.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:id="@+id/relative1"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".AddCategory">
@akodiakson
akodiakson / Google sign-in logcat
Last active Aug 29, 2015
Here's the logcat message I saw when trying to add a Google account within Buffer for Android. On the UI, I see a Toast with the following message: "This account doesn't have a page associated with it. Please create one and try again."
View Google sign-in logcat
08-17 22:35:11.606 1000-1708/? E/Parcel﹕ Class not found when unmarshalling: com.google.android.gms.auth.accounts.gettoken.GetTokenController
java.lang.ClassNotFoundException: com.google.android.gms.auth.accounts.gettoken.GetTokenController
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at java.lang.Class.forName(Class.java:272)
at android.os.Parcel.readParcelableCreator(Parcel.java:2275)
at android.os.Parcel.readParcelable(Parcel.java:2239)
at android.os.Parcel.readValue(Parcel.java:2146)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2479)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)