Skip to content

Commit

Permalink
Enable Syntax highlighting in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten H committed Feb 14, 2015
1 parent 46a0f49 commit db1bdf6
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,29 @@ I have just figured out missing bits & pieces and made a simple library out of i

Usage :

XML Layout -

<com.github.adnansm.timelytextview.TimelyView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_margin="@dimen/activity_vertical_margin"
/>


Java -

public class MainActivity extends Activity {
private TimelyView timelyView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
timelyView = (TimelyView) findViewById(R.id.textView1);
}
}

XML Layout:
``` xml
<com.github.adnansm.timelytextview.TimelyView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_margin="@dimen/activity_vertical_margin"
/>
```

Java:
``` java
public class MainActivity extends Activity {
private TimelyView timelyView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
timelyView = (TimelyView) findViewById(R.id.textView1);
}
}
```

License
--------
Expand Down

0 comments on commit db1bdf6

Please sign in to comment.