java - How make two or more title bars of the Main Activity? -
i want put 2 bars in 1 activity. first want put textview control switch , second on listview control switch. how that? tried adjust main title bar, have other. put 2 style files, first containing controls textview, imageview , list, , second defines single field list.
main_activity.xml
<?xml version="1.0" encoding="utf-8"?> <relativelayout 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" android:background="#000000" tools:context=".mainactivity" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:layout_marginleft="5dp" android:contentdescription="@string/desc" android:src="@drawable/ic_launcher" android:id="@+id/main" /> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:text="@string/maine" android:id="@+id/mainee" android:textcolor="#fff" android:textsize="22sp" /> <listview android:id="@+id/listview" android:layout_margintop="40dp" android:background="@drawable/border_ui" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_centerhorizontal="true" > </listview> </relativelayout>
row.xml
<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginleft="5dp" android:layout_marginright="5dp" > <imageview android:id="@+id/countryflag" android:layout_width="24dp" android:layout_height="24dp" android:layout_marginleft="5dp" android:layout_marginbottom="5dp" android:layout_marginright="15dp" android:layout_margintop="5dp" android:contentdescription="@string/desccountryflag" android:gravity="center_vertical" /> <textview android:id="@+id/countryname" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginbottom="5dp" android:layout_margintop="5dp" android:gravity="center_vertical" android:paddingleft="60dp" android:textcolor="#000000" android:textsize="22sp" android:textstyle="bold" /> <textview android:id="@+id/countryrate" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginbottom="5dp" android:layout_marginright="40dp" android:layout_margintop="5dp" android:gravity="right" android:textstyle="bold" android:textcolor="#000000" android:textsize="12sp" /> </framelayout>
Comments
Post a Comment