Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 621 Bytes

STANDARDS.md

File metadata and controls

40 lines (32 loc) · 621 Bytes

Coding Standards

Importing the Project

Import > Project
Select the build.gradle file on the top level
Auto-import

Android XMLs

Naming XML Files:

type_name.xml

types: activity,dialog,etc 
name: the name

i.e. activity_main.xml, dialog_session.xml

Naming View Ids

XMLFILENAME_name_type

type: listview, text, edit, divider, etc

i.e. activity_main_sessions_listview

Use Resource XMLs

i.e. color,string,dimens,etc

Class Naming

Name_ExtendedClass

##Shared Preferences

Preferences name -> StoryQuilt 
key name -> name of variable (global throughout app)