This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tried to follow the naming conventions as mentioned in | |
http://android-developers.blogspot.com/2013/08/actionbarcompat-and-io-2013-app-source.html | |
res/values/styles.xml | |
<resources> | |
<style name="Theme.Styled" parent="@style/Theme.AppCompat.Light"> | |
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item> | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean replaceLocalFilePath(String relativeUrl, String localfilePath) { | |
boolean urlMatchFound = false; | |
String PATTERN = relativeUrl; | |
Pattern addressPattern = Pattern.compile(PATTERN, Pattern.CASE_INSENSITIVE); | |
Matcher matcher = addressPattern.matcher(downloadedData.toString()); | |
int count = 0; | |
// Find the number of occurrences of relative url is found in html. | |
while (matcher.find()) { | |
count++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Activity implements DatePickerDialog.OnDateSetListener { | |
int selectedIndex = 0; | |
int previousSelectedIndex = 0; | |
NavigationAdapter adapter; | |
onCreate() { | |
ArrayList<String> itemList = new ArrayList<String>(); |