草庐IT

IMAGE_MAX_HEIGHT

全部标签

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

Android TextView : How to place text above specific position in line/Setting height for ReplacementScan subclass

我正在尝试在TextView中显示带有和弦的歌词。为此,我需要在正文的特定部分上方放置字母或符号。到目前为止,我的想法是像这样子类化ReplacementSpan:importandroid.graphics.Canvas;importandroid.graphics.Paint;importandroid.graphics.Paint.FontMetricsInt;importandroid.text.style.ReplacementSpan;publicclassChordSpanextendsReplacementSpan{Stringchord;publicChordSpan

android - 卡片 View layout_height ="wrap_content"内部 ScrollView 不起作用

我在ScrollView和卡片View内添加了卡片View我添加了偏好fragment,但它只显示偏好类别标题。setting.xml任何解决方案。 最佳答案 添加android:fillViewport="true"来填充ScrollView。也不要忘记更改ScrollView内相对布局的高度。也将其更改为match_parent和卡片View的高度(match_parent)。最后布局应该是这样的, 关于android-卡片Viewlayout_height="wrap_conten

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

3ds Max科研作图

3dsMax科研作图——建模(一)  3dsMax是大家熟知的3D建模软件之一,其功能非常的强大,但用于科研绘图时,我们并不需要掌握太多的复杂功能,科研绘图的建模相对简单,材料与环境也相对固定。所以这篇文章将通过复刻一篇文献里的实物图,从建模、材料、灯光环境三个部分来向大家介绍一些3dsMax的使用基础。Ps.本教程不适合第一次打开3dsMax的朋友,在开始看之前建议先在b站学习3dsMax最基础的操作,这里推荐一个学习基础操作的视频,b站搜索《3dsmax科研绘图基础教程第一讲》(BV1dx411s7BL),以及推荐一个3dsMax科研绘图的公众号“3D科研绘图”。中间小球层:  先画一个半

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

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

java - 为什么在 android 中将 Width 和 Height 设置为 wrap_content 后,我​​的 EditText 会水平或垂直扩展?

我是安卓新手。所以我正在努力解决以下问题。1.在EditText中设置android:layout_width="wrap_content"后,垂直展开。2.在EditText中设置android:layout_width="180dp"后,水平展开有什么方法可以固定我的EditText吗?例如:如果我要在EditText中键入一个长电子邮件地址,文本的字体大小应该根据长文本缩小而不是EditText扩大。有没有可能完成这个任务?这是我的代码谢谢梅艳芳 最佳答案 使用此布局代替您的布局:我已经使用了您的XML并对其进行了修改。只需添