This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int dp; | |
Resources r = getResources(); | |
if(tabsContainerOptions != null){ | |
int pixels = tabsContainerOptions.optInt("tabHeight"); | |
if(pixels != null){ | |
dp = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, pixels, r.getDisplayMetrics()); | |
}else{ | |
dp = (int) r.getDimension(R.dimen.tab_height); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootProject.ext { | |
appVersionName = '1.5.0' | |
appVersionCode = 100 | |
minSdkVersion = 14 | |
compileSdkVersion = 17 | |
targetSdkVersion = 17 | |
buildToolsVersion = "19.1.0" | |
gradleAndroidPluginVersion = '0.12.+' // Reminder: also update version in top buildscript | |
supportLibVersion = '19.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11-07 14:52:22.999 29488-29488/com.reachlocal.mobile.liger.testApp.debug E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.reachlocal.mobile.liger.testApp.debug, PID: 29488 | |
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 | |
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) | |
at java.util.ArrayList.set(ArrayList.java:481) | |
at android.support.v4.app.FragmentManagerImpl.makeInactive(FragmentManager.java:1169) | |
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078) | |
at android.support.v4.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:1023) | |
at android.view.animation.AnimationSet.getTransformation(AnimationSet.java:400) | |
at android.view.animation.Animation.getTransformation(Animation.java:940) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.reachlocal.mobile.liger.ui; | |
import android.os.Bundle; | |
import android.support.v4.app.ActionBarDrawerToggle; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v4.widget.DrawerLayout; | |
import android.support.v7.app.ActionBarActivity; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup;import android.widget.LinearLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.reachlocal.mobile.liger.ui; | |
import android.os.Bundle; | |
import android.support.v4.app.ActionBarDrawerToggle; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v4.widget.DrawerLayout; | |
import android.support.v7.app.ActionBarActivity; | |
import android.util.Log; | |
import android.view.LayoutInflater; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11-04 15:23:11.346 12871-12871/? E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.reachlocal.mobile.liger.testApp.debug, PID: 12871 | |
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 1 | |
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) | |
at java.util.ArrayList.set(ArrayList.java:481) | |
at android.support.v4.app.FragmentManagerImpl.makeInactive(FragmentManager.java:1169) | |
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078) | |
at android.support.v4.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:1023) | |
at android.view.animation.AnimationSet.getTransformation(AnimationSet.java:400) | |
at android.view.animation.Animation.getTransformation(Animation.java:940) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Activity - Back button | |
@Override | |
public boolean dispatchKeyEvent(KeyEvent event) { | |
int keyCode = event.getKeyCode(); | |
if ((keyCode == KeyEvent.KEYCODE_BACK)) { | |
if (event.getAction() == KeyEvent.ACTION_UP) { | |
if (menuDrawer.isDrawerOpen(Gravity.START)) { | |
menuDrawer.closeDrawers(); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected View createContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
mNavigatorContentFrame = inflater.inflate(R.layout.navigator_layout, container, false); | |
mNavigatorContentFrame.setId(ViewUtil.generateViewId()); | |
return mNavigatorContentFrame; | |
} | |
@Override | |
public Dialog onCreateDialog(Bundle inState) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
createContentView(inflater, container, savedInstanceState); | |
if (LIGER.LOGGING) { | |
Log.d(LIGER.TAG, "PageFragment.onCreateView() " + pageName); | |
} | |
if (isDialog) { | |
return super.onCreateView(inflater, container, savedInstanceState); | |
} | |
FragmentManager childFragmentManager = getChildFragmentManager(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add to Gemfile | |
gem 'capistrano' | |
gem 'capistrano-ext' | |
gem 'capistrano-rvm' | |
gem 'capistrano-rails' | |
gem 'capistrano-bundler' | |
Install Capistrano |
NewerOlder