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:

115 questions
2
votes
1 answer

Drag and drop in preferences (reordering of items)

I have few items like this
Lukap
  • 29,596
  • 60
  • 146
  • 239
2
votes
3 answers

layout_width and android:layout_weight manipulations with gaps (margins) and paddings

The combination of having, for example, two buttons in some layout with android:layout_width="0dip" android:layout_weight="1" properties works just fine, both buttons will occupy equal space! But what if I want to have 2 buttons but also a space for…
Lukap
  • 29,596
  • 60
  • 146
  • 239
2
votes
1 answer

How can I automatically apply the style of the parent?

I have a layout that contains a custom layout. I would like to pass the style from one element to another. I have a class which inflates the layout, which I can post if required. This element of design is added by 2 different layouts, with different…
PearsonArtPhoto
  • 35,989
  • 16
  • 107
  • 136
2
votes
1 answer

Building graphics UI in Android NDK

I'm building an audio / music app. in Android. And because of this I'm using the new Oboe C++ library. I'm wondering how people do graphics and UI in Android with NDK applications. I don't think I need OpenGL or a low level, fast graphics library.…
interstar
  • 22,620
  • 31
  • 101
  • 161
2
votes
2 answers

How to make some part of text bold and some part of text normal in both EditText and TextView

I want to make something like wow its cool app in android. so that users can see a bold text in both TextView and EditText like WhatsApp. I don't know what to do. I searched and found something in which we can use HTML tags but some of the users…
2
votes
0 answers

How to create a spinner group in Android?

So, I have this activity in which a spinner is shown. There is also an add button on the right side of the button. Once, the spinner item is chosen, the user can optionally tap on the add button. Once the user taps on it, a new spinner has to be…
spideyonthego
  • 101
  • 1
  • 9
2
votes
2 answers

Android : Image button or button Highlighted with Effect when Pressed

Here when i pressed on these left and right arrow button at that time I want to see these type of effects on button. These same thing happens in Iphone/IOS by default. Can i make this type of effect? Here i mentioned the pic what exactly i…
sam_k
  • 5,757
  • 13
  • 70
  • 106
2
votes
1 answer

Android - keeping a single element contained on screen

I'm experimenting to see if the layout scheme I want to use is possible. I want to have an XML layout that's scrollable. Within that scrollable layout, I want to have a single line going horizontally across the screen (I used just a View with a…
Wenger
  • 981
  • 1
  • 12
  • 35
1
vote
1 answer

onTouchListener doesn't get called when dragging

I have red and green LinearLayouts, and I set ontouch listeners to them. When I touch the green one its turns to white (no problem so far) When I touch the red one it is also turning to white (no problem so far) The problem is when I touch the…
Lukap
  • 29,596
  • 60
  • 146
  • 239
1
vote
1 answer

Create a redistributable gui component for android

I have created for my application, some custom GUI component and used them. Now i want to make them redistributable. I know that add the sources to another project and use them in that way, but i'd prefer to make something like a jar or similar. I…
Ivan
  • 3,976
  • 2
  • 34
  • 68
1
vote
2 answers

is the screen from this device belongs to ldpi (or mdpi or hdpi) density?

I want to write a function like this public boolean isThisScreenWithHdpiDensity(){ return true/false; } but I do not know how to calculate this at run time programmatic-ally
Lukap
  • 29,596
  • 60
  • 146
  • 239
1
vote
0 answers

Should I show a progressbar or a drawable for each item of a listview?

There is a listview in my app, where I show a drawable for each item; since I retrieve those drawables from the internet it takes some times to load them, so I'm supposed to show the user a little indeterminate progress cycle for each drawable,…
user1012480
  • 750
  • 2
  • 10
  • 22
1
vote
2 answers

set the size of textbox with wrapcontent

This is the part from my layout
Lukap
  • 29,596
  • 60
  • 146
  • 239
1
vote
1 answer

AlertDialog and DialogPreference

I have this for my alert dialogs, and this works perfect ContextThemeWrapper ctw = new ContextThemeWrapper( MvcnContactList.this, R.style.MyTheme ); alertDialogBuilder = new AlertDialog.Builder(ctw); //set some views and onclick…
Lukap
  • 29,596
  • 60
  • 146
  • 239
1
vote
1 answer

Layout issue when the keyboard is shown

This is my app when the soft keyboard is hidden But when the keyboard is shown then the edittext box on the top is gone (it is push up). and it looks like this. My question is how can I keep both edit-boxes visible when the keyboard is shown? I…
Lukap
  • 29,596
  • 60
  • 146
  • 239