Skip to content

Commit

Permalink
Merge pull request #20 from Moter8/patch-1
Browse files Browse the repository at this point in the history
Enabled Syntax highlighting in the readme. Thanks Moter8
  • Loading branch information
adnan-SM committed Feb 16, 2015
2 parents 46a0f49 + db1bdf6 commit 29b2971
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 29b2971

Please sign in to comment.