please have @ following code
<?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="wrap_content" android:layout_alignparentbottom="true" android:background="#373734" android:orientation="horizontal" > <imageview android:id="@+id/backtolanguageselectionbutton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingbottom="5dp" android:layout_marginleft="10dp" android:layout_marginright="15dp" android:paddingtop="5dp" android:src="@drawable/thunderbolt" /> <imageview android:id="@+id/internetbutton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingbottom="5dp" android:paddingtop="5dp" android:src="@drawable/globe_small_2" /> <button android:id="@+id/giveupbutton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginleft="350dp" android:paddingtop="5dp" android:paddingbottom="5dp" android:text="button" /> </linearlayout> this common layout code using android activities. problem button, want move right corner. margin thing not seems work because in different devices button in different places.
how can move right corner displayed same in devices?
i believe add view between second imageview , button, , set layout_width="0dp", layout_weight="1". , remove left margin of button.
Comments
Post a Comment