Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Create ContactUs page in android

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 163
    Comment on it

    In the below code I have created ContactUs page. Here first I have added images in drawable folder, created Scrollview, ImageView, TextView in activity_contactus.xml layout. And I have used OnClickListener method for using phone no, tweeter and mail. See the below code it will clearly describe you how to create ContactUs page .

    Step(1)-ContactusActivity-

    public class ContactusActivity extends AppCompatActivity {
        private LinearLayout llGeneralEnquires, llIanShepherdson, llClausVistesen, llAndresAbadia, llSamuelTombs;
        private RelativeLayout rlGeneralPhoneno, rlIanPhoneno, rlClausPhoneno, rlAndresPhoneno;
        private RelativeLayout rlGeneralMessage, rlIanMessage, rlClausMessage, rlAndresMessage;
        private RelativeLayout rlGeneralTweet, rlIanTweet, rlClausTweet, rlAndresTweet;
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_contactus);
    
            llGeneralEnquires = (LinearLayout) findViewById(R.id.llGeneralEnquires);
            llIanShepherdson = (LinearLayout) findViewById(R.id.llIanShepherdson);
            llClausVistesen = (LinearLayout) findViewById(R.id.llClausVistesen);
            llAndresAbadia = (LinearLayout) findViewById(R.id.llAndresAbadia);
            llSamuelTombs = (LinearLayout) findViewById(R.id.llSamuelTombs);
    
    
            llGeneralEnquires.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    generalEnquires();
                }
            });
    
            llIanShepherdson.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    ianShepherdson();
                }
            });
    
    
            llClausVistesen.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    clausVistesen();
                }
            });
    
            llAndresAbadia.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    andresAbadia();
                }
            });
    
            llSamuelTombs.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    samuelTombs();
                }
            });
    
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setHomeButtonEnabled(true);
        }
    
        private void generalEnquires(){
    
            final Dialog dialog = new Dialog(ContactusActivity.this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.contactus_custom_dialog);
            dialog.setTitle(null);
    
            TextView tvHeading=(TextView)dialog.findViewById(R.id.tvHeading);
            TextView tvPhoneno=(TextView)dialog.findViewById(R.id.tvPhoneno);
            TextView tvMailid=(TextView)dialog.findViewById(R.id.tvMailid);
            TextView tvTweet=(TextView)dialog.findViewById(R.id.tvTweet);
    
            tvHeading.setText("GENERAL ENQUIRES");
            tvPhoneno.setText("+19146103830");
            tvMailid.setText("info@pantheonmacro.com");
            tvTweet.setText("@PantheonMacro");
    
            RelativeLayout rlPhoneno = (RelativeLayout)dialog.findViewById(R.id.rlPhoneno);
            RelativeLayout rlMessage = (RelativeLayout)dialog.findViewById(R.id.rlMessage);
            RelativeLayout rlTweet = (RelativeLayout)dialog.findViewById(R.id.rlTweet);
    
            rlPhoneno.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_DIAL);
                    intent.setData(Uri.parse("tel:+19146103830"));
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlMessage.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.tvGeneral_mail)});
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlTweet.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
    
                    try {
                        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/PantheonMacro"));
                        startActivity(intent);
                        dialog.dismiss();
                    } catch (Exception e) {
                        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/PantheonMacro"));
                        startActivity(intent);
                        dialog.dismiss();
                    }
                }
            });
    
            dialog.show();
        }
    
    
        private void ianShepherdson(){
    
            final Dialog dialog = new Dialog(ContactusActivity.this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    
            dialog.setContentView(R.layout.contactus_custom_dialog);
            dialog.setTitle(null);
    
            TextView tvHeading=(TextView)dialog.findViewById(R.id.tvHeading);
            TextView tvSubHeading=(TextView)dialog.findViewById(R.id.tvSubHeading);
            TextView tvPhoneno=(TextView)dialog.findViewById(R.id.tvPhoneno);
            TextView tvMailid=(TextView)dialog.findViewById(R.id.tvMailid);
            TextView tvTweet=(TextView)dialog.findViewById(R.id.tvTweet);
    
            tvHeading.setText("IAN SHEPHERDSON");
            tvSubHeading.setText("(Chief U.S. Economist)");
            tvPhoneno.setText("+19146103835");
            tvMailid.setText("ian@pantheonmacro.com");
            tvTweet.setText("@IanShepherdson");
    
            RelativeLayout rlPhoneno = (RelativeLayout)dialog.findViewById(R.id.rlPhoneno);
            RelativeLayout rlMessage = (RelativeLayout)dialog.findViewById(R.id.rlMessage);
            RelativeLayout rlTweet = (RelativeLayout)dialog.findViewById(R.id.rlTweet);
    
            rlPhoneno.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_DIAL);
                    intent.setData(Uri.parse("tel:+19146103835"));
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlMessage.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.tvIan_mail)});
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlTweet.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = null;
                    try {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/ianShepherdson")));
                        dialog.dismiss();
                    } catch (Exception e) {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/ianShepherdson")));
                        dialog.dismiss();
                    }
                }
            });
    
            dialog.show();
        }
    
    
        private void clausVistesen(){
            final Dialog dialog = new Dialog(ContactusActivity.this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.contactus_custom_dialog);
            dialog.setTitle(null);
    
            TextView tvHeading=(TextView)dialog.findViewById(R.id.tvHeading);
            TextView tvSubHeading=(TextView)dialog.findViewById(R.id.tvSubHeading);
            TextView tvPhoneno=(TextView)dialog.findViewById(R.id.tvPhoneno);
            TextView tvMailid=(TextView)dialog.findViewById(R.id.tvMailid);
            TextView tvTweet=(TextView)dialog.findViewById(R.id.tvTweet);
    
            tvHeading.setText("CLAUS VISTESEN");
            tvSubHeading.setText("(Chief Eurozone Economist)");
            tvPhoneno.setText("+441912600308");
            tvMailid.setText("claus@pantheonmacro.com");
            tvTweet.setText("@ClausVistesen");
    
            RelativeLayout rlPhoneno = (RelativeLayout)dialog.findViewById(R.id.rlPhoneno);
            RelativeLayout rlMessage = (RelativeLayout)dialog.findViewById(R.id.rlMessage);
            RelativeLayout rlTweet = (RelativeLayout)dialog.findViewById(R.id.rlTweet);
    
            rlPhoneno.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_DIAL);
                    intent.setData(Uri.parse("tel:+441912600308"));
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlMessage.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.tvClaus_mail)});
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlTweet.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = null;
                    try {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/clausVistesen")));
                        dialog.dismiss();
                    } catch (Exception e) {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/clausVistesen")));
                        dialog.dismiss();
                    }
                }
            });
    
            dialog.show();
        }
    
    
        private void andresAbadia(){
    
            final Dialog dialog = new Dialog(ContactusActivity.this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.contactus_custom_dialog);
            dialog.setTitle(null);
    
            TextView tvHeading=(TextView)dialog.findViewById(R.id.tvHeading);
            TextView tvSubHeading=(TextView)dialog.findViewById(R.id.tvSubHeading);
            TextView tvPhoneno=(TextView)dialog.findViewById(R.id.tvPhoneno);
            TextView tvMailid=(TextView)dialog.findViewById(R.id.tvMailid);
            TextView tvTweet=(TextView)dialog.findViewById(R.id.tvTweet);
    
            tvHeading.setText("ANDRES ABADIA");
            tvSubHeading.setText("(Senior International Economist)");
            tvPhoneno.setText("+441912600309");
            tvMailid.setText("andres@pantheonmacro.com");
            tvTweet.setText("@Andres__Abadia");
    
            RelativeLayout rlPhoneno = (RelativeLayout)dialog.findViewById(R.id.rlPhoneno);
            RelativeLayout rlMessage = (RelativeLayout)dialog.findViewById(R.id.rlMessage);
            RelativeLayout rlTweet = (RelativeLayout)dialog.findViewById(R.id.rlTweet);
    
            rlPhoneno.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_DIAL);
                    intent.setData(Uri.parse("tel:+441912600309"));
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlMessage.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.tvAndres_mail)});
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlTweet.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = null;
                    try {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/andres__abadia")));
                        dialog.dismiss();
                    } catch (Exception e) {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/andres__abadia")));
                        dialog.dismiss();
                    }
                }
            });
    
            dialog.show();
        }
    
        private void samuelTombs(){
    
            final Dialog dialog = new Dialog(ContactusActivity.this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.contactus_custom_dialog);
            dialog.setTitle(null);
    
            TextView tvHeading=(TextView)dialog.findViewById(R.id.tvHeading);
            TextView tvSubHeading=(TextView)dialog.findViewById(R.id.tvSubHeading);
            TextView tvPhoneno=(TextView)dialog.findViewById(R.id.tvPhoneno);
            TextView tvMailid=(TextView)dialog.findViewById(R.id.tvMailid);
            TextView tvTweet=(TextView)dialog.findViewById(R.id.tvTweet);
    
            tvHeading.setText("Samuel Tombs");
            tvSubHeading.setText("(Senior U.K. Economist)");
            tvPhoneno.setText("+442037447430");
            tvMailid.setText("samuel@pantheonmacro.com");
            tvTweet.setText("@SamuelTombs");
    
            RelativeLayout rlPhoneno = (RelativeLayout)dialog.findViewById(R.id.rlPhoneno);
            RelativeLayout rlMessage = (RelativeLayout)dialog.findViewById(R.id.rlMessage);
            RelativeLayout rlTweet = (RelativeLayout)dialog.findViewById(R.id.rlTweet);
    
            rlPhoneno.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_DIAL);
                    intent.setData(Uri.parse("tel:+442037447430"));
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlMessage.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.tvSamuel_mail)});
                    startActivity(intent);
                    dialog.dismiss();
                }
            });
    
            rlTweet.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = null;
                    try {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/samueltombs")));
                        dialog.dismiss();
                    } catch (Exception e) {
                        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com" + "/samueltombs")));
                        dialog.dismiss();
                    }
                }
            });
    
            dialog.show();
        }
    
        @Override
        public boolean onCreateOptionsMenu(Menu menu) {
            // Inflate the menu; this adds items to the action bar if it is present.
            getMenuInflater().inflate(R.menu.menu_contactus, 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 == android.R.id.home) {
                finish();
            }
            return super.onOptionsItemSelected(item);
        }
    }
    

    Step(2)-activity_contactus.xml layout-

    <LinearLayout 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.pantheon.android.ui.ContactusActivity"
        android:orientation="vertical">
    
        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
    
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:orientation="horizontal"
                android:layout_weight=".7">
    
                <ImageView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:scaleType="fitXY"
                    android:adjustViewBounds="true"
                    android:src="@drawable/img2"/>
    
                <ImageView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:scaleType="fitXY"
                    android:adjustViewBounds="true"
                    android:src="@drawable/img3"/>
    
            </LinearLayout>
    
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="horizontal"
                android:weightSum="2">
    
                <LinearLayout
                    android:id="@+id/llIanShepherdson"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:background="#E9F9FE">
    
                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="vertical"
                        android:weightSum="1">
    
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".35"
                            android:orientation="vertical">
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvIan_text"
                                android:textSize="@dimen/ian_textsize"
                                android:textColor="@color/text_headingcolor"
                                android:textStyle="bold"
                                android:gravity="center_horizontal"
                                android:layout_marginLeft="5dp"/>
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvIan_subtext"
                                android:textSize="@dimen/ian_subtextsize"
                                android:textColor="@color/text_headingcolor"
                                android:layout_marginLeft="@dimen/ian_marginleft" />
    
                         </LinearLayout>
    
                    <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".65"
                            android:orientation="vertical">
    
                        <RelativeLayout
                            android:id="@+id/rlIanPhoneno"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="@dimen/ian_marginleft">
    
                            <ImageView
                                android:id="@+id/ivIanPhoneno"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:src="@drawable/tele"
                                android:layout_centerVertical="true" />
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_toRightOf="@+id/ivIanPhoneno"
                                android:text="@string/tvIan_Phoneno"
                                android:layout_marginLeft="@dimen/ian_marginleft"/>
    
                        </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlIanMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/ian_marginleft">
    
                        <ImageView
                            android:id="@+id/ivIanMessage"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/msg"
                            android:layout_marginTop="@dimen/ian_margintop"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivIanMessage"
                            android:text="@string/tvIan_mail"
                            android:layout_marginLeft="@dimen/ian_marginleft" />
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlIanTweet"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/ian_marginleft">
    
                        <ImageView
                            android:id="@+id/ivIanTweet"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tweet"
                            android:layout_centerVertical="true"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivIanTweet"
                            android:text="@string/tvIan_tweet"
                            android:layout_marginLeft="@dimen/ian_marginleft"/>
    
                     </RelativeLayout>
                     </LinearLayout>
    
                </LinearLayout>
    
                </LinearLayout>
    
                <LinearLayout
                    android:id="@+id/llClausVistesen"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:background="#E0E4E5">
    
                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="vertical"
                        android:weightSum="1">
    
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".35"
                            android:orientation="vertical">
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvClaus_text"
                                android:textSize="@dimen/clause_textsize"
                                android:textColor="@color/text_headingcolor"
                                android:textStyle="bold"
                                android:layout_marginLeft="@dimen/clause_marginleft" />
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvClaus_subtext"
                                android:textSize="@dimen/clause_subtextsize"
                                android:textColor="@color/text_headingcolor"
                                android:layout_marginLeft="@dimen/clause_marginleft"
                                android:layout_marginRight="@dimen/clause_marginright"/>
    
                         </LinearLayout>
    
                    <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".65"
                            android:orientation="vertical">
    
                        <RelativeLayout
                            android:id="@+id/rlClausePhoneno"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="@dimen/clause_marginleft"
                            android:layout_marginRight="@dimen/clause_marginright">
    
                            <ImageView
                                android:id="@+id/ivClausePhoneno"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:src="@drawable/tele"
                                android:layout_centerVertical="true"/>
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_toRightOf="@+id/ivClausePhoneno"
                                android:text="@string/tvClaus_Phoneno"
                                android:layout_marginLeft="@dimen/clause_marginleft"
                                android:layout_centerVertical="true"/>
    
                        </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlClauseMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/clause_marginleft"
                        android:layout_marginRight="@dimen/clause_marginright">
    
                        <ImageView
                            android:id="@+id/ivClauseMessage"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/msg"
                            android:layout_marginTop="@dimen/clause_margintop"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivClauseMessage"
                            android:text="@string/tvClaus_mail"
                            android:layout_marginLeft="@dimen/clause_marginleft"/>
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlClauseTweet"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/ian_marginleft"
                        android:layout_marginRight="@dimen/ian_marginright">
    
                        <ImageView
                            android:id="@+id/ivClauseTweet"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tweet"
                            android:layout_centerVertical="true"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivClauseTweet"
                            android:text="@string/tvClaus_tweet"
                            android:layout_marginLeft="@dimen/clause_marginleft"
                            android:layout_centerVertical="true"/>
    
                    </RelativeLayout>
                    </LinearLayout>
                </LinearLayout>
    
                </LinearLayout>
    
            </LinearLayout>
    
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:orientation="horizontal"
                android:layout_weight=".7">
    
                <ImageView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:scaleType="fitXY"
                    android:adjustViewBounds="true"
                    android:src="@drawable/img4"/>
    
                <ImageView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:scaleType="fitXY"
                    android:adjustViewBounds="true"
                    android:src="@drawable/samuel"/>
    
            </LinearLayout>
    
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="horizontal"
                android:weightSum="2">
    
                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:background="#E0E4E5">
    
                    <LinearLayout
                        android:id="@+id/llAndresAbadia"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="vertical"
                        android:weightSum="1">
    
                    <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".35"
                            android:orientation="vertical">
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/tvAndres_text"
                            android:textSize="@dimen/andres_textsize"
                            android:textColor="@color/text_headingcolor"
                            android:textStyle="bold"
                            android:layout_marginLeft="@dimen/andres_marginleft"
                            android:layout_marginRight="@dimen/andres_marginright"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/tvAndres_subtext"
                            android:textSize="@dimen/andres_subtextsize"
                            android:textColor="@color/text_headingcolor"
                            android:layout_marginLeft="@dimen/andres_marginleft" />
    
                    </LinearLayout>
    
                    <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".65"
                            android:orientation="vertical">
    
                    <RelativeLayout
                        android:id="@+id/rlAndresPhoneno"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/andres_marginleft"
                        android:layout_marginRight="@dimen/andres_marginright">
    
                        <ImageView
                            android:id="@+id/ivAndresPhoneno"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tele"
                            android:layout_centerVertical="true"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivAndresPhoneno"
                            android:text="@string/tvAndres_Phoneno"
                            android:layout_marginLeft="@dimen/andres_marginleft"
                            android:layout_centerVertical="true"/>
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlClausMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/clause_marginleft"
                        android:layout_marginRight="@dimen/clause_marginright">
    
                        <ImageView
                            android:id="@+id/ivAndresMail"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/msg"
                            android:layout_marginTop="@dimen/andres_margintop"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivAndresMail"
                            android:text="@string/tvAndres_mail"
                            android:layout_marginLeft="@dimen/andres_marginleft"/>
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlAndresTweet"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/andres_marginleft"
                        android:layout_marginRight="@dimen/andres_marginright">
    
                        <ImageView
                            android:id="@+id/ivAndresTweet"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tweet"
                            android:layout_centerVertical="true"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivAndresTweet"
                            android:text="@string/tvAndres_tweet"
                            android:layout_marginLeft="@dimen/andres_marginleft"
                            android:layout_centerVertical="true"/>
    
                    </RelativeLayout>
                    </LinearLayout>
                </LinearLayout>
    
                </LinearLayout>
    
                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:background="#E9F9FE">
    
                    <LinearLayout
                        android:id="@+id/llSamuelTombs"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="vertical"
                        android:weightSum="1">
    
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".35"
                            android:orientation="vertical">
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvSamuel_text"
                                android:textSize="@dimen/samuel_textsize"
                                android:textColor="@color/text_headingcolor"
                                android:textStyle="bold"
                                android:layout_marginLeft="@dimen/samuel_marginleft"
                                android:layout_marginRight="@dimen/samuel_marginright"/>
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvSamuel_subtext"
                                android:textSize="@dimen/samuel_subtextsize"
                                android:textColor="@color/text_headingcolor"
                                android:layout_marginLeft="@dimen/samuel_marginleft"
                                android:layout_marginRight="@dimen/samuel_marginright"/>
    
                        </LinearLayout>
    
                    <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="0dp"
                            android:layout_weight=".65"
                            android:orientation="vertical">
    
                    <RelativeLayout
                        android:id="@+id/rlSamuelPhoneno"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
    
                        <ImageView
                            android:id="@+id/ivSamuelPhoneno"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tele"
                            android:layout_centerVertical="true"
                            android:layout_marginLeft="@dimen/samuel_marginleft"
                            android:layout_marginRight="@dimen/samuel_marginright"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivSamuelPhoneno"
                            android:text="@string/tvSamuel_Phoneno"
                            android:layout_marginLeft="@dimen/samuel_marginleft"
                            android:layout_centerVertical="true"/>
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlSamuelMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
    
                        <ImageView
                            android:id="@+id/ivSamuelMail"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/msg"
                            android:layout_marginTop="@dimen/samuel_margintop"
                            android:layout_marginLeft="@dimen/samuel_marginleft"
                            android:layout_marginRight="@dimen/samuel_marginright"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivSamuelMail"
                            android:text="@string/tvSamuel_mail"
                            android:layout_marginLeft="@dimen/samuel_marginleft" />
    
                    </RelativeLayout>
    
                    <RelativeLayout
                        android:id="@+id/rlSamuelTweet"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
    
                        <ImageView
                            android:id="@+id/ivSamuelTweet"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/tweet"
                            android:layout_centerVertical="true"
                            android:layout_marginLeft="@dimen/samuel_marginleft"
                            android:layout_marginRight="@dimen/samuel_marginright"/>
    
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/ivSamuelTweet"
                            android:text="@string/tvSamuel_tweet"
                            android:layout_marginLeft="@dimen/samuel_marginleft"
                            android:layout_centerVertical="true"/>
    
                    </RelativeLayout>
                    </LinearLayout>
    
                </LinearLayout>
    
            </LinearLayout>
    
        </LinearLayout>
    
            <View
                android:layout_width="wrap_content"
                android:layout_height="5dp"
                android:background="@android:color/white"/>
    
                    <LinearLayout
                        android:id="@+id/llGeneralEnquires"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="vertical"
                        android:layout_weight="1"
                        android:background="@color/general_color">
    
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:layout_weight=".25"
                            android:orientation="vertical"
                            android:layout_marginTop="15dp"
                            android:layout_marginBottom="5dp">
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/tvGeneral_text"
                                android:textSize="@dimen/general_textsize"
                                android:textColor="@color/text_headingcolor"
                                android:layout_gravity="center_horizontal"
                                android:layout_marginLeft="@dimen/general_marginleft"
                                android:layout_marginRight="@dimen/general_marginright"/>
    
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:textSize="@dimen/general_subtextsize"
                                android:textColor="@color/text_headingcolor"
                                android:layout_marginLeft="@dimen/general_marginleft"
                                android:visibility="gone"/>
    
                        </LinearLayout>
    
                        <LinearLayout
                            android:layout_width="wrap_content"
                            android:layout_height="match_parent"
                            android:layout_weight=".75"
                            android:orientation="vertical"
                            android:layout_gravity="center_horizontal">
    
                            <RelativeLayout
                                android:id="@+id/rlGeneralPhoneno"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="@dimen/general_marginleft"
                                android:layout_marginRight="@dimen/general_marginright">
    
                                <ImageView
                                    android:id="@+id/ivGeneralPhoneno"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:src="@drawable/tele"
                                    android:layout_centerVertical="true"/>
    
                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_toRightOf="@+id/ivGeneralPhoneno"
                                    android:text="@string/tvGeneral_Phoneno"
                                    android:layout_marginLeft="@dimen/general_marginleft"
                                    android:layout_centerVertical="true"/>
    
                            </RelativeLayout>
    
                            <RelativeLayout
                                android:id="@+id/rlGeneralMessage"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="@dimen/general_marginleft"
                                android:layout_marginRight="@dimen/general_marginright">
    
                                <ImageView
                                    android:id="@+id/ivGeneralMail"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:src="@drawable/msg"
                                    android:layout_marginTop="@dimen/general_margintop"
                                    android:layout_centerVertical="true"/>
    
                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_toRightOf="@+id/ivGeneralMail"
                                    android:text="@string/tvGeneral_mail"
                                    android:layout_marginLeft="@dimen/general_marginleft"
                                    android:layout_centerVertical="true"/>
    
                            </RelativeLayout>
    
                            <RelativeLayout
                                android:id="@+id/rlGeneralTweet"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="@dimen/general_marginleft"
                                android:layout_marginRight="@dimen/general_marginright"
                                android:layout_marginBottom="@dimen/general_marginbottom">
    
                                <ImageView
                                    android:id="@+id/ivGeneralTweet"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:src="@drawable/tweet"
                                    android:layout_centerVertical="true"
                                    android:layout_marginTop="@dimen/general_margintop"/>
    
                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:layout_toRightOf="@+id/ivGeneralTweet"
                                    android:text="@string/tvGeneral_tweet"
                                    android:layout_marginLeft="@dimen/general_marginleft"
                                    android:layout_centerVertical="true"/>
    
                            </RelativeLayout>
    
                        </LinearLayout>
    
                    </LinearLayout>
    
            </LinearLayout>
        </ScrollView>
    
    </LinearLayout>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: