Skip to content

Commit

Permalink
added changelog to about activity
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmin committed Oct 27, 2012
1 parent 6d72e46 commit ba5cf29
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 121 deletions.
16 changes: 12 additions & 4 deletions res/values/strings.xml
Expand Up @@ -33,17 +33,25 @@
<string name="preferences">Preferences</string>
<string name="about_content">
<![CDATA[
<div style="font-size:larger">Changelog</div>
<p><strong>Version %s</strong></p>
<ul>
<li>Added changelog</li>
<li>Fixed bugs that were causing crashes</li>
</ul>
<hr>
<div style="font-size:larger">About</div>
<p>Podax was created by Dan Goldstein.
You can email me at <a href="mailto:dan@axelby.com">dan@axelby.com</a> with any comments or questions you have.
</p>
<p>Podax is open source software. You can get the source code at
<a href="http://github.com/thasmin/Podax">http://github.com/thasmin/Podax</a>.
It is available under the 2 clause BSD license.
</p>
<p>Podax uses the awesome <a href="www.actionbarsherlock.com">ActionBarSherlock</a>,
The libraries used are <a href="www.actionbarsherlock.com">ActionBarSherlock</a>,
<a href="www.viewpagerindicator">ViewPagerIndicator</a> and
<a href="https://github.com/bauerca/drag-sort-listview">drag-sort-listview</a>
libraries.
<a href="https://github.com/bauerca/drag-sort-listview">drag-sort-listview</a>.
</p>
<p>Special thanks to everyone who\'s helped on Github:</p>
<ul>
Expand Down
114 changes: 0 additions & 114 deletions res/values/strings.xml.orig

This file was deleted.

8 changes: 5 additions & 3 deletions src/com/axelby/podax/ui/AboutActivity.java
@@ -1,7 +1,7 @@
package com.axelby.podax.ui;

import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;

import com.axelby.podax.R;
Expand All @@ -14,12 +14,14 @@ public void onCreate(Bundle savedInstanceState) {

setContentView(R.layout.about);
WebView webview = (WebView) findViewById(R.id.webview);
String content = getString(R.string.about_content, getString(R.string.app_version));
Log.i("Podax", content);
String html = "<html><head><style type=\"text/css\">" +
"a { color: #E59F39 }" +
"</style></head>" +
"<body style=\"background:black;color:white\">" + getString(R.string.about_content) + "</body></html>";
"<body style=\"background:transparent;color:white\">" + content + "</body></html>";
webview.loadData(html, "text/html", "utf-8");
webview.setBackgroundColor(Color.BLACK);
webview.setBackgroundColor(0x00000000);
}

}

0 comments on commit ba5cf29

Please sign in to comment.