From db1bdf6bfba237cd07ca2c7f09a8aae75452deb9 Mon Sep 17 00:00:00 2001 From: Carsten H Date: Sat, 14 Feb 2015 15:17:39 +0100 Subject: [PATCH] Enable Syntax highlighting in the readme --- README.md | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 07fb7c9..79b046b 100644 --- a/README.md +++ b/README.md @@ -24,30 +24,29 @@ I have just figured out missing bits & pieces and made a simple library out of i Usage : -XML Layout - - - - - -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 + +``` + +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 --------