Questions tagged as 'android-layout'

1
answer

CheckBox with RadioButton look

Next team: I have a form on android which has some radiobutton's and I need these items to be unmarked when clicked. Ex: I clicked on the first one and it gets marked, if I click on the second radiobutton the first one will continue marked only...
asked by 23.09.2015 / 21:41
1
answer

Visual effect when clicking the add button when assigning a background

I'm trying to make a simple button in an Android application. When you insert the button the effects worked normally, but after changing the background color, the effect of clicking the button disappeared, becoming static. I would like to kno...
asked by 23.06.2015 / 00:05
1
answer

Application returns null when instantiating custom component

Good evening. I need to make a AutoCompleteTextView component search the information directly from the server and for this I am following the following article: link When I run the application it returns an error in this part o...
asked by 14.09.2015 / 01:51
1
answer

ListView displays only one line, why?

I have a ListView in a layout with more items, and it only displays one row. If I make the same schema in a code that the layout has only the ListView it works fine, if anyone has any idea why I would appreciate it. Here is my xml <?xml...
asked by 30.07.2015 / 22:58
1
answer

I can not create a new Activity

I'm doing a project that uses the jar support v4. However, when I create a new Activity, the project has errors, as it informs that support v7 is required. Is it possible to continue developing this project using only v4, or has it been disconti...
asked by 04.06.2015 / 18:13
1
answer

android.widget.LinearLayout can not be cast to android.widget.ListView

While running my application, this error appears:    05-28 05: 33: 33.773: E / AndroidRuntime (28824): java.lang.RuntimeException: Unable to start activity ComponentInfo {br.exampleactionbar / br.exampleactionbar.MainActivity}: java.lang.Clas...
asked by 28.05.2015 / 11:03
1
answer

Proportional area usage with GridLayout

I'm having the following difficulty, after searching exhaustively in Google and not finding an answer to my doubt, I decided to ask here, I would like to put a TextView next to a Button, so that TextView uses 2/3 of useful area and the Button th...
asked by 09.06.2015 / 14:29
2
answers

How can I put an element next to the other?

I want to put atendenteBalaoProdutoValor on the side of atendenteBalaoProdutoNome and atendenteBalaoProduto2 below atendenteBalaoProdutoNome . For this, I've tried this: Attendant.xml <?xml version="1.0" enco...
asked by 15.05.2015 / 15:59
1
answer

Responsive Screens

I am having doubts about responsive screens on android. I'm almost finishing my app, but I'm not able to make it responsive to the various screen sizes. I'm using the Android Studio IDE. <RelativeLayout xmlns:android="http://schemas.android...
asked by 13.03.2015 / 19:35
1
answer

Center background image

I'm trying to put as an image of the background an image that I want it to be exactly centered vertically and horizontally (the image is a ball). So the goal is to stay horizontally match_parent and vertically wrap_content to stay...
asked by 25.04.2015 / 23:28