Skip to content

Commit dc6b6f0

Browse files
author
Matt Oakes
committed
Merge pull request #2 from TechIsFun/master
Project integration
2 parents 6798c97 + 170e7e2 commit dc6b6f0

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ These snippets are designed to make it quicker and easier to create Android apps
55

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

1315
Recommended Installation
1416
------------------------

ad-edittext.sublime-snippet

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
<EditText
4+
android:id="@+id/${1:edittext_id}"
5+
android:layout_width="wrap_content"
6+
android:layout_height="wrap_content"
7+
android:hint="@string/${2:hint}"
8+
android:inputType="text"
9+
/>
10+
]]></content>
11+
<tabTrigger>EditText</tabTrigger>
12+
<scope>text.xml</scope>
13+
</snippet>

ad-textview.sublime-snippet

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<snippet>
2+
<content><![CDATA[
3+
TextView
4+
android:id="@+id/${1:textview_id}"
5+
android:layout_width="wrap_content"
6+
android:layout_height="wrap_content"
7+
android:text="@string/${2:text}"
8+
/>
9+
]]></content>
10+
<tabTrigger>TextView</tabTrigger>
11+
<scope>text.xml</scope>
12+
</snippet>

ad-toast.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content>
3+
<![CDATA[
4+
Toast.makeText(this, ${1:""}, Toast.LENGTH_LONG).show();
5+
]]>
6+
</content>
7+
<tabTrigger>ad-toast</tabTrigger>
8+
<scope>source.java</scope>
9+
</snippet>

0 commit comments

Comments
 (0)