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
files uploaded. |
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
package pe.taxiapp.client.widget; | |
/** | |
* Created by doapps on 9/9/15. | |
*/ | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Typeface; | |
import android.text.Spannable; |
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
RequestQueue requestQueue = Volley.newRequestQueue(this); | |
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest( | |
Request.Method.POST, | |
"github.com/api/login", | |
new Response.Listener<JSONObject>() { | |
@Override | |
public void onResponse(JSONObject response) { | |
Log.e("LOGIN", response.toString()); | |
} | |
}, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- Estado Presionado --> | |
<item android:state_pressed="true"> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle"> | |
<corners android:radius="10dp" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape> | |
<gradient android:angle="90" android:endColor="@color/white_5" android:startColor="@color/black_50" android:type="linear" /> | |
</shape> | |
</item> | |
</selector> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="AppTheme" parent="android:Theme.Material.Light"> | |
<item name="android:colorPrimary">@color/red_forte</item> | |
<item name="android:colorPrimaryDark">@color/red_light</item> | |
<item name="android:textColorPrimary">@color/white</item> | |
</style> | |
</resources> |
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
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="android:actionBarStyle">@style/MyActionBar</item> | |
<item name="actionBarStyle">@style/MyActionBar</item> | |
</style> | |
<!-- My Action Bar 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
/**generate key hash facebook**/ | |
EditText txt_key_fb = (EditText) findViewById(R.id.txt_fb); | |
try { | |
PackageInfo info = getPackageManager().getPackageInfo( | |
getPackageName(), PackageManager.GET_SIGNATURES); | |
for (android.content.pm.Signature signature : info.signatures) { | |
MessageDigest md; | |
md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); |
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
public class RoundedTransformation implements com.squareup.picasso.Transformation { | |
private final int radius; | |
private final int margin; // dp | |
// radius is corner radii in dp | |
// margin is the board in dp | |
public RoundedTransformation(final int radius, final int margin) { | |
this.radius = radius; | |
this.margin = margin; | |
} |
NewerOlder