| @@ -0,0 +1,27 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.support.design.widget.FloatingActionButton; | ||
| import android.support.design.widget.Snackbar; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.support.v7.widget.Toolbar; | ||
| import android.view.View; | ||
| import android.widget.Button; | ||
|
|
||
| public class Instagram extends AppCompatActivity { | ||
|
|
||
| Button btnLogin; | ||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_instagram); | ||
| btnLogin = (Button) findViewById(R.id.bt_Login); | ||
| btnLogin.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| finish(); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,29 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.support.design.widget.FloatingActionButton; | ||
| import android.support.design.widget.Snackbar; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.support.v7.widget.Toolbar; | ||
| import android.view.View; | ||
|
|
||
| public class InstagramDetails extends AppCompatActivity { | ||
|
|
||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_instagram_details); | ||
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
| setSupportActionBar(toolbar); | ||
|
|
||
| FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); | ||
| fab.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View view) { | ||
| Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) | ||
| .setAction("Action", null).show(); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,47 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.content.Intent; | ||
| import android.os.Bundle; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.view.View; | ||
| import android.widget.Button; | ||
| import android.widget.TextView; | ||
|
|
||
| public class Login extends AppCompatActivity { | ||
|
|
||
|
|
||
| Button btnLogin; | ||
| TextView tvCreateAccount; | ||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_login); | ||
|
|
||
| btnLogin = (Button) findViewById(R.id.bt_Login); | ||
|
|
||
| tvCreateAccount = (TextView) findViewById(R.id.tv_CreateAccount); | ||
| btnLogin.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| Intent homepage = new Intent(); | ||
|
|
||
| homepage.setClass(getBaseContext(), Publish.class); | ||
| startActivity(homepage); | ||
| } | ||
| }); | ||
|
|
||
| tvCreateAccount.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| Intent homepage = new Intent(); | ||
|
|
||
| homepage.setClass(getBaseContext(), CreateAccount.class); | ||
| startActivity(homepage); | ||
| } | ||
| }); | ||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,83 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.view.View; | ||
|
|
||
| import android.app.Activity; | ||
| import android.content.Intent; | ||
| import android.database.Cursor; | ||
| import android.graphics.BitmapFactory; | ||
| import android.net.Uri; | ||
| import android.provider.MediaStore; | ||
| import android.widget.Button; | ||
| import android.widget.ImageView; | ||
| import android.widget.Toast; | ||
|
|
||
| public class PhotoGallery extends Activity { | ||
| private static int RESULT_LOAD_IMG = 1; | ||
| String photoPath; | ||
|
|
||
| Button btnUploadPhoto; | ||
| Button btnSelectPhoto; | ||
|
|
||
|
|
||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_photo_gallery); | ||
| btnUploadPhoto = (Button) findViewById(R.id.btnUploadPicture); | ||
| btnSelectPhoto = (Button) findViewById(R.id.btnSelectPicture); | ||
|
|
||
| String genderValue = getIntent().getExtras().getString(Publish.KEY_CURRENT_PHOTO); | ||
|
|
||
|
|
||
| btnSelectPhoto.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| Intent galleryIntent = new Intent(Intent.ACTION_PICK, | ||
| android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); | ||
| startActivityForResult(galleryIntent, RESULT_LOAD_IMG); | ||
| } | ||
| }); | ||
| btnUploadPhoto.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| Intent result = new Intent(); | ||
| result.putExtra(Publish.KEY_CURRENT_PHOTO, photoPath); | ||
| //setResult and exit | ||
| setResult(RESULT_OK, result); | ||
| finish(); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| @Override | ||
| protected void onActivityResult(int requestCode, int resultCode, Intent data) { | ||
| super.onActivityResult(requestCode, resultCode, data); | ||
| try { | ||
| if (requestCode == RESULT_LOAD_IMG && resultCode == RESULT_OK | ||
| && null != data) { | ||
| Uri selectedImage = data.getData(); | ||
| String[] filePathColumn = { MediaStore.Images.Media.DATA }; | ||
|
|
||
| Cursor cursor = getContentResolver().query(selectedImage, | ||
| filePathColumn, null, null, null); | ||
| cursor.moveToFirst(); | ||
|
|
||
| int columnIndex = cursor.getColumnIndex(filePathColumn[0]); | ||
| photoPath = cursor.getString(columnIndex); | ||
| cursor.close(); | ||
| ImageView imgView = (ImageView) findViewById(R.id.imgView); | ||
| imgView.setImageBitmap(BitmapFactory | ||
| .decodeFile(photoPath)); | ||
| } else { | ||
| Toast.makeText(this, "Please select a photo", Toast.LENGTH_LONG).show(); | ||
| } | ||
| } catch (Exception e) { | ||
| Toast.makeText(this, "May Error", Toast.LENGTH_LONG).show(); | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,167 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.content.Intent; | ||
| import android.os.Bundle; | ||
| import android.view.View; | ||
| import android.support.design.widget.NavigationView; | ||
| import android.support.v4.view.GravityCompat; | ||
| import android.support.v4.widget.DrawerLayout; | ||
| import android.support.v7.app.ActionBarDrawerToggle; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.support.v7.widget.Toolbar; | ||
| import android.view.Menu; | ||
| import android.view.MenuItem; | ||
| import android.widget.Button; | ||
| import android.widget.EditText; | ||
| import android.widget.Toast; | ||
|
|
||
| public class Publish extends AppCompatActivity | ||
| implements NavigationView.OnNavigationItemSelectedListener { | ||
|
|
||
| final static String KEY_CURRENT_PHOTO = "current_photo"; | ||
| final static int REQUEST_PHOTO = 0; | ||
|
|
||
|
|
||
| EditText etContent; | ||
| Button btnSelectPhoto; | ||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_main); | ||
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
| setSupportActionBar(toolbar); | ||
|
|
||
| btnSelectPhoto = (Button) findViewById(R.id.bt_AddPhoto); | ||
| etContent = (EditText) findViewById(R.id.et_Content); | ||
|
|
||
| btnSelectPhoto.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| String photoPath = "none"; | ||
|
|
||
| Intent explicit = new Intent(); | ||
| explicit.setClass(getBaseContext(), PhotoGallery.class); | ||
| //add genderValue as an extra to explicit | ||
|
|
||
| explicit.putExtra(KEY_CURRENT_PHOTO, photoPath); | ||
|
|
||
| startActivityForResult(explicit, REQUEST_PHOTO); | ||
| } | ||
| }); | ||
|
|
||
| DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); | ||
| ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( | ||
| this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); | ||
| drawer.setDrawerListener(toggle); | ||
| toggle.syncState(); | ||
|
|
||
| NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); | ||
| navigationView.setNavigationItemSelectedListener(this); | ||
| } | ||
|
|
||
| @Override | ||
| protected void onActivityResult(int requestCode, int resultCode, Intent data) | ||
| { | ||
| super.onActivityResult(requestCode, resultCode, data); | ||
|
|
||
| if(requestCode == REQUEST_PHOTO && resultCode == RESULT_OK) | ||
| { | ||
| String photoPath = data.getExtras().getString(KEY_CURRENT_PHOTO); | ||
| etContent.setText(photoPath); | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public void onBackPressed() { | ||
| DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); | ||
| if (drawer.isDrawerOpen(GravityCompat.START)) { | ||
| drawer.closeDrawer(GravityCompat.START); | ||
| } else { | ||
| super.onBackPressed(); | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public boolean onCreateOptionsMenu(Menu menu) { | ||
| // Inflate the menu; this adds items to the action bar if it is present. | ||
| getMenuInflater().inflate(R.menu.main, menu); | ||
| return true; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean onOptionsItemSelected(MenuItem item) { | ||
| // Handle action bar item clicks here. The action bar will | ||
| // automatically handle clicks on the Home/Up button, so long | ||
| // as you specify a parent activity in AndroidManifest.xml. | ||
| int id = item.getItemId(); | ||
|
|
||
| //noinspection SimplifiableIfStatement | ||
| if (id == R.id.report_bug) { | ||
| Toast.makeText(this, "Bug Reported", Toast.LENGTH_LONG).show(); | ||
| } | ||
| else if(id == R.id.review){ | ||
| Toast.makeText(this, "You gave us 5 stars", Toast.LENGTH_LONG).show(); | ||
|
|
||
| } | ||
| else if(id == R.id.recommend){ | ||
| Toast.makeText(this, "You just made us famous", Toast.LENGTH_LONG).show(); | ||
|
|
||
| } | ||
| else if(id == R.id.sponsor){ | ||
| Toast.makeText(this, "Thanks for donating", Toast.LENGTH_LONG).show(); | ||
|
|
||
| } | ||
|
|
||
|
|
||
| return super.onOptionsItemSelected(item); | ||
| } | ||
|
|
||
| @SuppressWarnings("StatementWithEmptyBody") | ||
| @Override | ||
| public boolean onNavigationItemSelected(MenuItem item) { | ||
| // Handle navigation view item clicks here. | ||
| int id = item.getItemId(); | ||
|
|
||
| if (id == R.id.nav_facebook) { | ||
| Intent intent = new Intent(); | ||
|
|
||
| intent.setClass(getBaseContext(), Facebook.class); | ||
|
|
||
| startActivity(intent); | ||
| } else if (id == R.id.nav_twitter) { | ||
| Intent intent = new Intent(); | ||
|
|
||
| intent.setClass(getBaseContext(), Twitter.class); | ||
|
|
||
| startActivity(intent); | ||
| } else if (id == R.id.nav_instagram) { | ||
| Intent intent = new Intent(); | ||
|
|
||
| intent.setClass(getBaseContext(), Instagram.class); | ||
|
|
||
| startActivity(intent); | ||
|
|
||
| } else if (id == R.id.nav_publish) { | ||
| // Intent intent = new Intent(); | ||
| // | ||
| // intent.setClass(getBaseContext(), Home.class); | ||
| // //add genderValue as an extra to explicit | ||
| // | ||
| // startActivity(intent); | ||
|
|
||
| } else if (id == R.id.nav_Logout) { | ||
| finish(); | ||
| } else if (id == R.id.nav_About) { | ||
| Intent intent = new Intent(); | ||
|
|
||
| intent.setClass(getBaseContext(), About.class); | ||
|
|
||
| startActivity(intent); | ||
|
|
||
| } | ||
|
|
||
| DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); | ||
| drawer.closeDrawer(GravityCompat.START); | ||
| return true; | ||
| } | ||
| } |
| @@ -0,0 +1,32 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.support.design.widget.FloatingActionButton; | ||
| import android.support.design.widget.Snackbar; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.support.v7.widget.Toolbar; | ||
| import android.view.View; | ||
| import android.widget.Button; | ||
|
|
||
| public class Twitter extends AppCompatActivity { | ||
|
|
||
| Button btnLogin; | ||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_twitter); | ||
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
| setSupportActionBar(toolbar); | ||
|
|
||
| btnLogin = (Button) findViewById(R.id.bt_Login); | ||
| btnLogin.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| finish(); | ||
| } | ||
| }); | ||
|
|
||
|
|
||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,29 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.support.design.widget.FloatingActionButton; | ||
| import android.support.design.widget.Snackbar; | ||
| import android.support.v7.app.AppCompatActivity; | ||
| import android.support.v7.widget.Toolbar; | ||
| import android.view.View; | ||
|
|
||
| public class TwitterDetails extends AppCompatActivity { | ||
|
|
||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| setContentView(R.layout.activity_twitter_details); | ||
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
| setSupportActionBar(toolbar); | ||
|
|
||
| FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); | ||
| fab.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View view) { | ||
| Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) | ||
| .setAction("Action", null).show(); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,12 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0" /> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M9,2L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2H9zm3,15c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M22.7,19l-9.1,-9.1c0.9,-2.3 0.4,-5 -1.5,-6.9 -2,-2 -5,-2.4 -7.4,-1.3L9,6 6,9 1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1,0.4 1.4,0l2.3,-2.3c0.5,-0.4 0.5,-1.1 0.1,-1.4z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportHeight="24.0" | ||
| android:viewportWidth="24.0"> | ||
| <path | ||
| android:fillColor="#FF000000" | ||
| android:pathData="M4,6H2v14c0,1.1 0.9,2 2,2h14v-2H4V6zm16,-4H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-8,12.5v-9l6,4.5 -6,4.5z" /> | ||
| </vector> |
| @@ -0,0 +1,9 @@ | ||
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:shape="rectangle"> | ||
| <gradient | ||
| android:angle="135" | ||
| android:centerColor="@color/instagramColor" | ||
| android:endColor="@color/lathalaColor" | ||
| android:startColor="@color/lathalaColor" | ||
| android:type="linear" /> | ||
| </shape> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.About"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_about" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.CreateAccount"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_create_account" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.Facebook"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_facebook" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.FacebookDetails"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_facebook_details" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.Instagram"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_instagram" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.InstagramDetails"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_instagram_details" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,35 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.Login"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_height="wrap_content" | ||
| android:layout_width="match_parent" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_login"/> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,25 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:id="@+id/drawer_layout" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:openDrawer="start"> | ||
|
|
||
| <include | ||
| layout="@layout/app_bar_main" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" /> | ||
|
|
||
| <android.support.design.widget.NavigationView | ||
| android:id="@+id/nav_view" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="match_parent" | ||
| android:layout_gravity="start" | ||
| android:fitsSystemWindows="true" | ||
| app:headerLayout="@layout/nav_header_main" | ||
| app:menu="@menu/activity_main_drawer" /> | ||
|
|
||
| </android.support.v4.widget.DrawerLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.PhotoGallery"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_photo_gallery" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.Twitter"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_twitter" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context="com.example.glenn.lathalanavigation.TwitterDetails"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_twitter_details" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:fitsSystemWindows="true" | ||
| tools:context=".Publish"> | ||
|
|
||
| <android.support.design.widget.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:theme="@style/AppTheme.AppBarOverlay"> | ||
|
|
||
| <android.support.v7.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:background="?attr/colorPrimary" | ||
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | ||
|
|
||
| </android.support.design.widget.AppBarLayout> | ||
|
|
||
| <include layout="@layout/content_publish" /> | ||
|
|
||
| <android.support.design.widget.FloatingActionButton | ||
| android:id="@+id/fab" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="bottom|end" | ||
| android:layout_margin="@dimen/fab_margin" | ||
| android:src="@android:drawable/ic_dialog_email" /> | ||
|
|
||
| </android.support.design.widget.CoordinatorLayout> |
| @@ -0,0 +1,142 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.About" | ||
| tools:showIn="@layout/activity_about" | ||
| android:background="@color/lathalaColor"> | ||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="About" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="false" /> | ||
|
|
||
| = | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="LATHALA" | ||
| android:textColor="#e4eae6" | ||
| android:textSize="50dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:padding="10dp"/> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Lathala is a social media platform that aims to help its users to save time and effort when updating their individual social media accounts. This is a project under development through a course requirement in De La Salle University Manila. All names and labels included in this application belongs to their own respective organizations." | ||
| android:id="@+id/AboutContent" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_alignParentEnd="true" | ||
| android:padding="10dp" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Developers" | ||
| android:id="@+id/tv_Developers" | ||
| android:layout_below="@+id/AboutContent" | ||
| android:layout_alignParentStart="true" | ||
| android:textColor="@color/white"/> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Paolo de Jesus" | ||
| android:id="@+id/tv_Paolo" | ||
| android:layout_below="@+id/tv_Developers" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
|
|
||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Veronica Mangubat" | ||
| android:id="@+id/tv_Veronica" | ||
| android:layout_below="@+id/tv_Paolo" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Glenn Matias" | ||
| android:id="@+id/tv_Glenn" | ||
| android:layout_below="@+id/tv_Veronica" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:paddingTop="10dp" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Contact Us" | ||
| android:id="@+id/tv_ContactUs" | ||
| android:layout_below="@+id/tv_Glenn" | ||
| android:layout_alignParentStart="true" | ||
| android:textColor="@color/white"/> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="paolo_dejesus@dlsu.edu.ph" | ||
| android:id="@+id/tv_PaoloEmail" | ||
| android:layout_below="@+id/tv_ContactUs" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
|
|
||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="veronica_mangubat@dlsu.edu.ph" | ||
| android:id="@+id/tv_VeronicaEmail" | ||
| android:layout_below="@+id/tv_PaoloEmail" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="glenn_matias@dlsu.edu.ph" | ||
| android:id="@+id/tv_GlennEmail" | ||
| android:layout_below="@+id/tv_VeronicaEmail" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="5dp" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <Button | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Give us 5 stars please" | ||
| android:id="@+id/btn_Rate" | ||
| android:layout_below="@+id/tv_GlennEmail" | ||
| android:paddingLeft="10dp" | ||
| android:paddingTop="10dp" | ||
| android:layout_alignParentStart="true" | ||
| /> | ||
|
|
||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,130 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.CreateAccount" | ||
| tools:showIn="@layout/activity_create_account" | ||
| android:background="@color/lathalaColor"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Name" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="20dp" | ||
| /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Username" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@+id/et_Username" | ||
| android:text="Username" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_below="@+id/tv_Password" | ||
| android:background="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Create Account" | ||
| android:textColor="#e4eae6" | ||
| android:textSize="30dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <Button | ||
| android:id="@+id/bt_CreateAccount" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Create Account" | ||
| android:background="#1d9442" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/checkBox" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Password" | ||
| android:id="@+id/textView2" | ||
| android:layout_below="@+id/et_Password" | ||
| android:layout_alignParentStart="true" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:id="@+id/et_RetypePassword" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/textView2" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <CheckBox | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="I have read and understood the Terms and Agreement" | ||
| android:id="@+id/checkBox" | ||
| android:textColor="@color/white" | ||
| android:textSize="12dp" | ||
| android:checked="false" | ||
| android:layout_marginTop="77dp" | ||
| android:layout_below="@+id/et_RetypePassword" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Retype Password" | ||
| android:id="@+id/textView3" | ||
| android:layout_marginTop="10dp" | ||
|
|
||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/et_RetypePassword" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <EditText | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:id="@+id/editText" | ||
| android:layout_marginTop="10dp" | ||
|
|
||
| android:background="#ffffff" | ||
| android:layout_below="@+id/textView3" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,77 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.Facebook" | ||
| tools:showIn="@layout/activity_facebook" | ||
| android:background="@color/facebookColor"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Username" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Username" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_marginTop="10dp" | ||
| android:layout_alignParentStart="true" /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@+id/et_Username" | ||
| android:text="Password" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_below="@+id/tv_Password" | ||
| android:layout_marginTop="10dp" | ||
|
|
||
| android:background="#ffffff" /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:textColor="#ffffff" | ||
| android:text="FACEBOOK" | ||
| android:textSize="50dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <Button | ||
| android:id="@+id/bt_Login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Login" | ||
| android:layout_below="@+id/et_Password" | ||
| android:layout_marginTop="20dp" | ||
| android:background="#243c74" | ||
| android:textColor="#ffffff" | ||
| /> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,51 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:background="@color/facebookColor" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.FacebookDetails" | ||
| tools:showIn="@layout/activity_facebook_details"> | ||
|
|
||
| <RelativeLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/imageView2" | ||
| android:layout_width="100dp" | ||
| android:layout_height="100dp" | ||
| android:background="@drawable/lol" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Juan Dela Cruz" | ||
| android:padding="20dp" | ||
| android:textColor="@color/white" | ||
| android:textSize="30dp" | ||
| android:layout_alignBottom="@+id/imageView2" | ||
| android:layout_toEndOf="@+id/imageView2" | ||
| /> | ||
|
|
||
|
|
||
| </RelativeLayout> | ||
|
|
||
| <Button | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Logout" | ||
| android:id="@+id/button2" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginBottom="54dp" | ||
| android:layout_alignParentEnd="true"/> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,78 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.Instagram" | ||
| tools:showIn="@layout/activity_instagram" | ||
| android:background="@color/instagramColor"> | ||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Username" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="42dp" | ||
| /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Username" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="10dp" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@+id/et_Username" | ||
| android:text="Password" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp" | ||
| /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_below="@+id/tv_Password" | ||
| android:layout_marginTop="10dp" | ||
| android:background="#ffffff" /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="INSTAGRAM" | ||
| android:textColor="#ffffff" | ||
| android:textSize="50dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <Button | ||
| android:id="@+id/bt_Login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Login" | ||
| android:layout_below="@+id/et_Password" | ||
| android:layout_marginTop="20dp" | ||
| android:background="#97d4af" | ||
| android:textColor="#ffffff" | ||
| /> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,50 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.InstagramDetails" | ||
| tools:showIn="@layout/activity_instagram_details" | ||
| android:background="@color/instagramColor"> | ||
| <RelativeLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/imageView2" | ||
| android:layout_width="100dp" | ||
| android:layout_height="100dp" | ||
| android:background="@drawable/lol" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Juan Dela Cruz" | ||
| android:padding="20dp" | ||
| android:textColor="@color/white" | ||
| android:textSize="30dp" | ||
| android:layout_alignBottom="@+id/imageView2" | ||
| android:layout_toEndOf="@+id/imageView2" | ||
| /> | ||
|
|
||
|
|
||
| </RelativeLayout> | ||
|
|
||
| <Button | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Logout" | ||
| android:id="@+id/button2" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginBottom="54dp" | ||
| android:layout_alignParentEnd="true"/> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,88 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.Login" | ||
| tools:showIn="@layout/activity_login" | ||
| android:background="@color/lathalaColor"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Username" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="42dp" | ||
| /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Username" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@+id/et_Username" | ||
| android:text="Password" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_below="@+id/tv_Password" | ||
| android:background="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="LATHALA" | ||
| android:textColor="#e4eae6" | ||
| android:textSize="50dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <Button | ||
| android:id="@+id/bt_Login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Login" | ||
|
|
||
| android:layout_below="@+id/et_Password" | ||
| android:layout_marginTop="20dp" | ||
| android:background="#1d9442" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginBottom="10dp" | ||
|
|
||
| /> | ||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text = "Create an account" | ||
| android:id="@+id/tv_CreateAccount" | ||
| android:layout_below="@+id/bt_Login" | ||
| android:layout_centerHorizontal="true" | ||
| android:textColor="@color/white"/> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,49 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.PhotoGallery" | ||
| tools:showIn="@layout/activity_photo_gallery" | ||
| android:orientation="vertical" | ||
| android:background="@color/lathalaColor" | ||
| > | ||
|
|
||
| <ImageView | ||
| android:id="@+id/imgView" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="200dp" | ||
| android:layout_above="@+id/btnSelectPicture" | ||
| android:layout_alignParentTop="true"> | ||
| </ImageView> | ||
|
|
||
| <Button | ||
| android:id="@+id/btnSelectPicture" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:onClick="loadImagefromGallery" | ||
| android:text="Select Picture" | ||
| android:padding="10dp" | ||
| android:layout_above="@+id/btnUploadPicture" | ||
| android:layout_alignParentEnd="true"> | ||
| </Button> | ||
|
|
||
| <Button | ||
| android:id="@+id/btnUploadPicture" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Upload Picture" | ||
| android:padding="20dp" | ||
| android:background="#1d9442" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_marginBottom="72dp"> | ||
| </Button> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,113 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context=".Publish" | ||
| tools:showIn="@layout/app_bar_main" | ||
| android:background="@color/lathalaColor"> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="PUBLISH" | ||
| android:id="@+id/textView" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_alignParentStart="true" | ||
| android:textColor="#ffffff" | ||
| android:textSize="20dp" | ||
| android:layout_marginTop="10dp" | ||
| android:layout_marginBottom="10dp" | ||
| android:textStyle="bold"/> | ||
|
|
||
| <EditText | ||
| android:layout_width="match_parent" | ||
| android:layout_height="150dp" | ||
| android:id="@+id/et_Content" | ||
| android:inputType="textMultiLine" | ||
| android:background="#ffffff" | ||
| android:hint = "Express something" | ||
| android:gravity="top" | ||
| android:layout_alignParentStart="true" | ||
| android:padding="10dp" | ||
| android:layout_below="@+id/textView" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <Button | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="PUBLISH" | ||
| android:id="@+id/button" | ||
| android:layout_below="@+id/switch3" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_alignParentEnd="true" | ||
| android:background="#1d9442" | ||
| android:textColor="@color/white" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <Switch | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Facebook " | ||
| android:textColor="@color/white" | ||
| android:id="@+id/switch1" | ||
| android:layout_below="@+id/et_Content" | ||
| android:layout_alignParentStart="true" | ||
| android:checked="true" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <Switch | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Twitter " | ||
| android:textColor="@color/white" | ||
| android:id="@+id/switch2" | ||
| android:layout_below="@+id/switch1" | ||
| android:layout_alignParentStart="true" | ||
| android:checked="true" | ||
| android:layout_marginTop="10dp" | ||
| /> | ||
|
|
||
| <Switch | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Instagram " | ||
| android:textColor="@color/white" | ||
| android:id="@+id/switch3" | ||
| android:layout_below="@+id/switch2" | ||
| android:layout_alignParentStart="true" | ||
| android:checked="true" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <Button | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Add Photo" | ||
| android:id="@+id/bt_AddPhoto" | ||
| android:layout_below="@+id/et_Content" | ||
| android:layout_alignParentEnd="true" | ||
| android:background="#69796e" | ||
| android:textColor="#ffffff" | ||
|
|
||
|
|
||
|
|
||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <Button | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Take Photo" | ||
| android:id="@+id/bt_TakePhoto" | ||
| android:background="#69796e" | ||
| android:textColor="#ffffff" | ||
| android:layout_alignBottom="@+id/switch3" | ||
| android:layout_alignStart="@+id/bt_AddPhoto" /> | ||
|
|
||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,77 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.Twitter" | ||
| tools:showIn="@layout/activity_twitter" | ||
| android:background="@color/twitterColor"> | ||
| <TextView | ||
| android:id="@+id/tv_About" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Username" | ||
| android:textColor="#ffffff" | ||
| android:layout_below="@+id/Logo" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Username" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="#ffffff" | ||
| android:layout_below="@+id/tv_About" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginTop="10dp" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tv_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@+id/et_Username" | ||
| android:text="Password" | ||
| android:textColor="#ffffff" | ||
| android:layout_marginTop="10dp"/> | ||
|
|
||
| <EditText | ||
| android:id="@+id/et_Password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentEnd="true" | ||
| android:layout_below="@+id/tv_Password" | ||
| android:background="#ffffff" | ||
| android:layout_marginTop="10dp" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/Logo" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="TWITTER" | ||
| android:textColor="#ffffff" | ||
| android:textSize="50dp" | ||
| android:textStyle="bold" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="42dp" /> | ||
|
|
||
| <Button | ||
| android:id="@+id/bt_Login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Login" | ||
| android:layout_below="@+id/et_Password" | ||
| android:layout_marginTop="20dp" | ||
| android:background="#f9701a" | ||
| android:textColor="#ffffff" | ||
| /> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,51 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
| tools:context="com.example.glenn.lathalanavigation.TwitterDetails" | ||
| tools:showIn="@layout/activity_twitter_details" | ||
| android:background="@color/twitterColor"> | ||
|
|
||
| <RelativeLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/imageView2" | ||
| android:layout_width="100dp" | ||
| android:layout_height="100dp" | ||
| android:background="@drawable/lol" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Juan Dela Cruz" | ||
| android:padding="20dp" | ||
| android:textColor="@color/white" | ||
| android:textSize="30dp" | ||
| android:layout_alignBottom="@+id/imageView2" | ||
| android:layout_toEndOf="@+id/imageView2" | ||
| /> | ||
|
|
||
|
|
||
| </RelativeLayout> | ||
|
|
||
| <Button | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:text="Logout" | ||
| android:id="@+id/button2" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_marginBottom="54dp" | ||
| android:layout_alignParentEnd="true"/> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="@dimen/nav_header_height" | ||
| android:background="@drawable/side_nav_bar" | ||
| android:gravity="bottom" | ||
| android:orientation="vertical" | ||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| android:theme="@style/ThemeOverlay.AppCompat.Dark"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/imageView" | ||
| android:layout_width="100dp" | ||
| android:layout_height="50dp" | ||
| android:src="@drawable/lol" /> | ||
|
|
||
| <TextView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:paddingTop="@dimen/nav_header_vertical_spacing" | ||
| android:text="LATHALA" | ||
| android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/tvDescription" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Your Social Media App" /> | ||
|
|
||
| </LinearLayout> |
| @@ -0,0 +1,37 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <group android:checkableBehavior="single"> | ||
| <item | ||
| android:id="@+id/nav_publish" | ||
| android:icon="@drawable/ic_menu_manage" | ||
| android:title="Publish" /> | ||
| <item | ||
| android:id="@+id/nav_facebook" | ||
| android:icon="@drawable/ic_menu_camera" | ||
| android:title="Facebook" /> | ||
| <item | ||
| android:id="@+id/nav_twitter" | ||
| android:icon="@drawable/ic_menu_gallery" | ||
| android:title="Twitter" /> | ||
| <item | ||
| android:id="@+id/nav_instagram" | ||
| android:icon="@drawable/ic_menu_slideshow" | ||
| android:title="Instagram" /> | ||
|
|
||
| </group> | ||
|
|
||
| <item android:title="More Settings"> | ||
| <menu> | ||
| <item | ||
| android:id="@+id/nav_Logout" | ||
| android:icon="@drawable/ic_menu_share" | ||
| android:title="Logout" /> | ||
| <item | ||
| android:id="@+id/nav_About" | ||
| android:icon="@drawable/ic_menu_send" | ||
| android:title="About" /> | ||
| </menu> | ||
| </item> | ||
|
|
||
| </menu> |
| @@ -0,0 +1,27 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
| <item | ||
| android:id="@+id/report_bug" | ||
| android:orderInCategory="100" | ||
| android:title="Report a bug" | ||
| app:showAsAction="never" /> | ||
|
|
||
| <item | ||
| android:id="@+id/review" | ||
| android:orderInCategory="100" | ||
| android:title="Review Us" | ||
| app:showAsAction="never" /> | ||
|
|
||
| <item | ||
| android:id="@+id/sponsor" | ||
| android:orderInCategory="100" | ||
| android:title="Sponsor Us" | ||
| app:showAsAction="never" /> | ||
|
|
||
| <item | ||
| android:id="@+id/recommend" | ||
| android:orderInCategory="100" | ||
| android:title="Recommend Us" | ||
| app:showAsAction="never" /> | ||
| </menu> |
| @@ -0,0 +1,9 @@ | ||
| <resources>> | ||
|
|
||
| <style name="AppTheme.NoActionBar"> | ||
| <item name="windowActionBar">false</item> | ||
| <item name="windowNoTitle">true</item> | ||
| <item name="android:windowDrawsSystemBarBackgrounds">true</item> | ||
| <item name="android:statusBarColor">@android:color/transparent</item> | ||
| </style> | ||
| </resources> |
| @@ -0,0 +1,6 @@ | ||
| <resources> | ||
| <!-- Example customization of dimensions originally defined in res/values/dimens.xml | ||
| (such as screen margins) for screens with more than 820dp of available width. This | ||
| would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> | ||
| <dimen name="activity_horizontal_margin">64dp</dimen> | ||
| </resources> |
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <color name="colorPrimary">#3F51B5</color> | ||
| <color name="colorPrimaryDark">#303F9F</color> | ||
| <color name="colorAccent">#FF4081</color> | ||
| <color name="facebookColor">#3b5998</color> | ||
| <color name="instagramColor">#125688</color> | ||
| <color name="twitterColor">#55acee</color> | ||
| <color name="white">#ffffff</color> | ||
|
|
||
| <color name="lathalaColor">#99baa3</color> | ||
|
|
||
|
|
||
| </resources> |
| @@ -0,0 +1,9 @@ | ||
| <resources> | ||
| <!-- Default screen margins, per the Android Design guidelines. --> | ||
| <dimen name="nav_header_vertical_spacing">16dp</dimen> | ||
| <dimen name="nav_header_height">160dp</dimen> | ||
| <!-- Default screen margins, per the Android Design guidelines. --> | ||
| <dimen name="activity_horizontal_margin">16dp</dimen> | ||
| <dimen name="activity_vertical_margin">16dp</dimen> | ||
| <dimen name="fab_margin">16dp</dimen> | ||
| </resources> |
| @@ -0,0 +1,8 @@ | ||
| <resources xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item name="ic_menu_camera" type="drawable">@android:drawable/ic_menu_camera</item> | ||
| <item name="ic_menu_gallery" type="drawable">@android:drawable/ic_menu_gallery</item> | ||
| <item name="ic_menu_slideshow" type="drawable">@android:drawable/ic_menu_slideshow</item> | ||
| <item name="ic_menu_manage" type="drawable">@android:drawable/ic_menu_manage</item> | ||
| <item name="ic_menu_share" type="drawable">@android:drawable/ic_menu_share</item> | ||
| <item name="ic_menu_send" type="drawable">@android:drawable/ic_menu_send</item> | ||
| </resources> |
| @@ -0,0 +1,20 @@ | ||
| <resources> | ||
| <string name="app_name">LathalaNavigation</string> | ||
|
|
||
| <string name="navigation_drawer_open">Open navigation drawer</string> | ||
| <string name="navigation_drawer_close">Close navigation drawer</string> | ||
|
|
||
| <string name="action_settings">Settings</string> | ||
| <string name="title_activity_home">Home</string> | ||
| <string name="title_activity_facebook">Facebook</string> | ||
| <string name="title_activity_twitter">Twitter</string> | ||
| <string name="title_activity_instagram">Instagram</string> | ||
| <string name="title_activity_login">Login</string> | ||
| <string name="title_activity_create_account">CreateAccount</string> | ||
| <string name="title_activity_about">About</string> | ||
| <string name="title_activity_photo_gallery">PhotoGallery</string> | ||
| <string name="title_activity_facebook_details">FacebookDetails</string> | ||
| <string name="title_activity_twitter_details">TwitterDetails</string> | ||
| <string name="title_activity_instagram_details">InstagramDetails</string> | ||
|
|
||
| </resources> |
| @@ -0,0 +1,20 @@ | ||
| <resources> | ||
|
|
||
| <!-- Base application theme. --> | ||
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
| <!-- Customize your theme here. --> | ||
| <item name="colorPrimary">@color/colorPrimary</item> | ||
| <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
| <item name="colorAccent">@color/colorAccent</item> | ||
| </style> | ||
|
|
||
| <style name="AppTheme.NoActionBar"> | ||
| <item name="windowActionBar">false</item> | ||
| <item name="windowNoTitle">true</item> | ||
| </style> | ||
|
|
||
| <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> | ||
|
|
||
| <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> | ||
|
|
||
| </resources> |
| @@ -0,0 +1,15 @@ | ||
| package com.example.glenn.lathalanavigation; | ||
|
|
||
| import org.junit.Test; | ||
|
|
||
| import static org.junit.Assert.*; | ||
|
|
||
| /** | ||
| * To work on unit tests, switch the Test Artifact in the Build Variants view. | ||
| */ | ||
| public class ExampleUnitTest { | ||
| @Test | ||
| public void addition_isCorrect() throws Exception { | ||
| assertEquals(4, 2 + 2); | ||
| } | ||
| } |
| @@ -0,0 +1,23 @@ | ||
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
|
||
| buildscript { | ||
| repositories { | ||
| jcenter() | ||
| } | ||
| dependencies { | ||
| classpath 'com.android.tools.build:gradle:1.5.0' | ||
|
|
||
| // NOTE: Do not place your application dependencies here; they belong | ||
| // in the individual module build.gradle files | ||
| } | ||
| } | ||
|
|
||
| allprojects { | ||
| repositories { | ||
| jcenter() | ||
| } | ||
| } | ||
|
|
||
| task clean(type: Delete) { | ||
| delete rootProject.buildDir | ||
| } |
| @@ -0,0 +1,18 @@ | ||
| # Project-wide Gradle settings. | ||
|
|
||
| # IDE (e.g. Android Studio) users: | ||
| # Gradle settings configured through the IDE *will override* | ||
| # any settings specified in this file. | ||
|
|
||
| # For more details on how to configure your build environment visit | ||
| # http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
|
||
| # Specifies the JVM arguments used for the daemon process. | ||
| # The setting is particularly useful for tweaking memory settings. | ||
| # Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
| # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
|
||
| # When configured, Gradle will run in incubating parallel mode. | ||
| # This option should only be used with decoupled projects. More details, visit | ||
| # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
| # org.gradle.parallel=true |
| @@ -0,0 +1,6 @@ | ||
| #Wed Oct 21 11:34:03 PDT 2015 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip |
| @@ -0,0 +1,160 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| ############################################################################## | ||
| ## | ||
| ## Gradle start up script for UN*X | ||
| ## | ||
| ############################################################################## | ||
|
|
||
| # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||
| DEFAULT_JVM_OPTS="" | ||
|
|
||
| APP_NAME="Gradle" | ||
| APP_BASE_NAME=`basename "$0"` | ||
|
|
||
| # Use the maximum available, or set MAX_FD != -1 to use that value. | ||
| MAX_FD="maximum" | ||
|
|
||
| warn ( ) { | ||
| echo "$*" | ||
| } | ||
|
|
||
| die ( ) { | ||
| echo | ||
| echo "$*" | ||
| echo | ||
| exit 1 | ||
| } | ||
|
|
||
| # OS specific support (must be 'true' or 'false'). | ||
| cygwin=false | ||
| msys=false | ||
| darwin=false | ||
| case "`uname`" in | ||
| CYGWIN* ) | ||
| cygwin=true | ||
| ;; | ||
| Darwin* ) | ||
| darwin=true | ||
| ;; | ||
| MINGW* ) | ||
| msys=true | ||
| ;; | ||
| esac | ||
|
|
||
| # Attempt to set APP_HOME | ||
| # Resolve links: $0 may be a link | ||
| PRG="$0" | ||
| # Need this for relative symlinks. | ||
| while [ -h "$PRG" ] ; do | ||
| ls=`ls -ld "$PRG"` | ||
| link=`expr "$ls" : '.*-> \(.*\)$'` | ||
| if expr "$link" : '/.*' > /dev/null; then | ||
| PRG="$link" | ||
| else | ||
| PRG=`dirname "$PRG"`"/$link" | ||
| fi | ||
| done | ||
| SAVED="`pwd`" | ||
| cd "`dirname \"$PRG\"`/" >/dev/null | ||
| APP_HOME="`pwd -P`" | ||
| cd "$SAVED" >/dev/null | ||
|
|
||
| CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar | ||
|
|
||
| # Determine the Java command to use to start the JVM. | ||
| if [ -n "$JAVA_HOME" ] ; then | ||
| if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
| # IBM's JDK on AIX uses strange locations for the executables | ||
| JAVACMD="$JAVA_HOME/jre/sh/java" | ||
| else | ||
| JAVACMD="$JAVA_HOME/bin/java" | ||
| fi | ||
| if [ ! -x "$JAVACMD" ] ; then | ||
| die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME | ||
| Please set the JAVA_HOME variable in your environment to match the | ||
| location of your Java installation." | ||
| fi | ||
| else | ||
| JAVACMD="java" | ||
| which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
| Please set the JAVA_HOME variable in your environment to match the | ||
| location of your Java installation." | ||
| fi | ||
|
|
||
| # Increase the maximum file descriptors if we can. | ||
| if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then | ||
| MAX_FD_LIMIT=`ulimit -H -n` | ||
| if [ $? -eq 0 ] ; then | ||
| if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then | ||
| MAX_FD="$MAX_FD_LIMIT" | ||
| fi | ||
| ulimit -n $MAX_FD | ||
| if [ $? -ne 0 ] ; then | ||
| warn "Could not set maximum file descriptor limit: $MAX_FD" | ||
| fi | ||
| else | ||
| warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" | ||
| fi | ||
| fi | ||
|
|
||
| # For Darwin, add options to specify how the application appears in the dock | ||
| if $darwin; then | ||
| GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" | ||
| fi | ||
|
|
||
| # For Cygwin, switch paths to Windows format before running java | ||
| if $cygwin ; then | ||
| APP_HOME=`cygpath --path --mixed "$APP_HOME"` | ||
| CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` | ||
| JAVACMD=`cygpath --unix "$JAVACMD"` | ||
|
|
||
| # We build the pattern for arguments to be converted via cygpath | ||
| ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` | ||
| SEP="" | ||
| for dir in $ROOTDIRSRAW ; do | ||
| ROOTDIRS="$ROOTDIRS$SEP$dir" | ||
| SEP="|" | ||
| done | ||
| OURCYGPATTERN="(^($ROOTDIRS))" | ||
| # Add a user-defined pattern to the cygpath arguments | ||
| if [ "$GRADLE_CYGPATTERN" != "" ] ; then | ||
| OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" | ||
| fi | ||
| # Now convert the arguments - kludge to limit ourselves to /bin/sh | ||
| i=0 | ||
| for arg in "$@" ; do | ||
| CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` | ||
| CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option | ||
|
|
||
| if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition | ||
| eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` | ||
| else | ||
| eval `echo args$i`="\"$arg\"" | ||
| fi | ||
| i=$((i+1)) | ||
| done | ||
| case $i in | ||
| (0) set -- ;; | ||
| (1) set -- "$args0" ;; | ||
| (2) set -- "$args0" "$args1" ;; | ||
| (3) set -- "$args0" "$args1" "$args2" ;; | ||
| (4) set -- "$args0" "$args1" "$args2" "$args3" ;; | ||
| (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | ||
| (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | ||
| (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | ||
| (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; | ||
| (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; | ||
| esac | ||
| fi | ||
|
|
||
| # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules | ||
| function splitJvmOpts() { | ||
| JVM_OPTS=("$@") | ||
| } | ||
| eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS | ||
| JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" | ||
|
|
||
| exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" |
| @@ -0,0 +1,90 @@ | ||
| @if "%DEBUG%" == "" @echo off | ||
| @rem ########################################################################## | ||
| @rem | ||
| @rem Gradle startup script for Windows | ||
| @rem | ||
| @rem ########################################################################## | ||
|
|
||
| @rem Set local scope for the variables with windows NT shell | ||
| if "%OS%"=="Windows_NT" setlocal | ||
|
|
||
| @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||
| set DEFAULT_JVM_OPTS= | ||
|
|
||
| set DIRNAME=%~dp0 | ||
| if "%DIRNAME%" == "" set DIRNAME=. | ||
| set APP_BASE_NAME=%~n0 | ||
| set APP_HOME=%DIRNAME% | ||
|
|
||
| @rem Find java.exe | ||
| if defined JAVA_HOME goto findJavaFromJavaHome | ||
|
|
||
| set JAVA_EXE=java.exe | ||
| %JAVA_EXE% -version >NUL 2>&1 | ||
| if "%ERRORLEVEL%" == "0" goto init | ||
|
|
||
| echo. | ||
| echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
| echo. | ||
| echo Please set the JAVA_HOME variable in your environment to match the | ||
| echo location of your Java installation. | ||
|
|
||
| goto fail | ||
|
|
||
| :findJavaFromJavaHome | ||
| set JAVA_HOME=%JAVA_HOME:"=% | ||
| set JAVA_EXE=%JAVA_HOME%/bin/java.exe | ||
|
|
||
| if exist "%JAVA_EXE%" goto init | ||
|
|
||
| echo. | ||
| echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% | ||
| echo. | ||
| echo Please set the JAVA_HOME variable in your environment to match the | ||
| echo location of your Java installation. | ||
|
|
||
| goto fail | ||
|
|
||
| :init | ||
| @rem Get command-line arguments, handling Windowz variants | ||
|
|
||
| if not "%OS%" == "Windows_NT" goto win9xME_args | ||
| if "%@eval[2+2]" == "4" goto 4NT_args | ||
|
|
||
| :win9xME_args | ||
| @rem Slurp the command line arguments. | ||
| set CMD_LINE_ARGS= | ||
| set _SKIP=2 | ||
|
|
||
| :win9xME_args_slurp | ||
| if "x%~1" == "x" goto execute | ||
|
|
||
| set CMD_LINE_ARGS=%* | ||
| goto execute | ||
|
|
||
| :4NT_args | ||
| @rem Get arguments from the 4NT Shell from JP Software | ||
| set CMD_LINE_ARGS=%$ | ||
|
|
||
| :execute | ||
| @rem Setup the command line | ||
|
|
||
| set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | ||
|
|
||
| @rem Execute Gradle | ||
| "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% | ||
|
|
||
| :end | ||
| @rem End local scope for the variables with windows NT shell | ||
| if "%ERRORLEVEL%"=="0" goto mainEnd | ||
|
|
||
| :fail | ||
| rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | ||
| rem the _cmd.exe /c_ return code! | ||
| if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 | ||
| exit /b 1 | ||
|
|
||
| :mainEnd | ||
| if "%OS%"=="Windows_NT" endlocal | ||
|
|
||
| :omega |
| @@ -0,0 +1 @@ | ||
| include ':app' |