imageview

doesn't show picture in android 6 and above

对着背影说爱祢 提交于 2020-01-27 08:46:25
问题 I am trying to learn how to use the camera in an app and this is what I reached , the idea is having a button that opens the camera and that the picture will instantly show on the screen after we take the picture, the second button is from an earlier version that couldn't show the picture immediately and had to be clicked in order to show it. Anyways my problem is that this code doesn't show the picture at android 6.. on my android 5 device it works fine.. the picture is saved in the "sdcard

Fadded edge to Imageview in android

懵懂的女人 提交于 2020-01-26 03:35:07
问题 In my project, I have to implement the following design. It is a list of images and text to display. I used a custom layout to inflate the rows. I set the above background to the item page. I set the image background to transparent. But I didn't get the output as the image one. I get the following image from the url. How can achieve the design as the first image. And my item xml is: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res

lateinit property homeViewModel has not been initialized

陌路散爱 提交于 2020-01-25 08:34:07
问题 I have a problem, I added three textView (textView, textView2, textView3) and imageView to fragment_home.xml and when I try to run the application on the emulator in Android Studio I get the error lateinit property homeViewModel has not been initialized . homeFragment.kt class homeFragment : Fragment() { private lateinit var homeViewModel: homeViewModel override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { homeViewModel =

Is it possible to make a ImageView in JavaFX responsive?

♀尐吖头ヾ 提交于 2020-01-25 06:48:27
问题 me and some friends are having a project, where we try to programm a game in JavaFX. We´ve got a GridPane, thats growing with ImageViews inside to hold the map and the game character, etc. (The game character and enemies will have their own imageview, that we can move around in the gridpane.) So, our problem now is, that we want out pictures to get bigger, when the window is getting bigger also, but right now only the columns of the GridPane are getting more distance to each other. I tried to

How to set google drive image link to imageview? [duplicate]

心不动则不痛 提交于 2020-01-25 06:40:12
问题 This question already has answers here : show google drive image with glide in android imageview (2 answers) Closed 2 years ago . I am trying to set google drive image link to image view, but it showing blank.I tried many ways and i used Glide library also. If i am using sample online url it is working. Here is my link. https://drive.google.com/file/d/18F2oNjVUmyX7Kez5r7A6tOlrN0u5oZOr/edit How to solve this help me please. 回答1: You can append the file id to ( "https://docs.google.com/uc?id=")

R.styleable cannot be resolved

☆樱花仙子☆ 提交于 2020-01-24 14:15:30
问题 hai friends...my java file indicate this error: R.styleable cannot be resolved.... my xml file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Gallery xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/videoGrdVw" android:layout_width="fill_parent" android:layout_height="fill_parent" android:numColumns

Android - ImageView with rounded only one corner

蹲街弑〆低调 提交于 2020-01-24 05:14:10
问题 I want to create ImageView like this (right side of the image): I have it in CardView layout so I have rounded corners of the card but I need to create rounded left bottom corner of the image alone (or with top right). I tried several options but nothing work correctly. How can I do this? Do you have some tip? 回答1: You can use this library and put your ImageView inside the Layout https://github.com/JcMinarro/RoundKornerLayouts and can set the radius for specific corners like this

How to convert coordinates on Bitmap to real coordiates on Image View displayed on screen

大兔子大兔子 提交于 2020-01-24 01:08:31
问题 I have an Image View which displays an image (e.g 2000x1000 pixels) and I have a coordinate (X,Y) on that image (not the image view). The canvas of my Image View is 600x800 for example. How can I convert the point (X,Y) to screen coordinate so that I can draw a path with them on the OnDraw(...) method of Image View. Any help is appreciated! Thank you. Update: If I use matrix to draw the path between coordinates, it works but the path and objects i draw become really small. Here is the code i

Saving an image on sqlite from camera or gallery

给你一囗甜甜゛ 提交于 2020-01-24 00:18:05
问题 I am struggling with saving image on sqlite. I am trying to save image as blob on sqlite. I don't know how to declare imageView to byte[] because I am using insert method on dbAdapter . Is it good way to save the image into database? some people said that saving file path url into database is better. If it is better, please give me some your hands. I am really getting tough for that. Many thanks. protected void onActivityResult(int requestCode, int resultCode, Intent data) { super

How to get position of text in an image using Mobile Vision API?

ぐ巨炮叔叔 提交于 2020-01-22 14:15:05
问题 How to get the position of text on the screen in an image using Mobile Vision API, and how to draw a rectangle around them? Example: 回答1: How to do it Put an ImageView in the layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:layout_width="match