Skip to content

Instantly share code, notes, and snippets.

View smanikandan14's full-sized avatar

Mani smanikandan14

View GitHub Profile
Activity implements DatePickerDialog.OnDateSetListener {
int selectedIndex = 0;
int previousSelectedIndex = 0;
NavigationAdapter adapter;
onCreate() {
ArrayList<String> itemList = new ArrayList<String>();
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++;
@smanikandan14
smanikandan14 / gist:9777422
Last active April 19, 2018 10:41
Change action menu text item color actionbar compat.
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>