Trouble with layout - linearlayout, tablelayout - Android

I am having a real problem wrapping my head around this layout. I've tried everything, tablelayout, linearlayout, can't get the alignment down.
The concept of the layout is attached as an image.
As you can see there are multiple fields, and multiple groups of fields. In the example, there are 2 groups. There couple be more.
In the 2nd row, fields 7 and 8 wrap under the rows above them, as seen in concept. This is giving me a lot of problems. I can't maintain alignment of the rows. I've tried various layout_weight, and layout_span, but everything is giving me problems. Of course, if the amount of text increases or decreases, the alignment needs to stay the same.
In html tables, this would be really easy In android, I've spend hours on it and need help! Thanks!

This could be a horizontal LinearLayout with three vertical LinearLayouts in it. I think this should be relatively simple, just a lot of nested layouts.
sent using the xda app!

Ticklefish said:
This could be a horizontal LinearLayout with three vertical LinearLayouts in it. I think this should be relatively simple, just a lot of nested layouts.
sent using the xda app!
Click to expand...
Click to collapse
Your saying have three vertical columns and then for the 2nd and 3rd column, for rows 1 and 3 break it up in half? For some reason I thought I tried this and couldn't get it to work.

Related

An app for rough building outlines?

Hi guys, Im not entirely sure this belongs in this thread but it seemed more appropriate here than in a specific phone thread.
I am in need of an app with some basic functionality, but very specific.
I need an app that specifically is for rough mapping of buildings and structures, preferably with a re-sizable grid overlay that can be added and removed from the picture.
I need the ability to draw rectangles/squares to represent a building and a 'snap to grid' option so that when I am drawing four rectangular buildings that are roughly the same size and shape, they will appear to be the same size in the picture.
The ability to draw predefined small circles (intended to represent interior and/or exterior lights). Predefined size is important because I dont want a bunch of randomly sized circles and having to size each circle so it 'looks' to be the same size is terribly time consuming.
The ability to 'fill' the above mentioned circles in black or yellow to show whether they are working or out and in need of replacement.
The ability to write text using the keyboard so that I can label each object. Specifically, I DONT want handwriting, I want to use the keyboard and type what I need and have the text appear in the picture where I can size it and move it around.
Drawing straight lines, again with a snap to grid option so that my straight line isnt a diagonal straight line.
I looked at a few apps, the closest I came across is SBM but the UI makes it a pain to use, has no snap to grid, and lacks the ability to place predefined shapes (even if I could make a single circle and copy and paste the circle as often as I need, I would be happy). And since everything in the UI is icon driven, its an utter pain in the ass to figure out what each option does. To give you an idea, I used SBM to make 4 buildings, label them and place circles for all the lights on the property and this took nearly 30 minutes to get it to look half way decent. I could have used a pen and a ruler and done a better job and in one quarter the time.
This doesnt seem difficult but I cant seem to find anything that does this sort of thing. Even MS Paint on Android would be fine.
Anyway, anyone have any suggestions?

Stuck in Android layout

Hi @all.
I currently try to design a "simple" layout with android. What it should do:
At the top and bottom of the screen should be a bar with a little content. LinearLayout, horizontal.
Between the bars is the space for the content.
This content should be devided into a "large" upper region and a linear layout with (right aligned) buttons at the bottom.
If there is not too much content the content area should be display centered in the available space. If there are more elements in the content, the area should grow until it fills the complete space between top and bottom bars. The Buttons below the content should always be visible. The area for the content should be scrollable in this case.
I tried something like this:
RelativeLayout
LinearLayout TopBar (AlignParentTop)
Button1 Button2 ...
LinearLayout BottomBar (AlignParentBottom)
ButtomA ButtonB ...
This works fine.
Then i tried to add an additional element
FrameLayout (Above Bottombar, Below TopBar)
This FrameLayout fills the remaining space. Fine.
Now i need a layout like this:
RelativeLayout (wrap_content Width/Height)
ScrollView
LinearLayout CONTENT (sometimes small, sometimes really large)
LinearLayout ButtonBar (horizontal)
ButtonX ButtonY ...
If i attach the buttonbar to the bottom of the relative layout the relative layout grows and does no longer wrap around the content. Instead it's height fills the complete available space.
If i put the buttonBar into the upper Relative layout i can fit it between Content and bottomBar. But if the contentn grows the buttonBar slides down outside the screen.
Is it possible that such a simple layout is not managable with Android?
I am working for hours on this and always something does not work :-( HELP PLEASE!!!
Best regards, Udo
I'm not sure how do that, but it's possible. Maybe using a table layout (a table row for each element) and assigning them different weights...
Hi there, I'm not sure if I get what you mean, but here is my understanding of the question.
When your content becomes too large, your bottom bar gets pushed out of the view ?
Try adding this line >> android:layout_weight="1"
into the parent view just above your layout button bar
example :
<LinearLayout ** add to this view here >
<ScrollView>
</ScrollView>
</LinearLayout>
<LinearLayout for ButtonBar>
</LinearLayout>
let me know if it works
I tried weight - does not work. Currently I use margins as described in various articles. Ugly, but it works.
send by tapatalk
Hi,
still stuck with this layout... Another problem now. I tried to have an inner LinearLayout set sets its children to equal width.
I tried every combination of weight, weightSum, layout_width="0sp" etc.
If the textView "MainContent" contains a huge amount of text the radio buttons are compressed to a very narrow size. If the text in the radiobuttons and the textview are nearly equal in size the layout works well. But ONLY then...
The scroll problem still exists.
The layout should work as follows:
If the screensize is big the MainContainer should use no more space than it needs to display its children. It the should be centered on the available space (in my real app it is packed into a relative layout instead of the top-level linear layout in this example).
If the content is larger than the available space a scroller should appear for the content in the scrollarea. The Buttons in the LinearLayout under the scrollview should still be displayed and not scrolled out of the screen. I currently am able to solve the scrolling problem by setting a bottom-margon of e.g. 50sp to the scrollview and -50sp to the linearLayout containing the buttons. Problem here: There are cases where the LinearLayout has no Buttons. With the current solution the Button-Area consumes space in this case too - what i do not want.
On both problems (Scrolling and even distribution of MainContent and the radioGroup) i now am working for days without success.
Any help would be nice. It looks like a really simple layout - but seems to be impossible with android.
Best regards, Udo
Maybe u want to use Fragments (use supportlibrary v4 to Support devices lower than honeycomb)
Use a big one for the Main content. And a small one for the button bar.
So the Fragment may handle the Main content, like an whole activity does.
But dont ask how, cause i have no idea how to do this.
Ok maybe its the solution, so good luck.
Gesendet von meinem GT-I9000 mit Tapatalk 2
Hi,
i currently USE fragments ;-) This does not solve the layout problem...
At the moment i read into creating own custom layouts. Complicated but this seems to be the only way.
Best regards, Udo

Best Apps adjustable to larger screen of Note

I'm starting this out of my huge disappointment when first getting my Note. I have great eyesight, and never had any problem seeing anything on my previous 4" - 4.3" phones. But things were really cramped on some apps. I was expecting to gain quite a bit of screen 'real-estate' with this big bump is screen size...but this DIDN'T happen. With 90%+ of the apps I used, they just scaled up...providing nothing more on the screen, just the same cramped layout, but bigger. I loaded up over 100 apps side by side on my Atrix and my Note to see which apps actually use the larger screen size well. This is just my personal opionin, but using the same exact display [but making it bigger] is actually a downgrade for me. I get the same amount of info, but I have to move my hand around a much bigger space to interact with this same amount. Anyways, I want to get a list together of all the apps that, by default [or with provided settings] you can adjust to actually use this extra space.
So far I've only run across 1 app, but it works 100 times better on my Note than the Atrix.
Business Calendar: This has in-app settings where you can adjust how much info to display, the font size of everything imaginable, and everything is customize-able in the widgets as well. This app works so well on the Note, I can literally go into 'month' view, and it will display all my events [with all their info], something I haven't been able to accomplish with any other app on any other device.
Go Launcher EX: Allows you to change grid size of home screen and app drawer, and change icon size easily [8x6 while shrinking icons slightly works nicely]
TweetCaster: In app adjustments of font size allow for more info displayed on screen.
Mobo Player: Floating Window feature works great on large screen. You can leave your video playing in corner [in floating, movable window] and use your device as usual, sending texts, email, etc. while your video plays in a separate window.
Would be great to get feedback from anyone else's experience so far, and what apps can be customized on the Note well. **This is my first week with the Note, so I'm really hoping there are a bunch more besides just the 1 I've found so far.
You should try paranoid android. The app dpi settings work to fix your issue.
Sent from my SAMSUNG-SGH-I717 using xda premium
gorillaz1 said:
You should try paranoid android. The app dpi settings work to fix your issue.
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
You are referring the the ROM 'Paranoid Android', correct? I will definitely be messing with my DPI settings personally to tweak my Note until I'm happy with it for sure. I'm also looking to get a list together of apps with built in settings that work well with larger screens. It would be nice to have a list, to be able to recommend alternatives to people when they ask, who will never be flashing new ROM's, or doing any adjustments from stock.
I was going to mess with my dpi manually, but I will definitely give Paranoid Android a look, thanks for the tip.
can I see a pic of the same app two differet phones? curious to see what your talking about,?
I'm running cm9 at 210dpi and I'm loving it. Everything is the way it should be.
Sent from my SAMSUNG-SGH-I717 using xda premium
wish777 said:
can I see a pic of the same app two differet phones? ciriois tobsee what your talking about,?
Click to expand...
Click to collapse
I'm retarded...sat down to do this and realized my camera's are on my phones. I will have to dust off my actual camera later on if I can find it.
Basically I'm just saying a lot of apps will display exactly the same thing regardless of physical dimensions of screen. So if an app has a vertical list of 26 buttons to scroll through, and the smaller screen device shows 5 at a time, and you have to scroll through the rest. It would be nice if with the Note you would now see 6 buttons at a time, with the buttons remaining the same physical dimensions. But the Note will still show the same 5 buttons, just enlarged to fit the larger size...so you don't gain anything. [I'm probably not explaining myself very well, but it sounds like the previous suggestions of changing my dpi will solve this.
Go Launcher let me make my icons [with less pixels] so now they are the same physical dimensions they were on my Atrix [same readability] but now I have 8 rows, and 6 columns instead of 6 rows by 5 columns [Giving me 18 more icons, the same size as Atrix]
Make sense?
I believe that its because the apps arent written to scale up. Kinda like how tablet apps are written to fit tablet screens vs phone screens. Someone correct me if I'm wrong
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
shaokang said:
I believe that its because the apps arent written to scale up. Kinda like how tablet apps are written to fit tablet screens vs phone screens. Someone correct me if I'm wrong
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
Yes, that is the reason. That's why I'm putting together a list of apps that are coded for better use on larger screens [but still the phone version of their app and not tablet] or have options in their settings to scale objects / fonts / etc. within their app.
nlghtcrawler said:
I'm running cm9 at 210dpi and I'm loving it. Everything is the way it should be.
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
Does CM9 have DSP Manager as part of the system? I had it on my Atrix, I believe as part of CM7. The sound is not nearly loud enough right now, I think that was the case with my Atrix also before I discovered the DSP Manager [Totally changed how I could use my device, as the sound was enough to fill a whole room even with background noise after I switched to CM7]

S-Notes versus LectureNotes

So I noticed on my note 3 that S-Notes is way better than it was on the Galaxy note 10.1 and Galaxy Note II. There are more useful templates and more useful features (mainly, syncing with more services like dropbox and evernote).
As people get more experience, can anyone tell me which service they prefer? I'm split because I prefer LectureNotes for its power and the Cornell Note-taking template. But the S-note app is better integrated into touchwiz and has more powerful options now with automatic evernote and dropbox syncing.
For me i think it will be down to the S-note's ability to flawlessly import pdf's and annotate it
demz92 said:
For me i think it will be down to the S-note's ability to flawlessly import pdf's and annotate it
Click to expand...
Click to collapse
For that purpose I think EzPdf is way better than S-Note, at least if you want to make a workflow of annotated pdf's.
demz92 said:
For me i think it will be down to the S-note's ability to flawlessly import pdf's and annotate it
Click to expand...
Click to collapse
what do you mean when you say annotate, because honestly lecturenotes does it flawlessly. you can import and then write on it, type on it, draw on it, insert pictures on it, basically everything you can do on a normal blank paper.
dteg said:
what do you mean when you say annotate, because honestly lecturenotes does it flawlessly. you can import and then write on it, type on it, draw on it, insert pictures on it, basically everything you can do on a normal blank paper.
Click to expand...
Click to collapse
yea, i've heard but im not sure what the widget looks like, the looks of the s note's widget looks pretty nice, like something i'd dedicated a whole home screen to
demz92 said:
yea, i've heard but im not sure what the widget looks like, the looks of the s note's widget looks pretty nice, like something i'd dedicated a whole home screen to
Click to expand...
Click to collapse
i've never used the widget before, but i'm going to fix that right now and fill you in.
ok:
i'm just assuming here but still; i'm gonna assume that S-note has a widget where if placed on a homescreen you can simply type in without opening the app itself. lecturenotes from the few tests i just made can't do that. you can either have a "widget" (really an app icon) that can open to a particular page that you specify or you can have one that just opens lecturenotes, i see nothing that would allow you to edit without opening the app itself. definitely not something worth dedicating a homescreen to....
dteg said:
what do you mean when you say annotate, because honestly lecturenotes does it flawlessly. you can import and then write on it, type on it, draw on it, insert pictures on it, basically everything you can do on a normal blank paper.
Click to expand...
Click to collapse
Can you highlight and add sticky notes?
Han Solo 1 said:
Can you highlight and add sticky notes?
Click to expand...
Click to collapse
You can use the pen to highlight or underline, but no sticky notes. You can however create a text box and write in any notes, but that's as close as you can get.
Sent from my HTC One using xda app-developers app
dteg said:
You can use the pen to highlight or underline, but no sticky notes. You can however create a text box and write in any notes, but that's as close as you can get.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
How do you highlight?
Sent from my SCH-I545 using Tapatalk
I got frustrated with S Note and ditched it. I'm using Lecture notes now and really like it. The main thing that killed S Note for me was the way the notes were organized. Felt very cumbersome and non-intuitive. I wish they had left the UI for browsing folders and notebooks the same. Or maybe I just had too much trouble transferring my old notes into it.
Anyways I was wondering if anyone knew how to quickly expend a single page in lecture notes. I know I can go into the settings and change it that way, but I'd like to be able to do it on the fly and on a page by page basis instead of a global modification of the page length.
ChrisNee1988 said:
How do you highlight?
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
I'd imagine you just select the marker tip with whatever color, then change the opacity between 10% and 40%. Whatever you're comfortable with. At least that's how I had done it in the old 10.1 model.
ChrisNee1988 said:
How do you highlight?
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
gina nailed it, on how to highlight.
gina$zanboti said:
I got frustrated with S Note and ditched it. I'm using Lecture notes now and really like it. The main thing that killed S Note for me was the way the notes were organized. Felt very cumbersome and non-intuitive. I wish they had left the UI for browsing folders and notebooks the same. Or maybe I just had too much trouble transferring my old notes into it.
Anyways I was wondering if anyone knew how to quickly expend a single page in lecture notes. I know I can go into the settings and change it that way, but I'd like to be able to do it on the fly and on a page by page basis instead of a global modification of the page length.
I'd imagine you just select the marker tip with whatever color, then change the opacity between 10% and 40%. Whatever you're comfortable with. At least that's how I had done it in the old 10.1 model.
Click to expand...
Click to collapse
to expend a page? you wanna know how to quickly use up a page? don't understand what you're asking but i'll cover a few bases.
to quickly add a page click the "+" on the top right or if you're using a keyboard just press the down arrow.
to delete a page you click onto the page and open menu and delete it from there. deleting isn't as simple as adding unfortunately..
@ChrisNee1988: There is no built-in highlighter, as tastes concerning highlighters differ widely. As described by gina$zanboti, you can make one of the custom pencils to act as a highlighter, choose your favorite color and width, an intermediate alpha, and enable `draws behind other colors´. To quickly change to the highlighter, you can show the pencil toolbox (select `Show pencil toolbox´ in the `pencil´ menu, can be moved around by click-and-hold and setup in the app's tools settings; a single click on a pencil sets the pencil and a double-click on a custom pencil brings up the custom pencil settings) or assign it to your stylus button (in case your stylus has a button).
@gina$zanboti: I am not entirely sure whether I understand correctly. LectureNotes' pages have a fixed size.
Does LectureNotes have handwriting to text conversion? I have been using MyScript Notes Mobile which does do this but it begins to get laggy after 2-3 pages in terms of the screen delay from writing to on screen. When I used LN, it's near instant which is awesome and I really like it overall but converting to text is really big as I export QC scripts a lot.
My problem with snote is that importing removes searchable test which is a big no-no for me. Otherwise I'd probably use it. I am using it for free hand notes and like it for that.
@TheBigSaxon: There is no handwriting recognition in LectureNotes, but there are several soft keyboards that provide this functionality (meaning that you write with stylus and the keyboard app does as if you typed it).
tstsubi the
So, if your main storage for notes is Evernote, what is recommended as the front end for capture of notes, including handwriting recognition. Don't want to get locked into s note or lecture notes for the actual storage - just looking for advice on the best way to recognise handwriting, capture info etc, and sync seemlessly into Evernote.
any thoughts?
Is there any way in S Note to do a vertical page to imitate a sheet of paper like lecture notes can?
ChrisNee1988 said:
Is there any way in S Note to do a vertical page to imitate a sheet of paper like lecture notes can?
Click to expand...
Click to collapse
Yes, there is a portrait template of ruled paper. Or you can use the default landscape ruled paper template, and then just rotate the tablet into portrait mode and it should rotate the page as well.
Sent from my HTC One using Tapatalk
Here is my 2 cents in using snotes and others working with pdfs
Things I like about snote:
Keeps the use of pressure sensitivity. This is something very special about our spens and I like the feel. I want to keep it when I'm writing.
This might sound stupid but this makes the writing feel the most realistic and not so machine like.
Once I'm in the editing mode I stay in the editing mode. Unlike ezpdf and lecturenotes where I have to hit the pen to start writing again and hand/back to scroll. I found this really annoying. For people annotating it may not be an issue but if you're actually taking notes and such it's a pain.
All the other special tricks with spen work in snotes well because it was made for it.
Negatives:
It has to import pdfs...This was the worst. It can't just open it as a pdf and start editing. Probably creating image type files. Not sure how lecturenotes imports pdfs because it's not available for the trial version. I imported a 200+ page pdf and it took longer than expected but now that
I have an expected time frame I may be able to deal with it.
Since it's not keeping the integrity of the pdf it can screw up some things while importing.
I'm a math guy and it screwed up a few notations here and there.
Scrolling...call me lazy but continuous scrolling is beautiful. Although I didn't like the fact that you can't be in between pages in ezpdf. While scrolling and you let go the page will automatically place itself so you see either the previous page or next page on the screen (depending on how far you let the split go past the screen).
Snote's scrolling is swipe or hit arrow right at bottom of screen. Swipe right is too slow. Animations are nice but unnecessary when turning the page. I usually like keeping the writing area in the middle of the screen. Also a reason why I want to be able to put the bottom of the page in the middle. But my hand being in the middle i think its annoying to go down to hit the right arrow. Just me being an annoying *****.
Hope this helps someone out there. =)
Edit: realized I was missing the add on to import pdfs for lecturenotes.
With short use it has a lot that I wanted. Now I dont know what I should use...
Edit 2 played with settings and im purchasing it now
@aznxkpx88: There is no need to alternate between `pencil´ and `hand´ mode in LectureNotes: You can scroll/zoom outside the `hand´ mode if you enable `allow two fingers scrolling/zooming´ in the app's input settings. Since you seem to use an S-pen (in which case you should enable `use stylus (hardware detection)´), you can also enable `allow one finger scrolling´ and scroll with one finger.
The constrain on the maximal number of pages per notebook in the trial version applies also to PDF imports.

Issue with Phone app in all themes

Hi
One small thing i noticed in all themes...i wonder is it just me and am i doing something wrong.
In phone/dialer app, when scrolling through different menus (dialler/contacts/favourites) there is this small window with icons (delete, more, new contact etc.) in the lower portion of the screen that changes on each page of the app...When going from contacts page to favourites page this window shrinks from 3 icons to 2 icons and this transition is a little bit clumsy, like it takes a second after the page transition is over for this window and the icons to settle in the right place.
It really is a small thing but it caught my attention and it makes me not use any themes (it just feels unfinished).
Anyone else experiencing the same?
dvadvadva said:
Hi
One small thing i noticed in all themes...i wonder is it just me and am i doing something wrong.
In phone/dialer app, when scrolling through different menus (dialler/contacts/favourites) there is this small window with icons (delete, more, new contact etc.) in the lower portion of the screen that changes on each page of the app...When going from contacts page to favourites page this window shrinks from 3 icons to 2 icons and this transition is a little bit clumsy, like it takes a second after the page transition is over for this window and the icons to settle in the right place.
It really is a small thing but it caught my attention and it makes me not use any themes (it just feels unfinished).
Anyone else experiencing the same?
Click to expand...
Click to collapse
Yup I can confirm this happening to me as well.
Sent from my Honor 8 using XDA Labs

Categories

Resources