Skip to content

Commit

Permalink
Merge pull request #2 from TechIsFun/master
Browse files Browse the repository at this point in the history
Project integration
  • Loading branch information
Matt Oakes committed Aug 29, 2014
2 parents 6798c97 + 170e7e2 commit dc6b6f0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ These snippets are designed to make it quicker and easier to create Android apps

Avaliable Snippets
------------------

- `ad-baseadapter` A stub BaseAdapter implementation which uses the [view holder pettern](http://developer.android.com/training/improving-layouts/smooth-scrolling.html#ViewHolder)
- `ad-logdebug` Debug log with a message
- `ad-widget` The basics needed to get started with creating a custom widget
- `ad-toast` Create and display a toast
- `<TextView` A basic TextView
- `<EditText` A basic EditText

Recommended Installation
------------------------
Expand Down
13 changes: 13 additions & 0 deletions ad-edittext.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<snippet>
<content><![CDATA[
<EditText
android:id="@+id/${1:edittext_id}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/${2:hint}"
android:inputType="text"
/>
]]></content>
<tabTrigger>EditText</tabTrigger>
<scope>text.xml</scope>
</snippet>
12 changes: 12 additions & 0 deletions ad-textview.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<snippet>
<content><![CDATA[
TextView
android:id="@+id/${1:textview_id}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/${2:text}"
/>
]]></content>
<tabTrigger>TextView</tabTrigger>
<scope>text.xml</scope>
</snippet>
9 changes: 9 additions & 0 deletions ad-toast.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content>
<![CDATA[
Toast.makeText(this, ${1:""}, Toast.LENGTH_LONG).show();
]]>
</content>
<tabTrigger>ad-toast</tabTrigger>
<scope>source.java</scope>
</snippet>

0 comments on commit dc6b6f0

Please sign in to comment.