esse é meu xml FormularioActivity
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#795548">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Nome"
android:id="@+id/formulario_nome"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Deixe aqui o seu Feedback sobre o local"
android:id="@+id/formulario_feedback"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Telefone"
android:id="@+id/formulario_telefone"/>
<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:max="10"
android:numStars="5"
android:id="@+id/formulario_nota"/>
</LinearLayout>
</ScrollView>
esse é minha classe FormularioActivity
package com.chatbus.chat.chatbus.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
import com.chatbus.chat.chatbus.Dao.UsuariosDAO;
import com.chatbus.chat.chatbus.Model.Usuarios;
import com.chatbus.chat.chatbus.R;
public class FormularioActivity extends AppCompatActivity {
private FormularioHelper helper;//crinado um atributo
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_formulario);
helper = new FormularioHelper(this);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {//criando menu
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_formulario, menu); //chamando menu do formulario
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) { //toda vez que o metodo for clicado
switch (item.getItemId()){
case R.id.menu_formulario_ok:
Usuarios usuarios = helper.getUsuarios();
UsuariosDAO dao = new UsuariosDAO(this);
dao.insere(usuarios);
break;
}
return super.onOptionsItemSelected(item);
}
}
print da tela