Skip to content

Instantly share code, notes, and snippets.

View alfannas's full-sized avatar

Alfan Nasrulloh alfannas

View GitHub Profile
{
"latestVersion": "1.2.2",
"latestVersionCode": 10,
"url": "https://play.google.com/store/apps/details?id=com.github.javiersantos.appupdater.demo",
"releaseNotes": [
"- Text update",
"- Fitur baru",
"- Bug fixes"
]
}
public class HelloWorld
{
public static void main(String[] args)
{
PracticalAstronomy astro = new PracticalAstronomy(2455002.25);
double[] date = astro.getGregorianDay();
System.out.print((int)date[0] + " " + (int)date[1] + " " + date[2]);
//will output 2009 6 19.75
}
}
public class ShowJulianDay
{
// arguments are passed using the text field below this editor
public static void main(String[] args)
{
PracticalAstronomy astro = new PracticalAstronomy(2009,6,19,18,0,0);
System.out.print(astro.getJulianDay());
}
}
...
LayoutInflater myinflater = getLayoutInflater();
ViewGroup myHeader = (ViewGroup)myinflater.inflate(R.layout.android_listview_header, listView, false);
TextView tvHeader = (TextView)myHeader.findViewById(R.id.header_textview);
listView.addHeaderView(myHeader);
listView.setAdapter(adapter);
...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp">
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.