Skip to content

Instantly share code, notes, and snippets.

View nandiraju's full-sized avatar
:octocat:
Geeking

Srikanth nandiraju

:octocat:
Geeking
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=0">
<link href="ext-touch.css" rel="stylesheet">
<style>
#body_panel {
background-color: #efefef;
display: block;
}
package ca.demo.demolistview.complex;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
@nandiraju
nandiraju / StackTrace printer.java
Last active December 23, 2015 05:38
Print stacktrace on View elements.
public void displayStackTrace(Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
mText.append("\n\nSTACK TRACE \n" + sw.toString());
Log.i(TAG, sw.toString());
}

App Navigation

Lateral Navigation

  • Switching between sibling elements
  • Action bar can do this through tabs, or spinners
    • "Implementing Effective Navigation"
    • Action Bar compatibility for 2.1+ * No need to rush off ABS, but for new apps, go for ActionBarCompat
  • View Pager