Back to project page arcgis-runtime-samples-android.
The source code is released under:
Apache License
If you think the Android project arcgis-runtime-samples-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright 2014 ESRI *//from w ww . j a v a 2 s .c o m * All rights reserved under the copyright laws of the United States * and applicable international laws, treaties, and conventions. * * You may freely redistribute and use this sample code, with or * without modification, provided you include the original copyright * notice and use restrictions. * * See the Sample code usage restrictions document for further information. * */ package com.esri.arcgis.android.samples.PopupUICustomization; import java.util.Locale; import android.app.Activity; import android.content.Context; import android.widget.TextView; import com.esri.android.map.popup.ArcGISMediaView; import com.esri.android.map.popup.Popup; import com.esri.android.map.popup.PopupUtil; /* * Customized media view */ public class MyMediaView extends ArcGISMediaView { public MyMediaView(Context context, Popup popup) { super(context, popup); // Change the header of the view setPadding(0, PopupUtil.convertDpInPixels(context, 10), 0, 0); removeView(mHeader); mHeader = (TextView) ((Activity) context).getLayoutInflater().inflate(R.layout.popup_attribute_fieldname, null); mHeader.setText(context.getString(R.string.media).toUpperCase(Locale.getDefault())); addView(mHeader, 0); // remove separator between header and media. removeView(mSeparator); mGrid.setPadding(0, 0, 0, 0); } }