activity_language.xml 6.48 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/whitecolor"
    tools:context=".activities.sidemenu.LanguageAct">


    <LinearLayout
        android:id="@+id/rl_toollayout"
        android:layout_width="match_parent"
        android:layout_height="@dimen/fifty_fiveheight"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/back_icon"
            android:layout_width="@dimen/forty_fivewidth"
            android:layout_height="match_parent"
            android:padding="@dimen/padding_ten"
            android:src="@drawable/icon_back"
            android:tint="@color/blackcolor" />

        <TextView
            android:id="@+id/toolbar_txt"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="center"
            android:text="@string/choose_lang"
            android:textColor="@color/blackcolor"
            android:textStyle="bold"
            android:textSize="@dimen/eighteenText_size" />

    </LinearLayout>


    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/rl_toollayout"
        android:scrollbarThumbVertical="@color/transparent"
        android:scrollbars="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="@dimen/padding_five"
            android:paddingTop="@dimen/padding_Top_ten">

            <RelativeLayout
                android:id="@+id/rl_englishlayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/fifty_height"
                android:background="@color/yellowcolor">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/layout_marginStart_twenty"
                    android:text="@string/en_lang"
                    android:textSize="@dimen/fifteenText_size"
                    android:textColor="@color/whitecolor" />

                <ImageView
                    android:layout_width="@dimen/thirty_width"
                    android:layout_height="@dimen/thirty_height"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginEnd="@dimen/layout_marginEnd_twenty"
                    android:src="@drawable/english_flag" />

            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/rl_chineselayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/fifty_height"
                android:layout_marginTop="1dp"
                android:background="@color/yellowcolor">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/layout_marginStart_twenty"
                    android:text="@string/cn_lang"
                    android:textSize="@dimen/fifteenText_size"
                    android:textColor="@color/whitecolor" />

                <ImageView
                    android:layout_width="@dimen/thirty_width"
                    android:layout_height="@dimen/thirty_height"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginEnd="@dimen/layout_marginEnd_twenty"
                    android:src="@drawable/china" />

            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/rl_frenchlayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/fifty_height"
                android:layout_marginTop="1dp"
                android:background="@color/yellowcolor">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/layout_marginStart_twenty"
                    android:text="@string/sp_lang"
                    android:textSize="@dimen/fifteenText_size"
                    android:textColor="@color/whitecolor" />

                <ImageView
                    android:layout_width="@dimen/thirty_width"
                    android:layout_height="@dimen/thirty_height"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginEnd="@dimen/layout_marginEnd_twenty"
                    android:src="@drawable/french_img" />

            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/rl_spanishlayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/fifty_height"
                android:layout_marginTop="1dp"
                android:background="@color/yellowcolor">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/layout_marginStart_twenty"
                    android:text="@string/tv_spanish"
                    android:textColor="@color/whitecolor"
                    android:textSize="@dimen/fifteenText_size" />

                <ImageView
                    android:layout_width="@dimen/thirty_width"
                    android:layout_height="@dimen/thirty_height"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginEnd="@dimen/layout_marginEnd_twenty"
                    android:src="@drawable/spain" />

            </RelativeLayout>
        </LinearLayout>
    </ScrollView>
</RelativeLayout>