1
vote
0answers
30 views

OnTouchListener for a view in Jelly Bean

I have a game Activity, which contains a SurfaceView that fills the whole screen. The app is declared as fullscreen, and appears as such. My SurfaceView has an OnTouchListener, which feeds a ...
1
vote
0answers
119 views

TransitionDrawable with nine patches - margin is wrong

I have a TransitionDrawable. The two states are both nine patches and have a content area defined. The problem is the margin is just way too high - in fact it's basically twice as much as it should ...
1
vote
0answers
127 views

How to add button to the footer of Spinner

I have a spinner, I want to add a button "Cancel" to the end of spinner so when the user click it the selected element in the spinner doesn't change. xml <Spinner ...
1
vote
0answers
47 views

Rotation for some elements

I am trying to do thing that is already done in default Android 2.3 camera application - rotation only for some elements (such as buttons) when changing orientation of the device. For example, when I ...
1
vote
0answers
164 views

Hiding View after async call to the server completed

I'm trying to have a preloader to show while my request to the server is waiting for response but when I try to hide the preloader with setVisibility(View.GONE); it doesn't hide (even though the ...
0
votes
0answers
6 views

Combining SlidingMenu with Tabs in Android

I am coding ui for my application and I have problem of designing an overall layout structure for my main page which is using Slidingmenu and Tabs as following. I am not quite sure how to structure ...
0
votes
0answers
70 views

How do I implement this appwidget layout correctly so that the image scales as expected on all devices?

Pretty simple App widget layout below that I am looking at as an end result that should display exactly the same way on all devices irrespective of size,density etc. Here is what I have done. ...
0
votes
0answers
45 views

Android UI design. Designer and result are quiet different

Why do this happen? The emulator is xhdpi, and the designer i xhdpi. What elegant solutions is there to fix something like this? I suppose i could drag each element in the designer to a spot where it ...
0
votes
0answers
49 views

Screen transitions not working

HTC wildfire uses Android 2.3.5 and I have given screen transitions - the transitions are perfectly working in other devices but not in wildfire.
0
votes
0answers
99 views

Compound background (9 patch + gradient)

I have a 9-patch that I use to create a border around a view by setting it as the background of said view. The center pixels of the 9-patch are transparent, I would like to fill the center with a ...
0
votes
0answers
63 views

My UI in emulator appears to be different from xml layout design

here is my UI from emulator actually spinner must be centered as shown in xml layout below. but its not as shown above my xml file is as shown below: <?xml version="1.0" ...
0
votes
0answers
91 views

Change color to default of non-selected item in ListView

I want to change the color of TextView in ListView to the themes default, but right now it has different "non-selected" color ( gray in my case instead of white ). I have tried following code, to pick ...
0
votes
0answers
36 views

SplitActionBar divided to tabs with names and icons

How can I use action bar so it will give me the appropriate result: http://paxmodept.com/files/android_toolbar.png A navigation toolbar in the bottom (Including name and icon)
0
votes
0answers
185 views

Dynamic Theme-change at runtime

In my application the user could change the color-setttings for foreground and background. This works fine for the app. When trying to apply the settings to the preference-screen this fails cause the ...
0
votes
0answers
151 views

Rotate Multi ImageView in Custom FrameLayout

I created custom FrameLayout. I added 1 main circle and 5 another circle around the main. I wanna rotate circles around main circle. public class Circles extends FrameLayout{ ImageView mMainCircle; ...

1 2 3 4 5
15 30 50 per page