Newer
Older
Telegram / TMessagesProj / src / main / res / layout / activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">

    <org.telegram.ui.ActionBar.ActionBarLayout
        android:id="@+id/fl_content"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <View
        android:layout_width="match_parent"
        android:layout_height="0.1dp"
        android:background="@color/_D1D1D1"/>

    <RadioGroup
        android:id="@+id/rg_menu"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/_F8F8F8"
        android:orientation="horizontal"
        android:paddingBottom="2dp"
        android:paddingTop="2dp">

        <!--联系人-->
        <RadioButton
            android:id="@+id/rb_contacts"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:button="@null"
            android:drawableTop="@drawable/selector_001"
            android:gravity="center"
            android:text="联系人"
            android:textColor="?attr/menu_text_color"
            android:textSize="14dp"/>
        <!--聊天-->
        <RadioButton
            android:id="@+id/rb_chat"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:button="@null"
            android:checked="true"
            android:drawableTop="@drawable/selector_002"
            android:gravity="center"
            android:text="消息"
            android:textSize="14dp"
            android:textColor="?attr/menu_text_color"/>
        <!--我的-->
        <RadioButton
            android:id="@+id/rb_me"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:button="@null"
            android:drawableTop="@drawable/selector_003"
            android:gravity="center"
            android:text="我的"
            android:textSize="14dp"
            android:textColor="?attr/menu_text_color"/>

    </RadioGroup>

</LinearLayout>