Regarding layout_column in android -
i have come across 1 small thing when use layout_column widget not move specified column position. please, 1 me , see needs change in following code. thank in advance guiding , helping me.
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:adroid="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".mainactivity"> <relativelayout android:layout_width="match_parent" android:layout_height="228dp" > <textview android:id="@+id/city_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="@dimen/activity_horizontal_margin" android:layout_centerhorizontal="true" android:text="auckland"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/time" android:layout_below="@id/city_name" android:layout_centerhorizontal="true" android:layout_margintop="2dp" android:text="10.00 am"/> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/weatherpic" android:layout_below="@+id/time" android:layout_centerhorizontal="true" android:background="@drawable/clouds"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/weather" android:textappearance="?android:attr/textappearancesmall" android:layout_below="@+id/weatherpic" android:layout_centerhorizontal="true" android:layout_margin="10dp" android:text="cloudy"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancelarge" android:id="@+id/daytemp" android:layout_below="@+id/weather" android:layout_alignleft="@+id/weather" android:layout_alignstart="@+id/weather" android:layout_margintop="10dp" android:text="15c"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium" android:id="@+id/mintemp" android:layout_alignbottom="@+id/daytemp" android:layout_toleftof="@+id/time" android:layout_tostartof="@+id/time" android:text="11c"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancesmall" android:id="@+id/downarrowtemp" android:layout_alignbottom="@+id/mintemp" android:layout_toleftof="@+id/weather" android:layout_tostartof="@+id/weather" android:layout_marginright="35dp" android:text="arr_dn"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancesmall" android:id="@+id/uparrowtemp" android:layout_alignbottom="@+id/daytemp" android:layout_torightof="@+id/weather" android:layout_toendof="@+id/weather" android:text="arr_up"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium" android:id="@+id/textview" android:layout_alignbottom="@+id/daytemp" android:layout_torightof="@+id/weather" android:layout_toendof="@+id/weather" android:layout_marginleft="40dp" android:text="18c"/> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageview" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:layout_alignparentright="true" android:layout_alignparentend="true" /> </relativelayout> <tablelayout android:layout_width="304dp" android:layout_height="95dp" android:layout_margintop="250dp" > <tablerow> <textview android:layout_width="0dp" android:layout_height="wrap_content" android:id="@+id/r0c0" android:layout_weight="1" android:text="1stdayview" /> <textview android:layout_width="0dp" android:layout_height="wrap_content" android:id="@+id/r0c1" android:layout_weight="1" android:text="2nddayview" /> <textview android:layout_width="0dp" android:layout_height="wrap_content" android:id="@+id/r0c2" android:layout_weight="1" android:text="3rddayview" /> </tablerow> <tablerow> <button android:id="@+id/b1" android:text="hello12" /> <button android:id="@+id/b2" android:text="hello123" android:layout_column="2" /> </tablerow> </tablelayout> </framelayout>
Comments
Post a Comment