Commit 8b889445 authored by ankitasingh's avatar ankitasingh

email activities working

parent 9e412104
<component name="libraryTable">
<library name="Gradle: javax.activation:activation:1.1@jar">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.activation/activation/1.1/e6cb541461c2834bdea3eb920f1884d1eb508b50/activation-1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.activation/activation/1.1/3697e9f67a2ed7ac5f589cff30f21173299440/activation-1.1-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Gradle: javax.mail:javax.mail-api:1.5.3@jar">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.mail/javax.mail-api/1.5.3/14bd962426927d1d34f33fb01308d7ab13168bb1/javax.mail-api-1.5.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.mail/javax.mail-api/1.5.3/5dfe6a3c457ad506df7d5a7889751637c3fcae24/javax.mail-api-1.5.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.mail/javax.mail-api/1.5.3/14c9858f18df9b013314e921040b2d42cae55f2e/javax.mail-api-1.5.3-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
This diff is collapsed.
...@@ -104,9 +104,9 @@ ...@@ -104,9 +104,9 @@
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test:core:1.2.0@aar" level="project" /> <orderEntry type="library" scope="TEST" name="Gradle: androidx.test:core:1.2.0@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test:monitor:1.2.0@aar" level="project" /> <orderEntry type="library" scope="TEST" name="Gradle: androidx.test:monitor:1.2.0@aar" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-idling-resource:3.2.0@aar" level="project" /> <orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-idling-resource:3.2.0@aar" level="project" />
<orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/mail.jar:unspecified@jar" level="project" />
<orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/activation.jar:unspecified@jar" level="project" /> <orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/activation.jar:unspecified@jar" level="project" />
<orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/additionnal.jar:unspecified@jar" level="project" /> <orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/additionnal.jar:unspecified@jar" level="project" />
<orderEntry type="library" name="Gradle: __local_aars__:/home/chikki/AndroidStudioProjects/InstiLostAndFound/app/libs/mail.jar:unspecified@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.collection:collection:1.1.0@jar" level="project" /> <orderEntry type="library" name="Gradle: androidx.collection:collection:1.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-common:2.1.0@jar" level="project" /> <orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-common:2.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.arch.core:core-common:2.1.0@jar" level="project" /> <orderEntry type="library" name="Gradle: androidx.arch.core:core-common:2.1.0@jar" level="project" />
...@@ -114,8 +114,6 @@ ...@@ -114,8 +114,6 @@
<orderEntry type="library" name="Gradle: com.squareup.picasso:picasso:2.5.2@jar" level="project" /> <orderEntry type="library" name="Gradle: com.squareup.picasso:picasso:2.5.2@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout-solver:1.1.3@jar" level="project" /> <orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout-solver:1.1.3@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.auto.value:auto-value-annotations:1.6.5@jar" level="project" /> <orderEntry type="library" name="Gradle: com.google.auto.value:auto-value-annotations:1.6.5@jar" level="project" />
<orderEntry type="library" name="Gradle: javax.mail:javax.mail-api:1.5.3@jar" level="project" />
<orderEntry type="library" name="Gradle: javax.activation:activation:1.1@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.material:material:1.0.0@aar" level="project" /> <orderEntry type="library" name="Gradle: com.google.android.material:material:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.appcompat:appcompat:1.1.0@aar" level="project" /> <orderEntry type="library" name="Gradle: androidx.appcompat:appcompat:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.cardview:cardview:1.0.0@aar" level="project" /> <orderEntry type="library" name="Gradle: androidx.cardview:cardview:1.0.0@aar" level="project" />
......
...@@ -48,6 +48,6 @@ dependencies { ...@@ -48,6 +48,6 @@ dependencies {
implementation files('libs/activation.jar') implementation files('libs/activation.jar')
implementation files('libs/additionnal.jar') implementation files('libs/additionnal.jar')
implementation files('libs/mail.jar') implementation files('libs/mail.jar')
implementation 'javax.mail:javax.mail-api:1.5.3' //implementation 'javax.mail:javax.mail-api:1.5.3'
} }
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity <activity android:name=".ItemClaim"></activity>
android:name=".ui.login.LoginActivity"
android:label="@string/title_activity_login"></activity>
<activity android:name=".NewsFeedFound" /> <activity android:name=".NewsFeedFound" />
<activity android:name=".MyPostsFoundRV" /> <activity android:name=".MyPostsFoundRV" />
<activity android:name=".RedirectMyPosts" /> <activity android:name=".RedirectMyPosts" />
......
package com.example.instilostandfound; package com.example.instilostandfound;
public class Config { public class Config {
public static final String EMAIL = ""; public static final String EMAIL = "hackoholicgirls@gmail.com";
public static final String PASSWORD = ""; public static final String PASSWORD = "hackoholicgirls123";
} }
package com.example.instilostandfound;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
public class ItemClaim extends AppCompatActivity implements View.OnClickListener{
private String username =null;
CreateFoundObject objectfound;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_item_claim);
findViewById(R.id.buttonClaim).setOnClickListener(this);
username = getIntent().getStringExtra("username");
objectfound = (CreateFoundObject)getIntent().getSerializableExtra("FoundObject");
Log.v("desc",objectfound.getmDescription());
((TextView)findViewById(R.id.categorycontentclaim)).setText(objectfound.getmCategory());
((TextView)findViewById(R.id.namecontentclaim)).setText(objectfound.getmTitle());
((TextView) findViewById(R.id.placecontentclaim)).setText(objectfound.getmLocation());
((TextView) findViewById(R.id.descriptioncontentclaim)).setText(objectfound.getmDescription());
((TextView) findViewById(R.id.datecontentclaim)).setText(objectfound.getDate());
ImageView camera = findViewById(R.id.imagecamclaim);
Picasso.with(ItemClaim.this).load(objectfound.getImageUrl())
.fit()
.centerCrop()
.into(camera);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.buttonClaim:
Fragment emailFragment = new emailFragment();
Bundle bundle = new Bundle();
bundle.putString("username", username);
bundle.putString("recievername", objectfound.getLDAP());
bundle.putString("itemname",objectfound.getmTitle() );
emailFragment.setArguments(bundle);
((FragmentActivity) this)
.getSupportFragmentManager()
.beginTransaction().replace(R.id.frameLayout, emailFragment)
.addToBackStack(null).commit();
break;
}
}
}
...@@ -76,7 +76,14 @@ public class NewsFeedFound extends AppCompatActivity implements NewsfeedAdaptor. ...@@ -76,7 +76,14 @@ public class NewsFeedFound extends AppCompatActivity implements NewsfeedAdaptor.
} }
@Override @Override
public void onItemClick(int position) { public void onItemClick(int position) {
Toast.makeText(this, "Normal click at position: " + position, Toast.LENGTH_SHORT).show(); Log.v("position =",String.valueOf(position));
CreateFoundObject selectedItem = mPosts.get(position);
final String selectedKey = selectedItem.getKey();
Intent intent = new Intent(NewsFeedFound.this, ItemClaim.class);
intent.putExtra("FoundObject", selectedItem);
intent.putExtra("CallingClass","MyPosts");
intent.putExtra("username",username);
startActivity(intent);
} }
} }
......
...@@ -3,12 +3,14 @@ package com.example.instilostandfound; ...@@ -3,12 +3,14 @@ package com.example.instilostandfound;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
...@@ -22,12 +24,11 @@ import android.widget.Toast; ...@@ -22,12 +24,11 @@ import android.widget.Toast;
public class emailFragment extends Fragment implements View.OnClickListener { public class emailFragment extends Fragment implements View.OnClickListener {
private EditText editTextMessage; private EditText editTextMessage;
private Button buttonSend; private Button buttonSend;
private String sName; private String username;
private String sEmail; private String senderid;
private String pName; private String recieverid;
private String bName; private String itemname;
private String bEmail; CreateFoundObject objectfound;
@Nullable @Nullable
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
...@@ -35,14 +36,14 @@ public class emailFragment extends Fragment implements View.OnClickListener { ...@@ -35,14 +36,14 @@ public class emailFragment extends Fragment implements View.OnClickListener {
editTextMessage = (EditText) v.findViewById(R.id.editTextMessage); editTextMessage = (EditText) v.findViewById(R.id.editTextMessage);
buttonSend = (Button) v.findViewById(R.id.buttonSend); buttonSend = (Button) v.findViewById(R.id.buttonSend);
buttonSend.setOnClickListener(this); buttonSend.setOnClickListener(this);
Bundle bundle = getArguments(); Bundle bundle = getArguments();
if(bundle != null){ if(bundle != null){
sName = bundle.getString("sName"); username = bundle.getString("username");
sEmail = bundle.getString("sEmail"); senderid = bundle.getString("username");
bEmail = bundle.getString("bEmail"); recieverid = bundle.getString("recievername");
bName = bundle.getString("bName"); itemname = bundle.getString("itemname");
pName = bundle.getString("pName"); // bName = bundle.getString("bName");
// pName = bundle.getString("pName");
} }
...@@ -50,10 +51,10 @@ public class emailFragment extends Fragment implements View.OnClickListener { ...@@ -50,10 +51,10 @@ public class emailFragment extends Fragment implements View.OnClickListener {
} }
private void sendEmail() { private void sendEmail() {
String email = sEmail; String email = username +"@iitb.ac.in";
String subject = "Regarding posted item in Lost and Found App " + pName; String subject = "Regarding posted item in Lost and Found App " + itemname;
String autoMsg = "\n\nThis is an auto generated email. Please do not reply to this email."; String autoMsg = "\n\nThis is an auto generated email. Please do not reply to this email.";
String message = editTextMessage.getText().toString().trim() + "\n\nsent by: " + sName + "(" + sEmail + ")\n" + autoMsg; String message = editTextMessage.getText().toString().trim() + "\n\nsent by ldap user : " + username +"@iitb.ac.in" + autoMsg;
SendMail sm = new SendMail(getActivity(), email, subject, message); SendMail sm = new SendMail(getActivity(), email, subject, message);
sm.execute(); sm.execute();
} }
...@@ -74,6 +75,12 @@ public class emailFragment extends Fragment implements View.OnClickListener { ...@@ -74,6 +75,12 @@ public class emailFragment extends Fragment implements View.OnClickListener {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
sendEmail(); sendEmail();
editTextMessage.setText(""); editTextMessage.setText("");
Intent intent = new Intent(getActivity(), NewsFeedFound.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("username", username);
startActivity(intent);
dialog.dismiss();
} }
}); });
...@@ -82,11 +89,17 @@ public class emailFragment extends Fragment implements View.OnClickListener { ...@@ -82,11 +89,17 @@ public class emailFragment extends Fragment implements View.OnClickListener {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
editTextMessage.setText(""); editTextMessage.setText("");
Toast.makeText(getActivity(),"Message Discarded", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(),"Message Discarded", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(getActivity(), NewsFeedFound.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("username", username);
startActivity(intent);
dialog.dismiss();
} }
}); });
AlertDialog ad = builder.create(); AlertDialog ad = builder.create();
ad.show(); ad.show();
} }
} }
<?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:orientation="vertical"
tools:context=".ItemClaim">
<ImageView
android:id="@+id/imagecamclaim"
android:layout_width="170dp"
android:layout_height="170dp"
android:layout_centerHorizontal="true"
android:layout_margin="20dp"
android:layout_alignParentTop="true"
android:background="@drawable/cameraup"
android:scaleType="centerCrop" />
<ProgressBar
android:id="@+id/progressbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="90dp"
android:visibility="gone"/>
<TextView
android:id="@+id/categoryclaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imagecamclaim"
android:layout_marginTop="8dp"
android:layout_marginLeft="8dp"
android:text="Category"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/categorycontentclaim"
android:layout_width="270dp"
android:layout_marginTop="8dp"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/categoryclaim"
android:layout_below="@id/imagecamclaim"
android:layout_marginLeft="20dp"
android:layout_toEndOf="@+id/categoryclaim"
android:fontFamily="sans-serif"
android:textSize="20dp"
android:textStyle="italic"/>
<TextView
android:id="@+id/nameclaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/categoryclaim"
android:layout_marginTop="25dp"
android:layout_marginLeft="8dp"
android:text="Title"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/namecontentclaim"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:layout_below="@+id/categorycontentclaim"
android:layout_marginLeft="20dp"
android:layout_marginTop="25dp"
android:layout_toEndOf="@+id/nameclaim"
android:textSize="20dp"
android:textStyle="italic"
/>
<TextView
android:id="@+id/descriptionclaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/nameclaim"
android:layout_marginTop="25dp"
android:layout_marginLeft="8dp"
android:text="Description"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/descriptioncontentclaim"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:layout_below="@+id/namecontentclaim"
android:layout_marginLeft="20dp"
android:layout_marginTop="25dp"
android:layout_toEndOf="@+id/descriptionclaim"
android:textSize="20dp"
android:textStyle="italic"/>
<TextView
android:id="@+id/placeclaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/descriptionclaim"
android:layout_marginTop="25dp"
android:layout_marginLeft="8dp"
android:text="Place"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/placecontentclaim"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:layout_below="@+id/descriptioncontentclaim"
android:layout_marginLeft="20dp"
android:layout_marginTop="25dp"
android:textSize="20dp"
android:textStyle="italic"
android:layout_toEndOf="@+id/placeclaim" />
<TextView
android:id="@+id/dateclaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/placeclaim"
android:layout_marginTop="25dp"
android:layout_marginLeft="8dp"
android:text="Date"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/datecontentclaim"
android:layout_width="230dp"
android:layout_height="wrap_content"
android:layout_below="@+id/placecontentclaim"
android:layout_marginLeft="20dp"
android:layout_marginTop="25dp"
android:textSize="20dp"
android:textStyle="italic"
android:layout_toEndOf="@+id/dateclaim" />
<Button
android:id="@+id/buttonClaim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_below="@+id/datecontentclaim"
android:layout_centerHorizontal="true"
android:layout_marginTop="25dp"
android:background="@color/colorPrimary"
android:textColor="@color/cardview_light_background"
android:paddingLeft="55dp"
android:paddingRight="55dp"
android:text="Claim" />
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<androidx.constraintlayout.widget.ConstraintLayout 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"
tools:context=".ItemDetails">
<TableLayout
android:id="@+id/item_details_table"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:layout_editor_absoluteX="50dp"
tools:layout_editor_absoluteY="50dp">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView
android:id="@+id/imagecam"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/cameraup"
android:minWidth="80dp"
android:minHeight="100dp"></ImageView>
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="114dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:text="Category" />
<TextView
android:id="@+id/category"
android:layout_width="171dp"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:text="Name" />
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="114dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:text="Place" />
<TextView
android:id="@+id/place"
android:layout_width="171dp"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="114dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:text="Description" />
<TextView
android:id="@+id/description"
android:layout_width="171dp"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="114dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:text="Date" />
<TextView
android:id="@+id/date"
android:layout_width="171dp"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="" />
</TableRow>
</TableLayout>
<Button
android:id="@+id/edit_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginLeft="32dp"
android:layout_marginBottom="24dp"
android:text="Edit"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<Button
android:id="@+id/resolve_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="32dp"
android:layout_marginRight="32dp"
android:layout_marginBottom="24dp"
android:text="Resolve Post"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
......
...@@ -7,26 +7,26 @@ ...@@ -7,26 +7,26 @@
android:background="@drawable/myposts_bg"> android:background="@drawable/myposts_bg">
<TextView <!-- <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Message" android:text="Message:"
android:textSize="25dp" android:textSize="25dp"
android:textAllCaps="true" android:textAllCaps="true"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:background="#94909297"
android:elevation="8dp" android:elevation="8dp"
android:textColor="#000000"/> android:textColor="#ffffff"/> -->
<EditText <EditText
android:id="@+id/editTextMessage" android:id="@+id/editTextMessage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:lines="4" android:lines="10"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:textColor="#1A3A1A" android:textColor="#1A3A1A"
android:hint="Type your message here"/> android:hint="Type your message here. Enter your contact details , place for meeting, etc if required"
android:textColorHint="#1A3A1A"/>
<Button <Button
android:id="@+id/buttonSend" android:id="@+id/buttonSend"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment