// Path: src/at/zweng/bankomatinfos/util/Utils.java
// public static Spanned getAboutDialogText(Context ctx) {
// 	StringBuilder sb = new StringBuilder();
// 	sb.append("<b><font color=\"#ff3232\">");
// 	sb.append(ctx.getResources().getString(R.string.app_name));
// 	sb.append("</font></b>");
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">Version:</font></b> ");
// 	sb.append(getAppVersion(ctx));
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">License:</font></b> ");
// 	sb.append("GPL-3");
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">Author:</font></b>");
// 	sb.append("<br/>Johannes Zweng<br/><a");
// 	sb.append("href=\"mailto:android-dev@zweng.at?subject=Feedback%20Bankomat%20Info%20App\">");
// 	sb.append("android-dev@zweng.at</a><br/>");
// 	sb.append("<i>Be curious! Have fun! :-)</i>");
// 	sb.append("<br/><br/>");
// 
// 	// SOURCECODE
// 	sb.append("<b><font color=\"#ff3232\">Sourcecode:</font></b>");
// 	sb.append("<br/>Sourcecode of this app: https://github.com/johnzweng/bankomatinfos");
// 	sb.append("<br/><br/>");
// 
// 	// DOWNLOADS
// 	sb.append("<b><font color=\"#ff3232\">Downloads:</font></b>");
// 	sb.append("<br/>You can find this (and all previous versions) of this app here: http://johannes.zweng.at/android/Market/BankomatInfos");
// 	sb.append("<br/><br/>");
// 
// 	// ICON
// 	sb.append("<b><font color=\"#ff3232\">App icon:</font></b>");
// 	sb.append("<br/>Copyright owner of the app's icon: https://www.iconfinder.com/zohanimasi");
// 	sb.append("<br/>The icon <b>may not be used or re-distributed</b> in any form without the ");
// 	sb.append("permission of the icon's copyright owner!");
// 	sb.append("<br/><br/>");
// 
// 	// CREDITS
// 	sb.append("<b><font color=\"#ff3232\">Credits:</font></b>");
// 
// 	// javaemvreader
// 	sb.append("<br/>&#8226; Uses some classes from http://code.google.com/p/javaemvreader/ ");
// 	sb.append("project (licensed under Apache 2.0 license). Many thanks! :-)");
// 	sb.append("<br/>");
// 
// 	// changelog
// 	sb.append("<br/>&#8226; Thanks to Karsten Priegnitz for his easy-to-use changelog builder: https://code.google.com/p/android-change-log/");
// 
// 	sb.append("<br/>");
// 	return Html.fromHtml(sb.toString());
// }


import static at.zweng.bankomatinfos.util.Utils.getAboutDialogText;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import at.zweng.bankomatinfos2.R;

package at.zweng.bankomatinfos.ui;


/**
 * Fragment for about dialog
 * 
 * @author Johannes Zweng <johannes@zweng.at>
 */
public class AboutDialogFragment extends DialogFragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.fragment_about_dialog, container,
				false);
		getDialog().setTitle(R.string.about_dialog_title);
		TextView aboutText = (TextView) v.findViewById(R.id.creditDialog_text);

// Path: src/at/zweng/bankomatinfos/util/Utils.java
// public static Spanned getAboutDialogText(Context ctx) {
// 	StringBuilder sb = new StringBuilder();
// 	sb.append("<b><font color=\"#ff3232\">");
// 	sb.append(ctx.getResources().getString(R.string.app_name));
// 	sb.append("</font></b>");
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">Version:</font></b> ");
// 	sb.append(getAppVersion(ctx));
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">License:</font></b> ");
// 	sb.append("GPL-3");
// 	sb.append("<br/><br/>");
// 
// 	sb.append("<b><font color=\"#ff3232\">Author:</font></b>");
// 	sb.append("<br/>Johannes Zweng<br/><a");
// 	sb.append("href=\"mailto:android-dev@zweng.at?subject=Feedback%20Bankomat%20Info%20App\">");
// 	sb.append("android-dev@zweng.at</a><br/>");
// 	sb.append("<i>Be curious! Have fun! :-)</i>");
// 	sb.append("<br/><br/>");
// 
// 	// SOURCECODE
// 	sb.append("<b><font color=\"#ff3232\">Sourcecode:</font></b>");
// 	sb.append("<br/>Sourcecode of this app: https://github.com/johnzweng/bankomatinfos");
// 	sb.append("<br/><br/>");
// 
// 	// DOWNLOADS
// 	sb.append("<b><font color=\"#ff3232\">Downloads:</font></b>");
// 	sb.append("<br/>You can find this (and all previous versions) of this app here: http://johannes.zweng.at/android/Market/BankomatInfos");
// 	sb.append("<br/><br/>");
// 
// 	// ICON
// 	sb.append("<b><font color=\"#ff3232\">App icon:</font></b>");
// 	sb.append("<br/>Copyright owner of the app's icon: https://www.iconfinder.com/zohanimasi");
// 	sb.append("<br/>The icon <b>may not be used or re-distributed</b> in any form without the ");
// 	sb.append("permission of the icon's copyright owner!");
// 	sb.append("<br/><br/>");
// 
// 	// CREDITS
// 	sb.append("<b><font color=\"#ff3232\">Credits:</font></b>");
// 
// 	// javaemvreader
// 	sb.append("<br/>&#8226; Uses some classes from http://code.google.com/p/javaemvreader/ ");
// 	sb.append("project (licensed under Apache 2.0 license). Many thanks! :-)");
// 	sb.append("<br/>");
// 
// 	// changelog
// 	sb.append("<br/>&#8226; Thanks to Karsten Priegnitz for his easy-to-use changelog builder: https://code.google.com/p/android-change-log/");
// 
// 	sb.append("<br/>");
// 	return Html.fromHtml(sb.toString());
// }


// Path: src/at/zweng/bankomatinfos/ui/AboutDialogFragment.java
import static at.zweng.bankomatinfos.util.Utils.getAboutDialogText;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import at.zweng.bankomatinfos2.R;

package at.zweng.bankomatinfos.ui;


/**
 * Fragment for about dialog
 * 
 * @author Johannes Zweng <johannes@zweng.at>
 */
public class AboutDialogFragment extends DialogFragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.fragment_about_dialog, container,
				false);
		getDialog().setTitle(R.string.about_dialog_title);
		TextView aboutText = (TextView) v.findViewById(R.id.creditDialog_text);

		aboutText.setTextColor(getResources().getColor(
