Skip to content

Instantly share code, notes, and snippets.

View techindepth's full-sized avatar
👋

ANISH ANTONY techindepth

👋
View GitHub Profile
<svg height="400" width="400">
<rect x="50" y="50" width="100" height="150" rx="10" ry="10" style="stroke: #c40000; stroke-width: 3; fill: #a8a8a8;"/>
</svg>
@techindepth
techindepth / index.html
Created August 24, 2020 12:35
SVG Rectangle Example
<html>
<head>
<title>SVG Example</title>
</head>
<body>
<svg height="250" width="400">
<rect x="50" y="50" width="100" height="150" style="stroke: #c40000; stroke-width: 3; fill: #ececec;"/>
</svg>
</body>
</html>
@techindepth
techindepth / index.html
Created August 24, 2020 12:24
SVG Line example
<html>
<head>
<title>SVG Example</title>
</head>
<body>
<svg height="250" width="400">
<line x1="50" y1="50" x2="200" y2="200" style="stroke: #c40000; stroke-width: 3;"/>
</svg>
</body>
</html>
<svg height="225" width="400">
<text x="50" y="50" fill="#cc0e00" stroke="#047ff2" transform="rotate(35,50,50)" style="font-size: 40; font-family:Verdana">HELLO WORLD</text>
</svg>
<html>
<head>
<title>SVG Example</title>
</head>
<body>
<svg height="200" width="400">
<text x="50" y="50" fill="#cc0e00" stroke="#047ff2" transform="rotate(35)" style="font-size: 40; font-family:Verdana">Hello World</text>
</svg>
</body>
</html>
@techindepth
techindepth / index.html
Last active July 25, 2021 12:59
A simple svg text example
<html>
<head>
<title>SVG Example</title>
</head>
<body>
<svg height="200" width="400">
<text x="50" y="50" fill="#cc0e00" style="font-size: 40; font-family:Verdana">HELLO WORLD</text>
</svg>
</body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/simpleTableLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="1"> <!-- stretch the second column of the layout-->
<!-- first row of the table layout-->
<TableRow
<Button android:id="@+id/buttonA" ... />
<Button android:id="@+id/buttonB" ...
app:layout_constraintCircle="@+id/buttonA"
app:layout_constraintCircleRadius="100dp"
app:layout_constraintCircleAngle="45" />
<android.support.constraint.ConstraintLayout ...>
<Button android:id="@+id/button" ...
app:layout_constraintHorizontal_bias="0.3"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent/>
</>
<android.support.constraint.ConstraintLayout ...>
<Button android:id="@+id/button" ...
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent/>
</android.support.constraint.ConstraintLayout>