Skip to content

Instantly share code, notes, and snippets.

Mani smanikandan14

Block or report user

Report or block smanikandan14

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Activity
Activity implements DatePickerDialog.OnDateSetListener {
int selectedIndex = 0;
int previousSelectedIndex = 0;
NavigationAdapter adapter;
onCreate() {
ArrayList<String> itemList = new ArrayList<String>();
View gist:a176433b5497fdeab452
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 Apr 19, 2018
Change action menu text item color actionbar compat.
View gist:9777422
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>
You can’t perform that action at this time.