This file contains hidden or 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
LayoutParams lp = new LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT, 1f); | |
view.setLayoutParams(lp); | |
lp.gravity = Gravity.BOTTOM; | |
lp.setMargins(0, 0, 0, getResources().getDimensionPixelSize(R.dimen.distance_5dp)); | |
addView(view); | |
setVisibility(VISIBLE); |
This file contains hidden or 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 void launchProgressDialog(){ | |
progressDialog = new MaterialDialog.Builder(this) | |
.title(R.string.send_info) | |
.content(R.string.plase_wait) | |
.progress(true, 0) | |
.progressIndeterminateStyle(true) | |
.cancelable(false) | |
.autoDismiss(false) | |
.show(); |
This file contains hidden or 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
// SEND BROAD CAST FROM SERVICE | |
private void sendBroadcastServerResponse(String code){ | |
Intent responseIntent = new Intent(); | |
responseIntent.setAction(BaseController.BROADCAST_RESPONSE_DELIVERY); | |
responseIntent.putExtra(ServerResponse.KEY_RESPONSE_CODE, code); | |
LocalBroadcastManager.getInstance(this).sendBroadcast(responseIntent); | |
Log.i(BaseController.TAG_DEBUG,"send broadcast sendDelivery response:"+code); |
This file contains hidden or 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 String searchSpotifyTracks( | |
final String query, final Response.Listener<List<SpotifyTrack>> responseListener, final Response.ErrorListener errorListener){ | |
// Get a RequestQueue | |
RequestQueue queue = AppController.getInstance().getRequestQueue(); | |
if(queue!=null){ | |
queue.cancelAll(TAG_SEARCH_TRACK_SPOTIFY); | |
Log.i(TAG, "all search request were cancelled"); |
This file contains hidden or 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"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle"> | |
<stroke android:width="1dip" android:color="#FBBB" /> | |
<corners android:radius="5dp" /> | |
<solid android:color="#6000"/> | |
</shape> |
This file contains hidden or 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
mAuthProgressDialog = new ProgressDialog(this); | |
mAuthProgressDialog.setTitle("Loading"); | |
mAuthProgressDialog.setMessage("Authenticating with Firebase..."); | |
mAuthProgressDialog.setCancelable(false); | |
mAuthProgressDialog.show(); |
This file contains hidden or 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
<TextView | |
android:id="@+id/clothing_subtitle" | |
android:text="Esta es una prenda, esta es una prenda bonita" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
style="?android:textAppearanceSmall" | |
android:layout_below="@id/clothing_title" | |
android:layout_toRightOf="@id/clothing_image" | |
android:layout_toEndOf="@id/clothing_image" | |
android:layout_toStartOf="@id/clothing_price" |
This file contains hidden or 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
OSX: | |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
keytool -list -v -keystore ~/documents/keys-rutaplus/key-blu.jks -alias alias-key-blue | |
WINDOWS | |
path to jdk keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
path to jdk keytool -list -keystore "D:\FAFA\Mis cuentas\ruta plus\keys Rutaplus\key-rutablue" |
This file contains hidden or 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
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, | |
R.array.failed_num, android.R.layout.simple_spinner_item); | |
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); |
This file contains hidden or 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
ImageView icView=(ImageView)getLayoutInflater().inflate(R.layout.rate_image, null); | |
LinearLayout.LayoutParams weightImg = new LinearLayout.LayoutParams(0, LayoutParams.WRAP_CONTENT, 1); | |
contentItem.addView(icView,weightImg); |
NewerOlder