Skip to content
Snippets Groups Projects
Commit 1051789c authored by kishoreraju2's avatar kishoreraju2
Browse files

Redisgned UI. Added Camera, BottomBar and split into fragments.

parent 7b1dba3f
Branches
No related tags found
No related merge requests found
Showing
with 548 additions and 53 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<GradleProjectSettings> <GradleProjectSettings>
<option name="distributionType" value="LOCAL" /> <option name="distributionType" value="LOCAL" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.14.1" /> <option name="gradleHome" value="C:\Program Files\Android\Android Studio\gradle\gradle-2.14.1" />
<option name="modules"> <option name="modules">
<set> <set>
<option value="$PROJECT_DIR$" /> <option value="$PROJECT_DIR$" />
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" /> <ConfirmationsSetting value="0" id="Remove" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -24,11 +24,14 @@ dependencies { ...@@ -24,11 +24,14 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations' exclude group: 'com.android.support', module: 'support-annotations'
}) })
compile 'com.android.support:appcompat-v7:24.2.1'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-auth:9.2.0'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.android.support:support-v4:24.2.1'
testCompile 'junit:junit:4.12'
compile 'com.roughike:bottom-bar:2.0.2'
} }
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
package="com.mapps.seproject"> package="com.mapps.seproject">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-feature android:name="android.hardware.camera2"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application <application
android:allowBackup="true" android:allowBackup="true"
...@@ -10,6 +12,16 @@ ...@@ -10,6 +12,16 @@
android:label="@string/app_name" android:label="@string/app_name"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.example.android.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"></meta-data>
</provider>
<activity android:name=".LoginActivity"> <activity android:name=".LoginActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
...@@ -18,8 +30,7 @@ ...@@ -18,8 +30,7 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".RegisterActivity" /> <activity android:name=".RegisterActivity" />
<activity android:name=".UserActivity" /> <activity android:name=".MainActivity"></activity>
<activity android:name=".ComposeMail"></activity>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
package com.mapps.seproject;
import android.app.Fragment;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import static android.app.Activity.RESULT_OK;
/**
* Created by kishore on 3/7/2017.
*/
public class CameraFragment extends Fragment {
private Uri file;
static final int REQUEST_IMAGE_CAPTURE = 1;
ImageView mImageView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_camera, container, false);
return view;
}
@Override
public void onViewCreated(View view,Bundle savedInstanceState){
super.onViewCreated(view,savedInstanceState);
getActivity().setTitle("Menu1");
}
private void dispatchTakePictureIntent() {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
try {
file = Uri.fromFile(createImageFile());
}catch (Exception e){
}
takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT,file);
if (takePictureIntent.resolveActivity(getActivity().getPackageManager()) != null) {
startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);
}
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {
Bundle extras = data.getExtras();
Bitmap imageBitmap = (Bitmap) extras.get("data");
if(imageBitmap==null){
}else {
mImageView.setImageBitmap(imageBitmap);
}
}
}
String mCurrentPhotoPath;
private File createImageFile() throws IOException {
// Create an image file name
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String imageFileName = "JPEG_" + timeStamp + "_";
File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File image = File.createTempFile(
imageFileName, /* prefix */
".jpg", /* suffix */
storageDir /* directory */
);
// Save a file: path for use with ACTION_VIEW intents
mCurrentPhotoPath = image.getAbsolutePath();
return image;
}
@Override
public void onStart(){
super.onStart();
dispatchTakePictureIntent();
}
}
package com.mapps.seproject; package com.mapps.seproject;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.Fragment;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView; import android.widget.AdapterView;
import android.widget.ArrayAdapter; import android.widget.ArrayAdapter;
import android.widget.Button; import android.widget.Button;
...@@ -16,11 +18,13 @@ import android.widget.Spinner; ...@@ -16,11 +18,13 @@ import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.google.firebase.auth.FirebaseAuth; import static android.app.Activity.RESULT_OK;
import com.google.firebase.auth.FirebaseUser;
public class ComposeMail extends AppCompatActivity implements View.OnClickListener{ /**
* Created by kishore on 3/7/2017.
*/
public class ComposeFragment extends Fragment implements View.OnClickListener{
int flag =0; int flag =0;
Button bComposeMail; Button bComposeMail;
...@@ -28,6 +32,7 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen ...@@ -28,6 +32,7 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen
TextView emailText; TextView emailText;
Button bAddImage; Button bAddImage;
View view;
Uri imageUri; Uri imageUri;
private static int RESULT_LOAD_IMAGE = 1; private static int RESULT_LOAD_IMAGE = 1;
private static int RESULT_MAIL = 2; private static int RESULT_MAIL = 2;
...@@ -35,67 +40,32 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen ...@@ -35,67 +40,32 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_compose_mail);
bComposeMail = (Button) findViewById(R.id.bComposeMail);
emailText = (TextView) findViewById(R.id.tvEmailMessage);
bAddImage = (Button) findViewById(R.id.bAddImage);
// Get user
dropdown = (Spinner) findViewById(R.id.spSelectCitiy);
String [] items = new String[]{"Coimbatore","Chennai"};
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,items);
dropdown.setAdapter(arrayAdapter);
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
view = inflater.inflate(R.layout.fragment_compose, container, false);
bComposeMail = (Button) view.findViewById(R.id.bComposeMail);
emailText = (TextView) view.findViewById(R.id.tvEmailMessage);
bAddImage = (Button) view.findViewById(R.id.bAddImage);
bAddImage.setOnClickListener(this); bAddImage.setOnClickListener(this);
bComposeMail.setOnClickListener(this); bComposeMail.setOnClickListener(this);
dropdown.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { return view;
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0:
// setCityCoimbatore();
Log.i("City: ","Coimbatore");
flag =0;
break;
case 1:
// setCityChennai();
Log.i("City:","Chennai");
flag = 1;
break;
} }
}
@Override @Override
public void onNothingSelected(AdapterView<?> parent) { public void onViewCreated(View view,Bundle savedInstanceState){
super.onViewCreated(view,savedInstanceState);
getActivity().setTitle("Menu1");
} }
});
}
public void composeEmail() { public void composeEmail() {
...@@ -139,7 +109,7 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen ...@@ -139,7 +109,7 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen
catch (android.content.ActivityNotFoundException ex) { catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(getApplicationContext(), "There is no email client installed.", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity().getBaseContext(), "There is no email client installed.", Toast.LENGTH_SHORT).show();
} }
catch (Exception e) { catch (Exception e) {
...@@ -176,50 +146,74 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen ...@@ -176,50 +146,74 @@ public class ComposeMail extends AppCompatActivity implements View.OnClickListen
} }
@Override @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) { public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && data != null) { if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && data != null) {
imageUri = data.getData(); imageUri = data.getData();
Toast.makeText(this, "Image Added. Press Compose to transfer to Mail Window", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity().getBaseContext(), "Image Added. Press Compose to transfer to Mail Window", Toast.LENGTH_SHORT).show();
} }
if(requestCode == RESULT_MAIL) {
new AlertDialog.Builder(this)
.setTitle("Select action")
.setMessage("Do you want to go back?")
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
finish();
startActivity(new Intent(getApplicationContext(),UserActivity.class));
} }
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onActivityCreated(Bundle savedInstanceState)
return; {
} super.onActivityCreated(savedInstanceState);
}).show(); try {
dropdown = (Spinner) view.findViewById(R.id.spSelectCitiy);
String[] items = new String[]{"Coimbatore", "Chennai"};
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(getActivity().getApplicationContext(), android.R.layout.simple_spinner_dropdown_item, items);
} dropdown.setAdapter(arrayAdapter);
System.out.println("Spinner Initialised");
dropdown.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0:
// setCityCoimbatore();
Log.i("City: ", "Coimbatore");
flag = 0;
break;
case 1:
// setCityChennai();
Log.i("City:", "Chennai");
flag = 1;
break;
} }
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
}
catch (Exception e) {
Log.i("Exception",e.toString());
}
}
......
...@@ -41,10 +41,11 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickLis ...@@ -41,10 +41,11 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickLis
registerText= (TextView) findViewById(R.id.textRegister); registerText= (TextView) findViewById(R.id.textRegister);
progressDialog = new ProgressDialog(this); progressDialog = new ProgressDialog(this);
firebaseAuth = FirebaseAuth.getInstance(); firebaseAuth = FirebaseAuth.getInstance();
if(firebaseAuth.getCurrentUser() != null) { if(firebaseAuth.getCurrentUser() != null) {
finish(); finish();
startActivity(new Intent(getApplicationContext(),UserActivity.class)); // If already logged in startActivity(new Intent(getApplicationContext(),MainActivity.class)); // If already logged in
...@@ -95,7 +96,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickLis ...@@ -95,7 +96,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickLis
// Successful Log In // Successful Log In
finish(); finish();
startActivity(new Intent(getApplicationContext(), UserActivity.class)); startActivity(new Intent(getApplicationContext(), MainActivity.class));
progressDialog.hide(); progressDialog.hide();
......
package com.mapps.seproject;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.support.annotation.IdRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.roughike.bottombar.BottomBar;
import com.roughike.bottombar.OnTabSelectListener;
public class MainActivity extends AppCompatActivity {
Fragment user_activity;
Fragment camera_activity;
Fragment compose_activity;
FragmentManager fragmentManager;
FragmentTransaction fragmentTransaction;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
BottomBar bottomBar = (BottomBar) findViewById(R.id.bottomBar);
bottomBar.setOnTabSelectListener(new OnTabSelectListener() {
@Override
public void onTabSelected(@IdRes int tabId) {
if (tabId == R.id.user_activity) {
user_activity = new UserActivityFragment();
fragmentManager = getFragmentManager();
fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.container,user_activity);
fragmentTransaction.commit();
}
if(tabId == R.id.camera_activity){
camera_activity = new CameraFragment();
fragmentManager = getFragmentManager();
fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.container,camera_activity);
fragmentTransaction.commit();
}
if(tabId == R.id.compose_mail){
compose_activity = new ComposeFragment();
fragmentManager = getFragmentManager();
fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.container,compose_activity);
fragmentTransaction.commit();
}
}
});
}
}
...@@ -41,7 +41,7 @@ public class RegisterActivity extends AppCompatActivity implements View.OnClickL ...@@ -41,7 +41,7 @@ public class RegisterActivity extends AppCompatActivity implements View.OnClickL
if(firebaseAuth.getCurrentUser() != null) { if(firebaseAuth.getCurrentUser() != null) {
finish(); finish();
startActivity(new Intent(getApplicationContext(),UserActivity.class)); // If user is already logged in startActivity(new Intent(getApplicationContext(),MainActivity.class)); // If user is already logged in
} }
......
package com.mapps.seproject; package com.mapps.seproject;
import android.app.ProgressDialog; import android.app.Fragment;
import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.media.Image;
import android.net.Uri; import android.net.Uri;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.AdapterView; import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button; import android.widget.Button;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser; import com.google.firebase.auth.FirebaseUser;
public class UserActivity extends AppCompatActivity implements View.OnClickListener {
public class UserActivityFragment extends Fragment {
Button bSignOut; Button bSignOut;
TextView welcome; TextView welcome;
FirebaseAuth firebaseAuth; FirebaseAuth firebaseAuth;
Button bComposeScreen; Button bComposeScreen;
View view;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
super.onCreate(savedInstanceState); // Inflate the layout for this fragment
setContentView(R.layout.activity_user); view = inflater.inflate(R.layout.fragment_user_activity, container, false);
firebaseAuth = FirebaseAuth.getInstance(); firebaseAuth = FirebaseAuth.getInstance();
if(firebaseAuth.getCurrentUser() == null) { // Incase the user hasnt logged in if(firebaseAuth.getCurrentUser() == null) { // Incase the user hasnt logged in
finish(); getActivity().finish();
startActivity(new Intent(getApplicationContext(),LoginActivity.class)); // Go back to login activity startActivity(new Intent(getActivity().getApplicationContext(),LoginActivity.class)); // Go back to login activity
} }
FirebaseUser user = firebaseAuth.getCurrentUser(); FirebaseUser user = firebaseAuth.getCurrentUser();
welcome = (TextView) findViewById(R.id.tvWelcome);
welcome = (TextView) view.findViewById(R.id.tvWelcome);
welcome.setText("Welcome "+user.getEmail()); // Get Email' welcome.setText("Welcome "+user.getEmail()); // Get Email'
bSignOut = (Button) findViewById(R.id.bSignOut); bSignOut = (Button) view.findViewById(R.id.bSignOut);
bSignOut.setOnClickListener(this); bSignOut.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Log.i("Singout","Clicked");
firebaseAuth.signOut();
getActivity().finish();
startActivity(new Intent(getActivity().getApplicationContext(),LoginActivity.class));
bComposeScreen = (Button) findViewById(R.id.bGotoCompose);
bComposeScreen.setOnClickListener(this);
} }
});
@Override
public void onClick(View v) {
if(v == bSignOut) {
return view;
}
firebaseAuth.signOut(); // sign out @Override
finish(); public void onViewCreated(View view,Bundle savedInstanceState){
startActivity(new Intent(this,LoginActivity.class)); // Go back to login activitys super.onViewCreated(view,savedInstanceState);
getActivity().setTitle("Menu1");
} }
if(v == bComposeScreen) {
finish();
startActivity(new Intent(this,ComposeMail.class));
}
}
} }
app/src/main/res/drawable/ic_favorites.png

453 B

app/src/main/res/drawable/ic_friends.png

322 B

app/src/main/res/drawable/ic_nearby.png

462 B

app/src/main/res/drawable/ic_recents.png

618 B

app/src/main/res/drawable/ic_restaurants.png

277 B

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottomBar"/>
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:background="@color/colorPrimary"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
app:bb_tabXmlResource="@xml/menu_bottombar"/>
</RelativeLayout>
<?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:id="@+id/activity_user"
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"
tools:context="com.mapps.seproject.UserActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tvWelcome"
android:textSize="24sp"
android:text="test"
android:layout_centerHorizontal="true" />
<Button
android:text="Sign Out"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/bSignOut"
android:layout_marginBottom="116dp"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true" />
<Button
android:text="Compose E-Mail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:id="@+id/bGotoCompose"
android:layout_above="@+id/bSignOut"
android:layout_alignParentStart="true" />
</RelativeLayout>
<?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"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/googleg_standard_color_18"
android:id="@+id/imageView"
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_marginStart="13dp" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.mapps.seproject.ComposeFragment">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_compose_mail" android:id="@+id/activity_compose_mail"
...@@ -8,7 +13,7 @@ ...@@ -8,7 +13,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin" android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.mapps.seproject.ComposeMail"> >
<Spinner <Spinner
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -50,3 +55,4 @@ ...@@ -50,3 +55,4 @@
</RelativeLayout> </RelativeLayout>
</FrameLayout>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment