Gridlayout - How to redistribute cells automatically to the line below? - android-studio

I'm a bit new in coding and I'm using android Studio. So your help would really be precious to me! Thanks!
Here is the question:
How can I make the cells or elements (of the Grid Layout) redistribute themselves automatically below, anytime the amount of cells exceed the left side of the Grid Layout (so the next cell can go down ) ?
Here's more details about my concern:
Let's suppose I want an horizontal orientation for the arrangement of the cells but I don't need a specific number of rows or columns. Then whenever there's no more space in a line / row to show more cells, the next cells have to be arranged or redistribute themselves automatically to the next line / below.
Here's an example to make it a bit clearer (I hope):
When you're "typing" a paragraph, once the words reach the left side of your screen, the next words (or the rest of the sentences) just fall down and you keep writing below. I want it the same way: When there's not enough space, I'd like the next cells or elements to automatically go down in a new "line" or "row" automatically / as much as there are more cells/elements.
Should I use another type of layout for this?

Related

Excess Blank Space in Bar Graph Excel

As you can see in the image, I'm getting a lot of blank space on the right side of my graph. When I shrink the graph horizontally, it just shrinks my data. As a note, I have the axis set up based on text rather than date, since you can't choose weekly, so it was putting large gaps between my bars, which I was also trying to avoid.
I create a similar graph to yours and everything looks fine as you can see below. I also pasted axis options onto the screenshot for you to double check.
Also there may be some blank rows in the graph's scope which we cannot see on screen.

Prevent Excel from changing x-axis on a dynamic chart

I wanted to make a dynamic chart that plots out the graph of a standard curve for a bio assay we perform frequently. Often to boost the fit of the curve you may drop one or two data points on either end of the data set. So using vlookups and if statements I have a scheme that performs that data trimming, such that my data always starts in Row 1 and the column length simply shortens.
My table works great, but my xy scatter chart goes bananas on these changes. I have the plot on a log log scale, which looks fine if the full data set is present. I lose the x axis detail when I perform a trim. The x- axis then resets to range of 1 to length of my data set.
How can I prevent this?
UPDATE
I added some information. I know there are VBA ways to do this but I would prefer to keep the spreadsheet as simple as possible. I would think excel should be able to handle this.
So if I have a bad fit I may want to trim the data series either from the beginning or end of the data set. I accomplish that with the spinner buttons to dynamically change the table but the following happens
My formula that updates the columns looks like the following. Its messy.
=IF(ISNA(IF(VLOOKUP(F6,$C$4:$D$11,2,FALSE)+1>8-($B$5-1),"",INDEX(C$4:C$11,VLOOKUP(F6,$C$4:$D$11,2,FALSE)+1))),"",IF(VLOOKUP(F6,$C$4:$D$11,2,FALSE)+1>8-($B$5-1),"",INDEX(C$4:C$11,VLOOKUP(F6,$C$4:$D$11,2,FALSE)+1)))
In the formulas use NA() instead of "". Filling cell with "" does not result in a true empty cell and is the reason why you are experiencing issues with your chart.
Hope that helps.
I may be missing the obvious here, but just hard-code the graph with a range of your choosing. In the sample screenshot, making the graph auto defaults the max range to 100,000. I went in and hard-coded the maximum to 50,000 (circled). Afterwards, the 5th data point is not displayed in the chart. Doesn't matter what the data shows at this point.

Excel Wrong Graphic

I have this excel's file:
As you can see i also made graphic for it.
The problem is that it is wrong, because i have 2 same "periodo" (201603)
in the graphic, and i don't want it. I want to see it only 1 time, but with 2 columns on it.
Like in this image: (sorry for paint).
I already tried anything: I searched on google and i aksed also to some friends. Please tell me where i'm wrong.
If something isn't clear ask me anything.
1) rearrange you data so that each series, or each bar if you bar is in its own column. See image below. Bob Cat and Dog are the series names. Dates are the axis labels, and the numbers of the series values.
2) make sure the vertical information is in the same row as the vertical information as the bar you want it grouped with.
3) right click on the graph and select "select data"
4) on the left hand side click add series. Select the additional columns for the bar height. make sure you include any blank above the data to keep the size line up with the previous.
5) your labels on the bottom will only show one thing. I would suggest you use your dates. Use your legend to apply series names to the colours.
Caveat: even when there are no values, the series still takes space.
Proof of Concept

Excel - Cells Printing as ##### after Fit all Columns on One Page

I had autosized all of the columns beforehand, but when I fit all columns on one page in the print screen some columns turn into #######. Is there a way to prevent this without manually going in and making those columns bigger? (The ####### does not show up on the actual excel sheet, the number that occupies the cell does)
Thank you for any help.
If it's always the same column, I'd start by seeing if you can reduce the font size a little so that the width of the printed data isn't greater than the size of the column when the fit-to-one-page routine squeezes things together.
If you need an automated solution that will run whenever you get ready to fit-to-one-page and print, that's beyond my skills. Maybe VBA code that adds the column widths, predicts the % they'll be reduced, and checks to see which columns need to have their font shrunk & by how much... not a small project, that.
But if you can live with a manual solution, I'd start by a small reduction in font size. Or see if tweaking the margins helps -- tricks from college to get a "10 page paper"!

Excel: Stretching a graph on x axis

In my graph, the x axis are text values. When I make the graph, I cannot stretch it to the whole width. Instead, it takes only less than half of the width.
I usually do this by clicking on "Format Axis", but it doesn't offer that in this case.
Here is the screenshot:
I'm using Excel for Mac.
When you made the chart, did you select a bunch of empty rows below the range that actually contains data? Looks like twice as much empty data as data with values.
If you select the plot area or chart area, you can see the source data of the chart highlighted in the sheet. You can resize the highlighted range with the mouse to modify the amount of data in the chart.
Did they made different types for windows and mac? I'm using windows and scaling is never a problem here.
I can't give you any answer but I can give you a suggestion. Can you check the width of the numbers below the 'Number of public SLA templates' label? Its occupying all the width of your window.

Resources