[APP][Android Studio] How to make buttons that are rounded on only one side? - Android Q&A, Help & Troubleshooting

Hi XDA community
Currently I'm trying to implement a simple add-subtract button pair into my app, but for it to look how I want it to, I need to round only the left edges for the left button and only the right edges for the right button.
Also, once a certain limit is reached (f.e. you can keep adding 1 until you reach 10 / you can keep subtracting 1 until you reach 0), the corresponding button should gray out.
Here's a sketch of how I want it to look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I can handle the logic for the adding, subtracting and graying out, but for the selective edge-rounding I've found nothing so far.
Can you help me?

So I just asked a classmate and the answer is pretty elegant.
You first need to create a new layout resource file with a <shape> element as the base.
Then, you use "android:topLeftRadius" and the like to make a shape and pass it to the button like this: 'android:background="@drawable/rounded_button_left"' with "rounded_button_left" being the filename of my layout resource file.
Hope I could help someone

Related

EDh - hexeditor for PocketPCs.

Hex editor for PPC.
OUTSTANDING piece of software. I strongly recommend to click everywhere on its GUI to find ...interesting features.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
.
.
.
.
.
Some obvious things:
- File and process editing
- Simple two-document interface
- Large files supported
- Portrait and landscape screen orientation supported
- File COMPARE
- simple hex/bin/dec/oct/whatever converter(middle of bottom bar)
and moar.
Program works on wm03/5.0/6.1/6.5, not sure about 6.5.x(gui may look weird, or maybe not).
Very, very nice piece of software, maybe someone find this useful. Useful on the go, imho.
It looks great something that I've always been loooking for. Unfortunately it doesn't behave properly in 6.5.5. I cannot access to the Edit menu. Edit gives File menu, so I got 2 file menus from Edit & File Softkey. Also because of the size of the softkey bar, I cannot access to the bottom line. Are you the developper of this software? If so could you fix this?
Thanks.
Nope, i am not developer of EDh, here's link to dev site:
http://winm-soft.atspace.com/

Making new clock numbers

Here is what the standard flip clock numbers look like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Each number appears to be centered in its own 100x128 pixel block in the total 1024x256 size of the image.
Is there an easy way to place the numbers in the same locations when making new clock numbers with different fonts? I am using Gimp 2.6 for image editing. Because it's free... and I'm cheap.
Okay, I think I made the numbers right. In case anyone is interested, here is how it came out.
I was scratching my head over this the other day when I was making some clock hands......... do the images have to be in exactly the right place in relation to the edges of the image, in the end I just too some clock hands from a cab and drew over them to make sure I was in the right place......
I've wanted to do some clock number for a while... your knowledge may save me a LOT of trial and error
Thanks....
ps have you tried paint.net? I use that because its free and Im also cheap..... Ive yet to try this gimp thingy Im hearing so much about.....

[Q] Help Theming Google Search Widget

Hi Guys,
I'm a designer and have put together a concept of a Google Search Widget that I wouldn't mind sitting on my home screen. I've integrated styles from other parts of the UI so that it'll fit more seamlessly into the user experience.
I've never developed for Android before but have done a lot of background reading and am aware of the various \res\drawable images I'll need to replace. My question is whether or not I'll be able to replace those images without rooting my device, using ASTRO for example?
Also, is it a simple case of replacing the \res\drawable images and it working or is there more to it?
I've got a locked bootloader and don't want to unlock it, so am waiting for ICS and a hopeful way to root with a locked bootloader then.
Screenshot of what it will look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'll be re-designing the app that launches upon touch to look more like the Xperia UI menus
Cheers,
M
Bump for post edit (didn't want to duplicate/start a new topic)

[APP] App Clip

App Clip access your apps with a simple fling...
I find it very usefull in combination with floating apps (lilypad hd, overskreen, hovernote, etc).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks! I just installed it and am liking it a lot! One thing that could be better would be more/custom gestures; I really like swiping in from the right, but it can hinder simple touch presses on the right-side of the screen
originalnabisco said:
Thanks! I just installed it and am liking it a lot! One thing that could be better would be more/custom gestures; I really like swiping in from the right, but it can hinder simple touch presses on the right-side of the screen
Click to expand...
Click to collapse
True, found that out also... It appears the software is still in development so i hope its gets better and better
try this, i use it on my phone all the time. it doesnt work off of a fling, but it lets you adjust several different grids in several locations, i put mine on top left, i RARELY trigger it with a simple tap

Teach-A-Baby(In Development)

Hey everyone, just want to share with all of you an app idea i am currently working in developing. I would love to hear some advice and what can be done to make it better.
The point of this app is kind of straight forward. It is to teach kids their ABC's, how to count, their colors and to include some lullabies as well.
Currently i dont have the images i need so for now in the image below i only have the color red and an A in the middle. The scree i swipeable so when you swipe it goes to the next letter and pronounces it automatically out loud. Each letter will have a different background, NOT A COLOR, for example A will have a background of an apple, B will be a Bear, C could be a Cat and so on...
As of now i dont know how the app will look in its final stage but this is what i got so far.
The app just started being developed, so far not much is done but updates as it goes on will be posted. Thanks
Here are some images in order of how they load. The main Page has a sliding drawer from the left side of the screen. This drawer is ugly and not finished at all yet.
Splash
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Logo
Main
Main with Sliding Drawer
ABC Activity
Lullaby Activity

Categories

Resources