android-imagebutton Questions
7
Solved
How to change the default color of send icon on this ImageButton?
<ImageButton
android:id="@+id/ImageButton1"
android:layout_width="0dp"
android:paddingTop="5dip"...
Dieter asked 9/2, 2016 at 6:54
6
Solved
I have an app which has fragment and image button on that. The problem is it's working on and above 5.0 but not below 5.0. The min sdk version is 17.
Not getting what's wrong here. I am getting 2...
Ferroconcrete asked 17/2, 2016 at 5:58
2
Solved
I haven't found anything over the past day that shows how to do this action, everything I've seen is with a basic button of which I am unable to replicate for use with an image button. using setOnC...
Winery asked 3/11, 2020 at 20:18
5
Solved
How to set the ImageButton property of
app:srcCompat="@drawable/pic"
programmatically?
Something like myImageButton.setBackgroundResource(R.drawable.eng2); but the property of app:srcCompat.
Rash asked 5/7, 2016 at 21:13
5
Solved
I'm having a problem with the bottom of my ListView and ImageButton being cut off when I load my app onto a phone or when using an emulator. I could just use margins or padding, but wouldn't that b...
Privy asked 3/11, 2015 at 0:21
5
Solved
I have created one image button in android, but when I am clicking on that button nothing is happening. I have set all the properties but still nothing is happening. So can you help me that where I...
Nepali asked 16/3, 2015 at 6:16
2
Solved
I've look for posts that answer this issue, but none of them are working for me, so I think I have a fundamental misunderstanding of just how it's supposed to work. I have an ImageButton which has ...
Sublease asked 26/2, 2015 at 5:3
5
Solved
What's the little widget with three dots? How can I add it to my app?
Shelba asked 1/8, 2015 at 19:28
2
Solved
I'm getting some weird behavior in my LinearLayout when I try to set regular Buttons and an ImageButton to the same layout_weight. The image button's android:src resource is extrememly small and fi...
Corneliuscornell asked 11/1, 2017 at 3:53
3
Solved
My layout includes this ImageButton as shown:
But as you can see, the image is not taking the full size of the ImageButton.
This is the layout file where the ImageButton is defined:
<ImageB...
Marasco asked 3/1, 2017 at 18:31
3
Solved
I am trying to implement ripple effect for ImageButton.I have set ripple in background and drawable image in the src for it.
android:background="@drawable/myripplexml"
android:src="@drawable/myim...
Hildagarde asked 10/12, 2014 at 5:2
2
I'm trying to change the solid color of a shape in my Fragment.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/icon_circle_background">...
Pilose asked 19/3, 2016 at 14:46
1
Solved
I want to make an ImageButton rotate when the device orientation changes. It should rotate for 90, 180, 270 and 360 angles and its relative layout should remain steady so only the buttons move. How...
Ingham asked 6/10, 2015 at 21:59
2
I have 6 separate images with a transparent background. How can I put all those images together as buttons, like:
From what I read I guess I have to use Frame Layout in order to have overlapping...
Intyre asked 15/4, 2015 at 13:53
2
So this is my first app and I am trying to code and need some help with buttons. After searching for a answer I just couldn't find one that I understood. I want to be able to make different pages f...
Paucker asked 10/2, 2015 at 17:53
2
Solved
I have an ImageButton that I want to fill its parent RelativeLayout container for its width but minus a few dp so it has some left and right padding. I tried fill_parent-10dp but that causes an err...
Eberhardt asked 23/6, 2012 at 2:12
1
Solved
I know Android will return to the home screen when I press the Home key, however,
I want my imageButton to behave as the Home key, which can inform the home screen to the foreground.
How should I ...
Adrenalin asked 5/5, 2011 at 15:25
1
© 2022 - 2024 — McMap. All rights reserved.