Skip to content
Snippets Groups Projects
Commit 035ebc8d authored by chan24's avatar chan24
Browse files

user area

parent ee2395e5
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ public class LoginActivity extends AppCompatActivity {
{
flag =0;
Intent i =new Intent(getApplicationContext(),UserArea.class);
i.putExtra("name",n);
startActivity(i);
}
}
......
......@@ -11,6 +11,7 @@ import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.gms.common.ConnectionResult;
......@@ -30,6 +31,11 @@ public class UserArea extends AppCompatActivity {
Toast.makeText(this,"Perfect",Toast.LENGTH_SHORT).show();
}
Intent i =getIntent();
String s = i.getStringExtra("name");
TextView v =(TextView)findViewById(R.id.textView2);
v.setText("Welcome "+s);
mDrawerLayout = (DrawerLayout)findViewById(R.id.activity_user_area);
mToggle = new ActionBarDrawerToggle(this,mDrawerLayout,R.string.open,R.string.close);
......
......@@ -13,6 +13,36 @@
android:orientation="vertical">
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="50dp" />
<CheckBox
android:id="@+id/shopping"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Shopping" />
<CheckBox
android:id="@+id/Movies"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Movies" />
<CheckBox
android:id="@+id/Dining"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Dining" />
<Button
android:id="@+id/save"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Save" />
</LinearLayout>
<android.support.design.widget.NavigationView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment