Hi,
I am developing the app which displays big tableview. I used horizontal scrollview inside the vertical scrollview and now, I would like to take a screenshot of the whole tableview. However, nothing I found is working. It either takes full width but not full height or only the size of the screen.
Thanks
Related
Many people may be confuse as to what these values mean. I think I've finally figured it out, "Hopefully" lol. It is very similar to how Margin/Border/Padding work in HTML except Margin is both Margin & Border as the border is part of the image.
Please see attached image.
The Red outline is the Edge of the image. Most images have a transparent edge around the outside of the gfx you see. The Yellow outline is the Margin. This is the distance from the edge of the images to the part of the image you don't want stretched when the image gets resized. So, if you have a 2 pixel transparency around the outside plus a 2 pixel Border, than you want a 4-5 pixel Margin. Padding is the same basically except it from where Margin stops of image to the where the Content begins, Content being text or what ever. If no Padding value is given, than the Content will begin at the inside of the Margin. An example would be to add a Left/Right Padding value to the new SoftKey Buttons of the newer builds so the text wouldn't go so close to the edge of the image. Also, same images may have a height or Width Value. This will restrict how big an image can become before it'll add the scroll ability. For example, you don't want the Menu to become too big to fit on-screen. So, you add a Height value, if all Content of the Menu is greater than the height, the menu will add the scroll arrows. It content is less than the height, no scroll arrows are used. With this being said, it could be possible to state a Max Width as well, haven't tested that though.
bookmarked.
Thanks
I want to develop an app that puts a white line grid on a black background.
The grid has 3 columns and 3 rows
There is a 10% border around the grid.
The first column takes up 50% width
The second column takes up 20% width
And the third column takes 10%width
None of the columns expand or contract, they always stay the same size.
Each row is the same height.
If you click any cell, a keyboard appears on the screen allowing you to input data into the cell.
Is it possible to do this white line grid in Android?
If yes, how does one do it?
Best regards
RedTopBox.com
anyone know
Hi All
i have not received any replies.
Can anyone help please
I think it is possible. Do you have a fixed number of rows? is it small? if yes, you could directly use LinearLayout with orientation set to horizontal for each row. There you have android:layout_weight which you can use to play with the different widths you have. For the table borders, just add a View, with a background color of your preference, again use layout_weight if necessary.
If you have too many rows, or you would prefer another approach, you could use TableLayout, and for each row a TableRow, and in the same way use layout_weight for the width. For drawing the borders you could do it in this way: http://www.droidnova.com/display-borders-in-tablelayout,112.html
TableLayout has different parameters like shrinkColumns, or stretchColumns, which you will probably would need, but I am no expert on this, so you would need to play with them.
For displaying a keyboard when the user press on each element of the table, you could have a editText on each, so this would be automatically.
BTW I recommend you asking this type of questions in stackoverflow.com, and tag it with android, there should be more capable people than me to help you with this particular case.
I've noticed some faint diagonal stripes on my LG G2 (LG-D802). They make a pixel like pattern of stripes, only they are diagonal from upper left to lower right and mostly visible on solid clear colors like red, green or blue. The stripes are very thin and the width of the stripes is comparable/or slightly smaller then the pixel width of my old Samsung Galaxy S2 (>200PPI). In other words, it's not something I see all of the time but it gets noticeable when you look closely. And as I said it is mostly visible on solid colors, and not on text and other edges where pixels normally is visible (not that I think this is the actual pixels I see). One of the easiest ways to see it is to search after "red" on google images and open a red image, but it is also visible in most apps or on the homescreen.
Is this something anyone else has experienced/noticed, or is it it my display that is faulty?
I'm not allowed to post an outside link in my message (new user), but here is a picture if anybody want's to see.
It was not easy to capture this on camera, but the stripes are barely visible in the red of the Google+ icon and in the dark blue of the image icon. For size comparison; I use Nova Launcher with icon size 70% and the Minimal UI icon pack.
www[dot]dropbox.com/s/68roby6lgh310y0/DiagonalStripesLGG2.jpg
Could it be a problem with your screen protector? If not i recommend sending it in for a check..
Thanks for the reply.
I don't have any screen protector on, but the lines does seem to be fixed to the screen. I.e. if I move an object the lines does not stick to the object but "new" lines gets visible, so it can look like it can be something with the glass.
If nobody else has experienced the lines I will definitively send the phone in for service.
I tried the local phone store, but the guy only laughed at me because he did'nt see it. Great service attitude when you make the customers feel stupid
Maybe you are talking about the touch sensors?
All the phones have it and it's more visible on xperia phones.
Maybe, but I think the lines/pattern is to small and dense to be the normal grid that people see. When I turn the screen off I can (barely) see the the digitzer grid, but it is a completely different pattern (horizontal and vertical lines) and the lines are separated by several line widths (some millimeters maybe?). The diagonal lines I see are very close together. It looks like they are only a line width apart from each other.
One other thing I just noticed is that the lines does not rotate when the screen is in landscape mode. They still go from the front-camera corner down to the corner to the right of the LG logo.
Is it nobody with a good sight that can confirm if they see the stripes or not? Would have helped me a lot when proceeding with getting the phone in for service.
Hello everyone. I want to make a splash screen for my game. I need the image to fit the screen's width but I want the height to be larger than the screen's. Than, I will have an animation moving the image vertically, hiding the top part and showing the bottom one.
I have searched a lot and I am more puzzled now on how I should do this.
Firstly the only solution I found for the fitting part was a combination of java and xml. But the problem here is that the java class doesn't produce a bigger than the screen image, but a cropped image. So, I can't make the animation later on.
Than i figured out that I could use a scrollview. And after combining some solutions I found on the web, I managed to have the right dimensions for my image and avoid any cropping. But now I can't do the animation because I am using the "fromYDelta ... toYDelta" and I can't find a way to calculate how much to put in the "toYDelta" value. And it cannot be a fixed value because every screen is different and so the dimensions of my splash screen.
Can anyone tell me a way to do this? Should I do it only in java and don't use xml at all? Or is it possible to do this through xml only (which would be better I think)?
I dropped my phone. Now, one strip of the screen (where the address bar in Chrome is) is no longer responsive to my touch.
I've come up with a workaround: using Nomone resolution changer to lower the screen height to avoid the problematic screen parts.
This is not ideal because the app removes screen size from both the top and the bottom, so I waste valuable screen real estate. Is there any app or any way I can adjust the screen height from only the top and not the bottom? Alternatively, feel free to suggest other workarounds
tongrhj said:
I dropped my phone. Now, one strip of the screen (where the address bar in Chrome is) is no longer responsive to my touch.
I've come up with a workaround: using Nomone resolution changer to lower the screen height to avoid the problematic screen parts.
This is not ideal because the app removes screen size from both the top and the bottom, so I waste valuable screen real estate. Is there any app or any way I can adjust the screen height from only the top and not the bottom? Alternatively, feel free to suggest other workarounds
Click to expand...
Click to collapse
You can change system DPI in build.prop.