Android draggable horizontal custom menu - android-layout

Can I create custom horizontal menu in android? I mean something like this:
I want to be able select level and drag level by finger.
What methods should i use?
LinearLayout with android.orientation="horizontal", or something else

Android provides a HorizontalScrollView for this.
For more information visit the Developers guidelines

Related

Create layout for multiple devices

everyone. I want to create a layout for multiple devices. To do this, I select my original layout in Android Studio and thought I could do this using the "Orientation for Preview" icon. Unfortunately I can't find the entry "create other" there. Where can I now create my layout for other devices?
You have to use the device dropdown just on the right ("Pixel"):
Then you can choose an pre-defined device/resolution, or you can create your own device/resolution.

Is there a way to create something likea draggable menu in wearable device in Android?

I was wondering if it is possible to create something like a menu that I can drag either by the side or from above on a wearable device. But I don't want it to affect the activity I have. You know like on a smart phone and you drag down the menu with some settings like brightness, rotation, etc...
To elaborate, I have a timer with a progress bar, but my activity would be overcrowded if I added any other stuff. So I want something to drag from the top of the screen to check on something, then drag again to return to my view that has the timer and progress bar. I basically have an activity where I make some selections, I wanted my selections to appear in that draggable menu thing to check to see my selections displayed there.
There are two drawer components for the type of behavior that you describe. Which one is better depends on the specifics of your implementation. The documentation for Navigation Drawer and Action Drawer can be found here.

Android Studio - How to change layout

In Eclipse, I can right - click on my layout (say LinearLayout) and click on Change Layout
In Android Studio, I dont see anything like that. I do see Morphing but that will now show up at all times. For example, if you create simple HalloWorld with RelativeLayout, if you right click on that Layout while in Graphical mode, Morphing will not show.
If you right click on a widget in that layout, Morphing shows but to change widget type, not layout type.
If you want to change the Layout, you can do Two things:
OPTION 1
1. Simply click into your Xml file and select the "Text" option at the bottom on your screen
2.Change to layout
OPTION 2
1.Just drag another layout in Design and put your items in it, delete your old layout PS. you can have layouts in other layouts
Hope I helped!
In Android Studio 3.6.3 the easiest way to change the Layout is to right-click on the layout in your Component Tree and click Convert view….
The other option is to delete this layout and create new activity layout with type you want to be.
You also can use AbsoluteLayout, just change RelativeLayout to AbsoluteLayout in activity_main.xml. With AbsoluteLayout you're more "free"

Anyone know how to create a custom menu like this in android apps?

hii,I was just learning android i want create menu like this at this image This Menu
i was confused make this,anyody know how i can do it with 4 item like the link above ?
please help me.
sory if my language english bad.
To my knowledge custom menu and options menu can be modified (adding and removing menu items) easily.
If u want your own custom option menu, you may have to simulate by creating layouts.
1) Creative a layout and inflate the layout and show on clicking on the menu button.
2) If u want to occupy whole screen then better use Images and TextViews and create a new activity and launch the activity on clicking the options menu in OnCreateOptionsMenu().
Please find the links below
Custom menu in android
Android: creating a custom menu on the bottom

Mimic layout of android alarm clock

I would like to create a layout similar to what the default alarmclock in android has.
What i would like to create is something like this:
Android Alarm Clock
What is beeing used? Is it a ListView, TableLayout or what is it?
Also how do i create those toggle buttons to the left?
Answering my own question.
It is a listview with custom list items. Each listitem is built up by several other views mostly linear views.
More details in the source code.

Resources