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
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { | |
val holder = ViewHolder( | |
LayoutInflater.from(parent.context) | |
.inflate(R.layout.list_item_appointment, parent, false) | |
) | |
if (!itemWidthMatchParent && items.size > 1) { | |
val params = holder.itemView.layoutParams | |
params.width = | |
parent.measuredWidth - (4 * parent.context.resources.getDimensionPixelSize(R.dimen.margin_10)) |
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
[{ | |
"id": 59, | |
"name": "FRISKUS Tresfjord IL 2016", | |
"created_at": "2015-10-19T10:17:28+02:00", | |
"created_by": "organization", | |
"start_date": "2015-10-16T00:00:00+02:00", | |
"end_date": "2016-10-15T23:59:00+02:00", | |
"admission_price": 15000, | |
"finished": true, | |
"organization_id": 7, |
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
progressBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { | |
@Override | |
public void onStopTrackingTouch(SeekBar seekBar) { | |
// Quando alguem acaba a interagir com a PB | |
} | |
@Override | |
public void onStartTrackingTouch(SeekBar seekBar) { | |
// Quando alguem comeca de interagir com a PB |
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
String appPackageName = "com.travelcentral24.yougoto"; | |
try { | |
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); | |
} catch (android.content.ActivityNotFoundException anfe) { | |
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName))); | |
} |
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
@Override | |
public BottomMenuItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { | |
final View itemLayoutView = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_bottom_menu, | |
parent, false); | |
BottomMenuItemViewHolder viewHolder = new BottomMenuItemViewHolder(itemLayoutView); | |
DisplayMetrics displaymetrics = new DisplayMetrics(); | |
final WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); |
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
07-17 10:01:52.404 7748-7748/? E/Zygote: v2 | |
07-17 10:01:52.404 7748-7748/? I/libpersona: KNOX_SDCARD checking this for 10208 | |
07-17 10:01:52.404 7748-7748/? I/libpersona: KNOX_SDCARD not a persona | |
07-17 10:01:52.414 7748-7748/? W/SELinux: Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0030 | |
07-17 10:01:52.414 7748-7748/? W/SELinux: SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=uk.tva.androiddownloadlibrarytest | |
07-17 10:01:52.414 7748-7748/? I/art: Late-enabling -Xcheck:jni | |
07-17 10:01:52.474 7748-7748/? D/TimaKeyStoreProvider: TimaSignature is unavailable | |
07-17 10:01:52.474 7748-7748/? D/ActivityThread: Added TimaKeyStore provider | |
07-17 10:01:52.634 7748-7748/uk.tva.androiddownloadlibrarytest W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --debuggable --instruction-set=arm --instruction-set-features=smp,-div,-atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --ru |
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
{ | |
"screen_type": "list", | |
"layouts": [ | |
{ | |
"layout_type": "carousel", | |
"order": 0, | |
"rows": 1, | |
"columns": 2.5, | |
"number_max_elements": 10, | |
"orientation": "horizontal", |
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
private void playNextVideo(){ | |
for (int i = 0; i < contentArrayList.size(); i++){ | |
if (contentArrayList.get(i).isPlaying()){ | |
if (i == contentArrayList.size() - 1) | |
finish(); | |
url = "https://cdnapisec.kaltura.com/p/309/sp/0/playManifest/entryId/" + | |
contentArrayList.get(i + 1).getIdKaltura() | |
+"/format/applehttp/protocol/http/flavorParamId/301971/manifest.m3u8"; | |