Skip to content

Instantly share code, notes, and snippets.

View ngangavic's full-sized avatar
💻
I love deadlines

Ng'ang'a Victor ngangavic

💻
I love deadlines
View GitHub Profile
@ngangavic
ngangavic / activity_login.xml
Last active November 9, 2019 18:50 — forked from polojerry/activity_login.xml
Login design for dating app
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
public class TempConversion {
//fahren to cel
public int celsius(int fahrenheit) {
int cel = (fahrenheit-32)*5/9;
return cel;
}