Questions tagged as 'android'

1
answer

How to draw a cube using openGL?

How do I design a cube using OpenGL on Android?     
asked by 03.05.2015 / 17:30
1
answer

Hide keyboard when choosing text in AutoComplete

I'm using elements of type AutoComplete in the project, so when the user types part of the text they are looking for, it presents the suggested options for it. For this, I'm using the following snippet: private void arrayAutoComplete() {...
asked by 20.04.2015 / 19:48
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

ListView Fragment

The list is loaded into the Fragment by selecting the ActionBar menu item. However, when I click on a tab other than Fragment with the list, and return to the tab with the list, the list that was previously is not destroyed. That is, a new reque...
asked by 29.05.2015 / 11:58
1
answer

Activity with two Layouts and FocusText focusable

My app only has one activity but two Layouts. The switching between the two Layouts is done through a Button that exists in each of the Layouts. In Layout 1 there is a% num of type numeric and in Layout 2 there is another EditText...
asked by 10.05.2015 / 12:30
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 to start an EditText as null?

I want, when the user marks a RadioButton , an EditText that has already been started as null, appears, but I do not know how to do this. >     
asked by 10.06.2015 / 21:46
1
answer

Create a constant that loads several images and shows them on the screen

I'm developing a game and it's only generating an image on the screen randomly. I would like to implement 3 different images, which through a random would appear automatically on the screen, and that each image would have a value. Exam...
asked by 13.05.2015 / 03:29
1
answer

How to go to the end of ScrollView

How do I get to the end of ScrollView When I click a button? I have RadioGroup and Buttom , both are in ScrollView , I want when I click on one of the RadioButtom go to the end of ScrollView .     
asked by 12.05.2015 / 00:50
1
answer

Put a power off button on notification of an Android App

In my application I have a Service running in background, which puts a notification in the User Status Bar, I would like to add a button to turn off the service, as the maps Waze app does.     
asked by 11.05.2015 / 19:21