|
layot |
|
|
|
<LinearLayout |
|
android:layout_marginTop="20dp" |
|
android:layout_width="match_parent" |
|
android:orientation="horizontal" |
|
android:layout_height="wrap_content"> |
|
<Button |
|
android:id="@+id/btLeft" |
|
android:layout_width="0dp" |
|
android:background="@drawable/left_side_button_selector" |
|
android:layout_height="wrap_content" |
|
android:minWidth="0dp" |
|
android:drawablePadding="0dp" |
|
android:textColor="@drawable/rounded_button_text_color_selector" |
|
android:text="@string/find_university_tab_text_score" |
|
android:layout_weight="1"/> |
|
<Button |
|
android:id="@+id/btRight" |
|
android:layout_width="0dp" |
|
android:drawablePadding="0dp" |
|
android:minWidth="0dp" |
|
android:background="@drawable/right_side_button_selector" |
|
android:layout_height="wrap_content" |
|
android:textColor="@drawable/rounded_button_text_color_selector" |
|
android:text="@string/find_university_tab_text_type" |
|
android:layout_weight="1"/> |
|
|
|
</LinearLayout> |
|
|
|
-------------------------------- |
|
right_side_button_selector |
|
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
|
<item android:drawable="@drawable/right_side_rounded_button_bg" android:state_activated="true"/> |
|
<item android:drawable="@drawable/right_side_rounded_button_empty_bg" android:state_activated="false"/> |
|
</selector> |
|
-------------------------------- |
|
right_side_rounded_button_bg |
|
|
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
android:shape="rectangle" android:padding="10dp"> |
|
<solid android:color="@color/greenish_teal"/> |
|
<corners android:bottomRightRadius="2dp" |
|
android:topRightRadius="2dp"/> |
|
</shape> |
|
--------------------------------- |
|
right_side_rounded_button_empty_bg |
|
|
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
android:shape="rectangle"> |
|
<solid android:color="@color/white" /> |
|
<stroke |
|
android:width="2dp" |
|
android:color="@color/greenish_teal" |
|
android:dashWidth="10dp"/> |
|
<corners |
|
android:bottomRightRadius="2dp" |
|
android:topRightRadius="2dp" /> |
|
</shape> |
|
|
|
|
|
------------------------------------- |
|
------------------------------------- |
|
------------------------------------- |
|
left_side_button_selector |
|
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
|
<item android:drawable="@drawable/left_side_rounded_button_bg" android:state_activated="true"/> |
|
<item android:drawable="@drawable/left_side_rounded_button_empty_bg" android:state_activated="false"/> |
|
|
|
</selector> |
|
------------------------------------ |
|
left_side_rounded_button_bg |
|
|
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
android:shape="rectangle" android:padding="0dp"> |
|
<solid android:color="@color/greenish_teal"/> |
|
<stroke |
|
android:width="2dp" |
|
android:color="@color/greenish_teal" |
|
android:dashWidth="10dp" /> |
|
<corners android:bottomLeftRadius="2dp" |
|
android:topLeftRadius="2dp"/> |
|
</shape> |
|
---------------------------------- |
|
left_side_rounded_button_empty_bg |
|
|
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
android:shape="rectangle"> |
|
<solid android:color="@color/white" /> |
|
<stroke |
|
android:width="2dp" |
|
android:color="@color/greenish_teal" |
|
android:dashWidth="10dp" /> |
|
<corners |
|
android:bottomLeftRadius="2dp" |
|
android:topLeftRadius="2dp" /> |
|
</shape> |