草庐IT

rn-image-picker

全部标签

android - 更改时间强制关闭 : Time Picker (NPE)

当我点击时间选择器更改时间时,我强制关闭。谁能告诉我我的代码哪里出了问题。安卓。这是我的代码......timePickerDateTimePickerPopup=(TimePicker)layoutDateTimePickerPopup.findViewById(R.id.timePicker_datetimepicker);timePickerDateTimePickerPopup.setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);timePickerDateTimePickerPopup.setIs24Ho

android - 基维 : Image + Label inside dynamic buttons

我想在for循环中创建的动态按钮内显示图像+标签。问题是它只在最后一个按钮中显示图像+标签布局。如何在所有按钮中显示它?主.pyclassHomeScreen(Screen):grid_l=ObjectProperty(None)top_lbl=ObjectProperty(None)defsearch_btn_pressed(self):grid=self.grid_lgrid.bind(minimum_height=grid.setter('height'),minimum_width=grid.setter('width'))foriinrange(3):layout=GridL

android - 将 MediaStore.EXTRA_OUTPUT 用于 ACTION_IMAGE_CAPTURE 时对 onActivityResult 的 Intent 为空

我正在尝试从我的ACTION_IMAGE_CAPTUREActivity中检索文件,但是当我使用cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);我的Activity结果为空Intent。这是完整的代码。IntentIntentcameraIntent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE);cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,MediaStore.Im

安卓 : how to capture a image of GPS location

我正在使用Googlemap查找所提供地址的位置。我想存储从GooglemaponClick获取的位置图像。有人知道怎么做吗?这是我的谷歌地图和存储onClick的代码publicclassTestGPSActivityextendsMapActivity{MapViewmapView;privateMapControllermc;privateGeoPointp;privatedoublelng;privatedoublelat;privateAddressaddress;privateViewmCurrentUrlMask;privateFileimageFile;classMap

Android,如何实例化Universal Image Loader?

在我的项目中,我有一个包含图像的GridView。根据我的研究,UniversalImageLoader项目旨在在后台下载图像。然后根据样本我设置了我的适配器。这是我编写的代码:packagecam.astro.mania.adapters;importjava.io.File;importjava.util.ArrayList;importcom.astro.mania.activities.Contestants_Photo;importcom.astro.mania.activities.R;importcom.nostra13.universalimageloader.cach

java - 使用 ACTION_IMAGE_CAPTURE 时返回什么数据?

我对这个描述有点困惑:ThecallermaypassanextraEXTRA_OUTPUTtocontrolwherethisimagewillbewritten.IftheEXTRA_OUTPUTisnotpresent,thenasmallsizedimageisreturnedasaBitmapobjectintheextrafield.Thisisusefulforapplicationsthatonlyneedasmallimage.IftheEXTRA_OUTPUTispresent,thenthefull-sizedimagewillbewrittentotheUriv

java - 安全异常 : No persistable permission grants found for uri from ACTION_IMAGE_CAPTURE

我的应用使用相机拍照并长期使用。Intentintent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE);UriresultUri=null;resultUri=getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,newContentValues());imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,resultUri);startActivityForResult(imageCaptureInten

安卓图像按钮 : how to remove tinted rectangle around image?

我正在开发Android应用程序。我有一个包含许多图像按钮的主菜单,每个图像按钮都会让用户在点击时进入一个新View。我遇到的问题是,每个图标周围都是一个有色矩形,点击时会变成浅蓝色。如何删除.xml布局文件中的这个透明方block?非常感谢, 最佳答案 他们可能有来自android系统的默认背景。要删除它,请定义透明颜色#00000000然后将它用作按钮的背景我认为它会按照你想要的方式工作 关于安卓图像按钮:howtoremovetintedrectanglearoundimage?,

安卓ViewPager : downloading the images from URL

我正在尝试使用ViewPager创建图片库。我找到了几个例子,我已经让它们都起作用了。示例没有显示的一件事是如何使用从URL下载的图像填充ViewPager。所有教程的图片都在Drawables文件夹或SD卡上。有谁知道ViewPager从URL获取图像的示例。我找到了延迟加载GridView和ListView的示例,但我不够聪明,无法将它们转换为可用的ViewPager。我主要遇到适配器类的问题。延迟加载示例似乎使用了BaseAdapter,我认为ViewPager需要使用PagerAdapter对吧?那么,是否有任何从URL获取图像的ViewPager示例?我需要ViewPager

如何使用Laravel项目添加JQuery DateTime Picker?

$(function(){$('.datetimepicker1').datetimepicker({language:'pt-BR'});});这是我的刀片视图。但是,在未显示的输入框架上概括了它。即使没有显示图标。看答案作为JQueryDateTimePicker的文档,请在此处提及https://jqueryui.com/datepicker/您需要与jquery-ui.css一起添加jquery-ui.js。因此,您正确的工作代码就是这样显示的$(function(){$('#datetimepicker1').datepicker({language:'pt-BR'});});