Alignment of table for Android Studio - Android Studio

I'm new to Android Studio. So, I'm trying to make a calculator, and I've saved every single button as a separate image. What kind of alignment am I suppose to use? Also, the buttons doesn't seem to show the full image. The first picture is what I am currently at. The second one is the format I hope I can achieve (I only need to align the buttons for now).

hubert322 said:
I'm new to Android Studio. So, I'm trying to make a calculator, and I've saved every single button as a separate image. What kind of alignment am I suppose to use? Also, the buttons doesn't seem to show the full image. The first picture is what I am currently at. The second one is the format I hope I can achieve (I only need to align the buttons for now).
Click to expand...
Click to collapse
I'm also new but I recently came across a tutorial for building a (simpler) calculator at tutsplus.com. (sorry I can't post a link) You could adapt that by adding more rows and columns.
I think the answer about the best alignment tool is to use either GridLayout or TableLayout.

Related

Really simple (I think) Today Screen app needed

All;
I'm wanting what I think is a pretty simple app for my today screen. I just need two buttons, which when clicked play one of two different sounds (mapped appropriately, button 1 = sound 1, button 2 = sound 2).
Alternatively; it could just be as simple as a single button that plays a sound that I can customize; or as complex as a full row which could be customized by number of buttons; etc.
Any change such a beast already exists, or could be "whipped up" right quick?
What about simply creating two shortcuts to the files?
anoano said:
What about simply creating two shortcuts to the files?
Click to expand...
Click to collapse
Not sure that would work. What I'm really wanting are today screen buttons / links. If I created shortcuts; it would live in the programs folder; which is two extra clicks away.
Ideally; I want to be able to hit this immediately. I'm thinking I might be able to make it work with a combination of mortscript and this other today screen plugin, but I'm not sure yet.

How to adjust menu horizontal separator spacing???

Hello all,
Just wondering if anyone knows the registry key (or other) to adjust the vertical spacing of the separator (horizontal line) between items in a menu. My Rogers Touch Diamond came out of the box with terribly altered menu font sizes and various other items with the intention (I'm assuming) to make it more touch friendy. The problem is the menus were never designed to be this way, so it appeared very sloppy and out of place. I finally managed to find the various registry keys to bring font sizes and selection dots and check marks back to the normal size (as per my previous HTC Touch) with the exception of one thing: the spacing above and below the horizontal separator line.
The first attached image ("Old.jpg") shows how the menu previously looked on my Touch. The second image ("New.jpg") shows how my Diamond currently looks. You'll notice that everything is basically the same now, except for the space above and below the horizontal line.
I did some searching, and came across the "SepYMrg" key in HKLM\System\GWE\Menu. The MSDN site defines this key as "the margin of white space above the menu separator line", which sounds like what I am looking for (or at least half of it). The key did not exist in my registry but, after adding and adjusting it, the result was still not what I'm after; instead of adding more "white space" above and below the line, it seemed to make the line thicker. The third attached image ("Adj.jpg") shows the result.
Does anyone know how I can make the necessary adjustments to get my Diamond's menus looking like the old ones? Any help would be much appreciated, as always.
Regards,
Bump.
I'm sorry to keep bumping this thread, but I'm hoping eventually it may catch the eye of someone with the answer.
Anyone?
PilotFlying said:
I'm sorry to keep bumping this thread, but I'm hoping eventually it may catch the eye of someone with the answer.
Anyone?
Click to expand...
Click to collapse
me too want this !!!!!!!!!!!!!!!!!

[Q] Any way to lose the Nook apps main button?

During two 12 hour days of rooting and customizing two CNooks, I ran across a procedure for removing the stock Nook apps. Now I can't find it. I'm not sure if that included the main soft button, as well, but I'm giving one of these to my 75 year old Mom and I don't want her confused if she hits this button all the time.
Really appreciate any help here!!!
ClarkSt said:
During two 12 hour days of rooting and customizing two CNooks, I ran across a procedure for removing the stock Nook apps. Now I can't find it. I'm not sure if that included the main soft button, as well, but I'm giving one of these to my 75 year old Mom and I don't want her confused if she hits this button all the time.
Really appreciate any help here!!!
Click to expand...
Click to collapse
AFAIK there's no way to remove the nook shortcut menu in the status bar. So what is she using it for, never reading on it? If you removed the apps and she did launch the shortcuts I guess it'd just fail to load the app, as they seem to be static shortcuts to those apps.
I would think when we get a custom ROM the status bar will be at the developers digression, and maybe someone will figure out a way to update the framework jar to remove the shortcut. My wife likes the shortcut, as her NC is 50/50 reader/tablet.
I installed the Kindle app on the Home screen, which I prefer. The Nook eReader is still there in the app tray, but because I changed the screen res, it screws up some of the texts in the Store and what not. The reader is still fine, though. But with the larger icons and text, it is WAY better. I tricked it out with the Aquarium Live Wallpaper and added Dolphin browser, which supports pinch zoom. And an email client; WeatherBug Elite, a Battery widget, a clock widget, and a WiFi toggle widgit went on the Home screen, as well - and I'm using Zeam for a launcher. I removed all the icons except the app drawer - and also changed the Volume Down button to be a Back and the Up to be a Menu. No SoftKeys for me. BTW: I set the lcd res to 220 using LCDDensity - far better than the 250 someone mentioned on the forum. I still see the time and the notification balloon - albeit, a bit truncated, but it works. I run SetCPU, though not really sure I need to.
I use Quick Settings for Volume.
I'm missing a few things:
1) Love to find out how to do a screen capture.
2) Desperately want Flash.
3) Desperately want Bluetooth.
And, really want to noop the nook shortcut launcher soft key - or preferably the whole status bar. I don't need it, with all the widgets, but I'd be happy to have it as long as the shortcut launcher softkey was nullified.
I'm planning to get NC for my parents of the same age like your mom as well.
They would use it for email and web browsing while traveling.
I hope you will succeed and share
Cool - and of course I'll share! Fact is, it's not a deal-breaker by any means. I
'll just tell her to avoid hitting that menu button. And if she does, she just clicks on the screen or clicks the button again to get rid of it. I'm really more interested in Flash - which I'm sure will be in 2.2, whenever they release it for the CN - and BT. Which I really want for the new BT headphones I bought for my lost Archos 70.
post deleted. it repeated my last one.
Screen capture - hold down the large physical "n" button, and then very quickly press the volume down button. It will store the .png screenshot file in a directory called "Screenshots" in the system storage.
Now, if someone knows how to do video capture of the screen, please let us know.
KryptoNyte39 said:
Screen capture - hold down the large physical "n" button, and then very quickly press the volume down button. It will store the .png screenshot file in a directory called "Screenshots" in the system storage.
Now, if someone knows how to do video capture of the screen, please let us know.
Click to expand...
Click to collapse
Awesome... thanks for posting this. I previously download ShootMe unaware of this functionality.
I did it all from my Nookie...

Android Studio design grid snapping issues

For some reason, when I'm designing my app, the buttons I place are getting attached to each other. They look separate but when I try to move one button, they all move the same distance even though only the one button is selected and shows the selection outline. It takes several tries normally to move only one button. I've also noticed that naming them with the "id" field is a hassle. I accidentally named two of them the same and now if I rename one, the other is renamed too.
Am I doing something wrong? Also, is there a way to tune down the grid-snapping feature? Or even to turn it off completely? I find that it snaps things together way too soon. I wanted to place my buttons close together because I'm making a calculator app. But it's proving to be a real pain placing the buttons in a grid pattern. Is Android Studio really this finicky or is there just a couple options I can change to make it more user-friendly?

ReLaunch 1.4 (repost)

Can someone kindly repost the APK of ReLaunch 1.4?
The links on the original post are dead now.
Thanks!
marcoNST said:
Can someone kindly repost the APK of ReLaunch 1.4?
The links on the original post are dead now.
Thanks!
Click to expand...
Click to collapse
There seem to be at least 3 ReLaunch forks. The original ends at 1.3.8 (the easiest one to find--Google is your friend). There is then the sequence you are asking about, moving from 1.4 to now 1.4.8. I've attached 1.4.8 below. Don't know anything about it. The source is the Russian The-eBook.org forum and the original ReLaunch thread. Going back from the end of the thread, all earlier versions (all dropbox links) seem to not be available, just like 1.4.
Then there is ReLaunchX which supposedly takes up where the original 1.3.8 left off and renumbers the newer versions starting again with 1.0 (now at 2.x). The GitHub for ReLaunchX is here: https://github.com/Leszek111/ReLaunchX and the app is available on F-Droid: https://f-droid.org/en/packages/com.gacode.relaunchx/
You have many choices!
Edit: one more choice. Member @digixmax offers 1.4.3 here: https://forum.xda-developers.com/showpost.php?p=72246935&postcount=42
Thank you so much @nmyshkin !
You are a star
nmyshkin said:
There seem to be at least 3 ReLaunch forks. The original ends at 1.3.8 (the easiest one to find--Google is your friend). There is then the sequence you are asking about, moving from 1.4 to now 1.4.8. I've attached 1.4.8 below. Don't know anything about it. The source is the Russian The-eBook.org forum and the original ReLaunch thread. Going back from the end of the thread, all earlier versions (all dropbox links) seem to not be available, just like 1.4.
Then there is ReLaunchX which supposedly takes up where the original 1.3.8 left off and renumbers the newer versions starting again with 1.0 (now at 2.x). The GitHub for ReLaunchX is here: https://github.com/Leszek111/ReLaunchX and the app is available on F-Droid: https://f-droid.org/en/packages/com.gacode.relaunchx/
You have many choices!
Edit: one more choice. Member @digixmax offers 1.4.3 here: https://forum.xda-developers.com/showpost.php?p=72246935&postcount=42
Click to expand...
Click to collapse
marcoNST said:
Thank you so much @nmyshkin !
You are a star
Click to expand...
Click to collapse
I just rooted using NM and I am using the default system. ReLaunch seems to have a very barebones interface, and I wish I could do certain things (the two main ones is to toggle visibility of the statusbar at will (making any application full screen) using some button or button combination, and the other is to change orientation.
What benefits are there to using a new version?
Thanks!
Winston S. said:
I just rooted using NM and I am using the default system. ReLaunch seems to have a very barebones interface, and I wish I could do certain things (the two main ones is to toggle visibility of the statusbar at will (making any application full screen) using some button or button combination, and the other is to change orientation.
Thanks!
Click to expand...
Click to collapse
I don't think you can exercise much control over the visibility of the status bar--at least not in Android 2.1. App developers either choose full-screen as the default display mode or give a programmed option which regulates the size of the window in which the app is viewed (essentially covering the status bar). I'd like to be wrong about that and I'll keep looking around a little, but I am not hopeful.
Screen orientation is easily regulated with an app. Probably the best one for the NST is Rotation Locker (there's a copy attached to this post: https://forum.xda-developers.com/nook-touch/themes-apps/app-reading-button-menu-t3815212).
You could theoretically assign a hardware button to the app. All it does is bring up a small menu (Portrait, Landscape, Auto). A simple tap on your choice makes the change, but a long-press sets up a background service that forces the change, even when apps want to resist. You'll see a notification that the service is running. You really need this for the NST because it does not much care for being in landscape mode and many apps will try to escape back into portrait with only a single tap on landscape.
Unfortunately the app suffers from a problem common to many in that it was not designed with e-ink devices in mind. Colors were used in the menu system and they are such that you don't see anything but the menu boxes! I've given you the correct order above, from top to bottom in the menu. A better and more general solution is to slightly darken the background color on all NST menus. This makes most of the offending "invisible" menu choices at least somewhat visible. The change is effected by replacing about 30 images in framework-res.apk. Two sets of images were prepared by someone on the Russian e-book forum. One is lighter and the other darker, but both are darker than the originals. I use the lighter ones.
Alternatively, if you don't expect to be running a lot of apps with potentially unreadable settings or menus but you would like a simple orientation toggle to assign to a hardware button, I could probably just extract that portion from my Reading Now menu app and assemble it as a stand-alone. It still relies on the Rotation Locker app, but you'd never see or interact with the menu, just press a hardware button.
nmyshkin said:
I don't think you can exercise much control over the visibility of the status bar--at least not in Android 2.1. App developers either choose full-screen as the default display mode or give a programmed option which regulates the size of the window in which the app is viewed (essentially covering the status bar). I'd like to be wrong about that and I'll keep looking around a little, but I am not hopeful.
Screen orientation is easily regulated with an app. Probably the best one for the NST is Rotation Locker (there's a copy attached to this post: https://forum.xda-developers.com/nook-touch/themes-apps/app-reading-button-menu-t3815212).
You could theoretically assign a hardware button to the app. All it does is bring up a small menu (Portrait, Landscape, Auto). A simple tap on your choice makes the change, but a long-press sets up a background service that forces the change, even when apps want to resist. You'll see a notification that the service is running. You really need this for the NST because it does not much care for being in landscape mode and many apps will try to escape back into portrait with only a single tap on landscape.
Unfortunately the app suffers from a problem common to many in that it was not designed with e-ink devices in mind. Colors were used in the menu system and they are such that you don't see anything but the menu boxes! I've given you the correct order above, from top to bottom in the menu. A better and more general solution is to slightly darken the background color on all NST menus. This makes most of the offending "invisible" menu choices at least somewhat visible. The change is effected by replacing about 30 images in framework-res.apk. Two sets of images were prepared by someone on the Russian e-book forum. One is lighter and the other darker, but both are darker than the originals. I use the lighter ones.
Alternatively, if you don't expect to be running a lot of apps with potentially unreadable settings or menus but you would like a simple orientation toggle to assign to a hardware button, I could probably just extract that portion from my Reading Now menu app and assemble it as a stand-alone. It still relies on the Rotation Locker app, but you'd never see or interact with the menu, just press a hardware button.
Click to expand...
Click to collapse
You are correct about the status bar visibility, I think there is nothing you can do about it if any specific app forces that setting. There is a configuration setting for ReLaunch to not show the status bar, but even then PocketBook Reader will display it.
For the orientation right now I am resorting to starting APV PDF Viewer (which I have set to landscape,) and then starting PocketBook Reader. Because PocketBook doesn't force a specific setting, it will continue on Landscape until I go out and something else changes orientation to Portrait. Rotation Locker seems like the perfect solution to somewhat streamline orientation selection a bit more. Also, I think I'll manage by knowing which selection to press and not care about the lack of visibility of its menu.
Thank you for your kind offer to assemble that menu app with the toggle built in, but I'd hate you to spend time doing that. Instead, I'll investigate more and go through all the posts you have already provided! :good:

Categories

Resources