Skip to content

Instantly share code, notes, and snippets.

View robertoestivill's full-sized avatar

Roberto Estivill robertoestivill

View GitHub Profile
@robertoestivill
robertoestivill / .profile
Last active November 9, 2022 22:17
Fix Android Studio Case Sensitive IDE Warning on OSx
alias intellij-case-patch='printf '\''\nidea.case.sensitive.fs=true'\'' >> /Applications/Android\ Studio.app/Contents/bin/idea.properties'
@robertoestivill
robertoestivill / themes-debug.xml
Last active June 18, 2018 13:57 — forked from dlew/themes-debug.xml
With the new theming in AppCompat, a lot of assets are tinted automatically for you via theme attributes. That has often led me to wonder "where the hell did this color come from?" You can replace your normal theme with this debug theme to help figure out the source of that color.
<!-- You can change the parent around to whatever you normally use -->
<style name="DebugColors" parent="Theme.AppCompat">
<!-- System colors -->
<item name="android:windowBackground">@color/__debugWindowBackground</item>
<item name="android:colorPressedHighlight">#FF4400</item>
<item name="android:colorLongPressedHighlight">#FF0044</item>
<item name="android:colorFocusedHighlight">#44FF00</item>
<item name="android:colorActivatedHighlight">#00FF44</item>
@robertoestivill
robertoestivill / aca kml
Last active August 29, 2015 14:26
Estaciones de servicio y paradores A.C.A en KML
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document> <Style id="aca"> <IconStyle>
<Icon>
<href>http://miraargentina.com/components/com_jreviews_addons/geomaps/icons/aca.png</href>
</Icon>
</IconStyle>
</Style>
<Style id="campingsite"> <IconStyle>
<Icon>
@robertoestivill
robertoestivill / Main class
Last active August 29, 2015 14:26
Object to KML
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
@robertoestivill
robertoestivill / Reason
Last active May 4, 2016 01:03
Intellij Case Sensitivity Warning Fix
This is a quick fix for the IntelliJ / AndroidStudio case sensitivity warning.
https://confluence.jetbrains.com/display/IDEADEV/Filesystem+Case-Sensitivity+Mismatch
This warning comes up everytime after platform updates, and it is display when projects are located in case sensitive partition.
/**
* Podes llamar al PreferenceHelper desde cualquier lado de codigo, aun sin un contexto.
*
*/
public MyFragment extends Fragment{
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
...