Questions tagged [android-gui]

The system through which people interact with a computer. UI stands for User Interface

There's now a Stack Exchange site for UI, Interaction and User Experience design: [ux.stackexchange.com][2]

Similar tags:

116 questions
1
vote
1 answer

Custom style on DialogFragment

Possible duplicate here, sorry in that case... I can't get my head around how to add a custom style to my DialogFragment. At the moment I have a class public final class SelectFragment extends DialogFragment { which I call from different parts of…
Piffen
  • 55
  • 7
1
vote
2 answers

Make a view float through several activities

In my application, I want to create a floating view that will be a show at a place (chosen by me, but can be everywhere on the screen) that has nothing to do with the current ongoing activity. The activity below will still be touchable (and has…
tony9099
  • 4,567
  • 9
  • 44
  • 73
1
vote
3 answers

When are views 'killed' in android?

When are the view's 'killed' and no more exist in Android ? For example, suppose I have an asynctask and I run some network related stuff in the doInBackground() method. Then, I need to update my UI views in the onPostExecute() method. Assume my…
tony9099
  • 4,567
  • 9
  • 44
  • 73
1
vote
1 answer

Design Patterns for Android -- Ensure GPS Location is set

I'm writing an Android App that uses my GPS Location. My code is very simple. public class MyActivityThing extends Activity { Location l; MyLocationListener locationListener; LocationManager …
user583507
1
vote
0 answers

Android Gallery View, Button in unfocused items goes to selected state

I have a gallery view in which i have plugged LinearLayouts by using Custom Adapter. This works fine. But when i scroll (swipe in gallery) between items in gallery, the button on unfocused item is in clicked state. It comes back to its normal state…
Hakeem
  • 95
  • 9
1
vote
0 answers

android frame layout with horizontal scroll bar and ovelapped images

i want to create a Frame layout to place a number of images from database, which need to be a horizontal scrollable list. Image Views are creating dynamically based on database value. Images must be overlapped like the attachment . Here is my xml …
i leaf
  • 273
  • 7
  • 19
1
vote
1 answer

how to apply photo effect in Bitmap image in android

Please help me to perform the image effect on bitmap image data. I search following code to apply photo effect. but i don't know about what exactly value should be pass for effect. The code is .. public Bitmap createEffect(Bitmap src, int depth,…
0
votes
1 answer

Disable home button in android

I add this code in my activity public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_HOME) { return false; } return super.onKeyDown(keyCode, event); } public void…
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
1 answer

Rotation animation in xml doesn't rotate on the middle

This is my animation in xml, I tried with android:pivotX="50%" but still I do not get what I want. The point of rotation is wrong. I want the green line to rotate around the middle of the screen.
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
1 answer

Matrix of linear layout and manipulation in code

Let say that I have an layout in res/values named layout1.xml. In this layout I have only one linear layout (the black one on the picture) The thing I want to do is to add an array of linear layouts just like on the picture. The red ones are…
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
2 answers

Android ListView GUI difficulties

https://i.stack.imgur.com/4Irb3.png click above link for screen shot. Ok so i'm having some problems editing my xml layout to get this list looking good. Basically i want each row of info to fill the whole list row, so that the white space you see…
0
votes
1 answer

Replace Fragments

I have the following XML for my Activity
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
0
votes
1 answer

What does it means when the listener is null

I have read some code that people use something like this view.setOnLongClickListener(null); What does it means and for what can be useful ? why someone uses this ? is that the same as this view.setOnLongClickListener(new OnLongClickListener() { …
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
1 answer

Android ShapeDrawable Translate Transform

I have a class that extends View, in which I place an instance of a ShapeDrawable, using shapeDrawable.draw(canvas) in the onDraw() method. I would like to create a translate animation that would move the ShapeDrawable object to another (x,y)…
Cristian Lupascu
  • 39,078
  • 16
  • 100
  • 137
0
votes
1 answer

How to move a View in my LinearLayout?

I have a linear layout and small view (50px - 50px), all I want to do is to move this view in to the parent (linear layout in my case). It doesn't have to be linear layout but if possible I want my wrapper to be linear layout. What is the right…
Lukap
  • 31,523
  • 64
  • 157
  • 244