Questions tagged as 'android'

1
answer

TextView allowing only numbers

I want my TextView only accepted as input numbers, however the line android:numeric="decimal" has no effect, it still allows me to type letters.     
asked by 25.06.2015 / 00:15
3
answers

How to use a button in a fragment

I have a button in my fragment fragment_main <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/f...
asked by 04.02.2015 / 20:29
1
answer

EditText with WebView URL when the page starts loading

There is not much to say. I need when the loadameto of the page was started the link of the page loading in WebView go to EditText , that is: editText_url.setText(myWebView.getUrl()); I only know how to do this by clicking...
asked by 08.02.2015 / 19:27
1
answer

Android: An error occurred while executing application

I noticed that by using the Alt + Insert shortcut and selecting it to give me the constructors, it tries to create a constructor with each property private (cManager and mTextView) . I remember that I created projects without this and...
asked by 20.02.2015 / 19:57
1
answer

Center a textview

I have this layout in my application: AndI'mcreatingitlikethis:TextViewtxtCategoria=(TextView)LayoutInflater.from(this).inflate(R.layout.text,null);txtCategoria.setText(listenerCategoria.nome);finalImageButtonbtCategoria=(ImageButton)Layout...
asked by 26.02.2015 / 15:12
1
answer

What does this layout consist of?

I saw this app and on this screen there are some divisions that seem to have been made with cardview, can anyone tell if it was actually done that way or how it was done? Another detail is at the end, there is a button that takes all the widt...
asked by 25.01.2016 / 04:16
1
answer

Change the field visibility of a layout at run time

In a layout for customer registration, there are specific fields for Corporate and Individual. The control of the type of register is done by RadioButton that are within RadioGroup . I'm trying to change the RadioBut...
asked by 10.12.2014 / 13:14
1
answer

Rookie in applications. Where to start?

Hello. Developed with Ruby on Rails and PHP for some time. I would like to create an app now ... I wanted to start from the point I already know, that is, use one of these two languages to create the application. I saw that there are tools that...
asked by 03.12.2014 / 23:15
1
answer

Load spinner into another

I wanted to know how when selecting a spinner item, another spinner is populated with an Adapter. I've tried it this way: @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int posicao, long arg3) { ArrayAdapter<...
asked by 17.12.2014 / 06:43
1
answer

SQLITE cursor taking the last value

How do I make the SQLITE Cursor, cause the variables not to stop at the last value? I made a SetAdapter to which it lists all the data in the ListView, so that's fine, but when I put some variable inside the WHILE, it sets the last value, and I...
asked by 08.12.2014 / 15:28