SimonVT MenuDrawer drag menu with imageview - java

I want to use menudrawer by SimonVt and it does exactly what I need. But the only problem is that I want to attach a ImageView to which I can drag to show/hide menu. I tried to set setSlideDrawable but it ain't working.
I can do it by setting onTouchListner and translate my ImageView while dragging. But, I'm pretty sure if I'm using this library there should be some way of doing it without this hassle.

Related

how to expand a button into wide search view

i am developing an app in which i want a search button on the top right corner(not in the toolbar),
i want that, whenever i click the button it should extend to full width of the search view (with like an expanding animation). i have a full search view i want to compress it into the button, so i am struggling with the searchview expanding and compressing. i don't even know that is it even possible but i really need your help.

Adding an image via button in Android Studio

I want to make an app, and there would be an list view with items and its info. In the right bottom corner there would be a button, and there is my question: how to add an image and some informational text by clicking on that button?
You really need more basics ... maybe you should start with a few simple tutorials. Whatever, for your problem you need a RecyclerView.

Android - Toolbar popup custom layout

Was wondering how you would go about implementing a custom layout for a toolbar popup, the one you get when you press on the settings button.
I need to increase the padding on the top and bottom of the popup, and also add in a custom font here. The only way I can think to do it would be to basically inflate a custom layout here but I'm not sure how it can be done. Most of the documentation I find online about it is just about styling it instead of adding in a new layout.
I thought maybe doing something like:
app:actionLayout="#layout/menu_settings_popup"
Would work, but unfortunately it doesn't. Also trying to set the layout and background in styles didn't
Would appreciate any help with this. Thanks
I think this would be what you need:
https://scriptedpapers.com/2015/02/12/android-action-bar-and-overflow-menu-customization-with-theme-appcompat/

Android - D-Pad Navigation and Button Effects

I am developing an application to be used in an Android TV environment. I am having a problem about how to implement this using the D-Pad navigation.
I want to achieve this effect.
But I am having problems like:
how could I resize the ImageView at run-time?
how to have a hovered-state ImageView?
how to move the hovered button according to your d-pad input?
Currently this is my what I have done.
I implemented this using horizontal linear layout and ImageViews.
Thank you

Eclipse android widget moving

I am designing my activity screen using eclipse but whenever I move an object e.g. a button it snaps around and I find it hard to position things where i want them.
Is there some setting I can change as as soon as I add a second button it snaps the other button to another position it is so annoying!
Also if I have an image button why can't i resize this, even with a normal button if i try to make it larger it just fits to the text and wont make the button bigger or it just flicks to a random place on the activity?
thanks
Probably you're trying to place components freely in the View but you're not considering the LayoutManager behavior. If you try to position your component in a LinearLayout, for example, the components will be placed following its rules, and these components will not stay where you drop them.
Try to understand better how the layouts works on Android. But for now, the AbsoluteLayout or RelativeLayout may be what you're looking for.
About the components size, you'll need to understand better how to use layout properties for these components. See the question How to size buttons for more information.

Categories