Android:Notes: Difference between revisions

From Wiki³
No edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Android Development Notes}}
{{DISPLAYTITLE:Android Development Notes}}
<div id="tocalign">__TOC__</div>
<div id="tocalign">__TOC__</div>
* [http://developer.android.com/about/dashboards/index.html Android Dashboard]


* [http://developer.android.com/guide/components/index.html Android API Guidelines]
* [http://developer.android.com/guide/components/index.html Android API Guidelines]
* [http://developer.android.com/reference/packages.html Android API Reference]
* [http://developer.android.com/training/index.html Android Training]
* [http://developer.android.com/training/index.html Android Training]


Line 20: Line 23:
</syntaxhighlight>
</syntaxhighlight>


=Image Sizing=
=Software Keyboard: Next=
{{mono|android:nextFocusDown}}<br />
The "next" soft button or the TAB key is looking for the next "down" focus.
 
=Images=
==Icon Sizes==
==Icon Sizes==
* Low-density (ldpi): 36x36
* Low-density (ldpi): 36x36
Line 57: Line 64:
|ic_dialog_info.png
|ic_dialog_info.png
|}
|}
=External Helpful Links=
* [http://www.androidhive.info/2011/08/how-to-switch-between-activities-in-android/ Switching Activities and Passing Variables]
* [http://shanetully.com/2011/12/android-3-x-and-4-x-numberpicker-example/ NumberPicker Example]
* [https://code.google.com/p/android-ui-utils/ Android UI Utils]
* [http://gimite.net/en/index.php?Run%20native%20executable%20in%20Android%20App Run a native executable in an Android App]


[[Category:Android]]
[[Category:Android]]

Latest revision as of 08:24, 18 May 2014

Hiding the Activity Titlebar

public void onCreate(Bundle savedInstanceState) {
    //Remove title bar
    this.requestWindowFeature(Window.FEATURE_NO_TITLE);

    //Remove notification bar
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

    //Launch the Main layout
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
}

Software Keyboard: Next

android:nextFocusDown
The "next" soft button or the TAB key is looking for the next "down" focus.

Images

Icon Sizes

  • Low-density (ldpi): 36x36
  • Medium-density (mdpi): 48x48
  • High-density (hdpi): 72x72
  • Extra high-density (xhdpi): 96x96
  • Recommended Initial Artboard Size: 864x864

Icon Naming Convention

Asset Type Prefix Example
Icons ic_ ic_star.png
Launcher icons ic_launcher ic_launcher_calendar.png
Menu icons and Action Bar icons ic_menu ic_menu_archive.png
Status bar icons ic_stat_notify ic_stat_notify_msg.png
Tab icons ic_tab ic_tab_recent.png
Dialog icons ic_dialog ic_dialog_info.png

External Helpful Links