android-imageview

Centered zooming a Google Map through a wrapper?

被刻印的时光 ゝ 提交于 2019-12-24 20:18:50
问题 How can i set a listener on an transparent ImageView that is above the map, to only react to pinching (zooming) events on it, while everything else like moving the map gets handled by the Google map? My goal is to create centered zooming on the map which can be done like so: mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(mGoogleMap.getCameraPosition().target, amountOfZoomNeeded)); but i need to catch that pinch event first, and only that event since onTouch blocks using the map

How to load image without file extension from URL to ImageView in Android

自闭症网瘾萝莉.ら 提交于 2019-12-24 20:07:48
问题 I have this URL https://speakyfox-api-qa.herokuapp.com/api/v1/files/be28dcec-4912-4f58-8cb8-12b9b2948fc3 . There is a PNG image on this URL address in blob storage accessible without any headers (normally) on the REST API. It opens normally from the web browser (e.g. Chrome). However, any attempt to load it in Java Android application to ImageView fails miserably. I have tried Volley, Picasso, Glide, Retrofit and manual methods. I include some code I have tried. The closest I have got to it

android vertical textview with image next to it [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-24 19:19:42
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . ive found a lot of info on how to subclass a textview & display the text vertically. Iam trying to display a star next to the text and iam having

Cardview shadow for ImageView

℡╲_俬逩灬. 提交于 2019-12-24 15:13:03
问题 (1 screenshot - ImageView visibility is visible, 2 screenshot - gone) When using ImageView with CardView we can say that shadow isn't visible at all (especially on the smartphone display) <android.support.v7.widget.CardView android:id="@+id/ImageViewWrapper" android:layout_width="0dp" android:layout_height="0dp" android:elevation="0dp" android:layout_margin="10dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:cardCornerRadius="6dp"> <android

Load image from webUrl at ImageView in ExpandableListView in android

醉酒当歌 提交于 2019-12-24 13:42:30
问题 In my project i am using google webService in which i am quering different query like-- hospital, cinema hall, resort etc. and get result in json format . From json i get so many data like Name, lat, lng, imageUrl, Web url in respective query. And i am manupulating these data and showing it in my Expandable listView. I am able to do show all data but when i am loading image on ImageView it is showing some mismatch. For loading image, I am using ImageLoader, FileCache, MemoryCache and Utils

ImageView: change image on press, and on release

可紊 提交于 2019-12-24 11:56:28
问题 I would change imageView picture when it's pressed, and change it again when pressure is released. That ImageView contains picture of a button, and when is pressed i would give to user a feedback (like when he press a normal button) by change image. This is my code: final ImageView imageView = (ImageView) findViewById(R.id.imageView1); imageView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { Log.i("IMAGE", "motion event: " + event

Android: How to: implement image drag and zoom extending ImageView using multi touch capability of 2.1 up

折月煮酒 提交于 2019-12-24 07:24:53
问题 I have this kind of behavior when I drag or zoom the image. If you have noticed, the image seems left the previous state during dragging. Any inputs are appreciated. 回答1: Please try to build the following a project. https://github.com/gabu/AndroidSDK-RecipeBook/tree/master/Recipe060 This project is Running fine on Nexus S/Android 2.3.4 Please compare the your code and this project. 回答2: Call invalidate in ondraw method. 回答3: Try this, I have a very sucessive solution for you,i m very sure

Android Images are not displayed after release build or if i instant run turn off

懵懂的女人 提交于 2019-12-24 07:16:10
问题 I am getting images id from drawable-hdpi at run time using getIdentifier method using following code mContext.getResources().getIdentifier(mContext.getPackageName() + ":drawable/" + mCur.getString(mCur.getColumnIndex(Constant.COLUMN_IMAGE_DRAWABLE)), null, null) i also tried following ways mContext.getResources().getIdentifier(mCur.getString(mCur.getColumnIndex(Constant.COLUMN_IMAGE_DRAWABLE))+"", "drawable", mContext.getPackageName()); and set image resource using following code imgPosotion

FrameLayout is shrinking ImageView , but camera is opening properly inside FrameLayout

谁都会走 提交于 2019-12-24 07:02:54
问题 I am opening the android Camera inside a FrameLayout in landscape mode, then the screen looks like- But the same Image when I open inside ImageView in FrameLayout, then it looks like- Please ignore the content of the Picture and funny squares drawn in the second image. The difference is, First CameraView opened in the entire screen or height touched the head of thescreen but second image shirinking the image to fit. I want the First image as well work like second, it should fit under a

Recycle ImageViews to avoid OutOfMemoryError

喜欢而已 提交于 2019-12-24 06:00:31
问题 In some phones (especially Samsungs), the application gives an error of OutOfMemory. I use a ViewFlipper with 4 ImageViews which they are shown in a tutorial. I have found no way to remedy the error or recycle imageviews. This is the method that manages the ViewFlipper: private void changeBackground(int position) { switch (position) { case 1: mViewFlipper.setDisplayedChild(1); mViewFlipper.setInAnimation(getActivity(), R.anim.anim_clockwise_onboarding); mViewFlipper.setOutAnimation