Enlarging tab image in android - android

I implemented tabs. In which I have set the background for each tabs using
getTabHost().getTabWidget().getChildAt(1).setBackgroundResource(R.drawable.tabimg);
Now When I select the particular tab I want to enlarge the image of the tab like i it has shown in image.
Is it possible in android.
If yes, then how? Please suggest.
Thanks in advance.

I was not able to find anything. So In this case if anyone else also have the same issue, so what I have done. I have taken a image till the icon and the next image strip covering that text on that respective position and that strip I have set in linear layout. So now if I click on the tab the image look exactly like shown in the photo.

Related

I need help adding multiple images and text to my android button

In android i am trying to add multiple images and multiple text in a single button here is a image link to what i am trying to do. "http://imgur.com/0U7hMGw"i would love and appreciate any help on this i can get. Also to get the Circle images i was think of just using a drawable is the the best thing to do? I don't know how to make the image/profile picture to be a circle because when i add the drawable it adds it to the whole button not just the profile picture. Thank you very much for your help!
There's no need to set multiple images to a button. You can have a RelativeLayout with those images/texts, and set an OnClickListener to the RelativeLayout itself.

how to put horizontal scroll with grow shrink animation on icons in android?

I need to design an android app where in i have to display the home page as the below image. there will be 4-5 icons to which i need to give a horizontal scroll animation at an angle and the icon at the center will enlarge and have an on click listener to proceed to the respective activity of the particular icon clicked. I am very much new to android. I do not have any idea how to do these scroll animations. How do i start?? If anybody can please guide me through this???
Please help!!
Thanks in advance!!
Your requirement is some what 3D Carousel type style.
Check out Android 3D Carousel
This may help you to get a start up. Making some changes in this project may help you achieve your goal.

Outerglow Image issue in android button background

I am creating one application , in that application i used background for button . Background image has outer glow, so when i set that image to button background it shows me black color instead of outer glow image .
How can resolve this issue ? Please help me to solve this.
Here i add two images .
1) Image in which i got problem of outer glow.
2) Actual image used in button background.
heres a link that explains different button presses a good clear explanation
http://eagle.phys.utk.edu/guidry/android/AnimalSounds.html

Layout styles in android

i want to create screen in android like the image below(click on the hyperlink) but i am not getting the idea that how to create this screen just provide me solution for my problem.click to see image
I agree with sahhhm on the ListView. In addition, to display the cinema info you will need a custom list-item view which is going to contain an image view to display the left-hand image, four different text views to display the text and another image view for the right-hand image. You'll also have to accommodate the location in a view and the control bar at the top is possibly a custom control displayed in an activity which has the attribute android:theme="#android:style/Theme.NoTitleBar" in the android manifest file so that the title bar is not shown.
You will want to take a look at ListView. Here are a couple of basic tutorials (Android Developer Tutorial and Android People Tutorial) that will help get you started. Afterwards, you should be able to search for and find more specific examples of what you want.

How do I go about making this layout? Having so much trouble

I am trying to make a really easy xml layout and I can't seem to get it to look the way I want.
I attached a picture of what I want it to look like:
Basically, I have a static background image in my imagebutton at the top. Below that I have a picture the user snapped in the Photo Box. I assume I need an image view for that, but would it be possible for me to instead pass the pic to the background of an image button too so I can make the size easier to manage?
Based on what the user chooses in the options before this layout, an option photo is shown based on what they select. The photo would display to the right of the centered image, if that option is selected.
Below that would be a centered text view, with another separate one below that. Finally, I would have two buttons on top of each other at the very bottom.
Could someone show me a good way to get this layout and also tell me if it is possible to take a picture that is snapped and make it the background of an image button - or if that is a bad idea?
Thanks so much!
Seems like for the most part, you just want a simple LinearLayout. For the part with the photo, you could use an embedded LinearLayout or RelativeLayout.
As for the picture - you can easily set the background of any view or view group to any image (any view has an option to set the drawable for the background).
The only thing you should consider - for the purposes of making the UI more intuitive - is to slightly modify the image for the different states (focused, selected, etc), so that the user gets visual feedback when selecting the button via the trackpad, or when clicking on the button. A "drawable" has built-in support for multiple images for each state.

Categories

Resources