i have button in that i want to put same space between all button so if i run app in tablet the space between button will equal divide, i am using linearlayout, i know there is layout_weight option but i don't want to stretch icon
for example
my xml code is below
<LinearLayout
android:id="@+id/shareLinearLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/btnRequestAPrescriptionRefill"
android:layout_marginTop="10dp" >
<Button
android:id="@+id/btnFacebook"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/btn_facebook" />
<Button
android:id="@+id/btnYoutube"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/btn_youtube" />
<Button
android:id="@+id/btnTwitter"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/btn_twitter" />
<Button
android:id="@+id/btnPintrest"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/btn_pintrest" />
</LinearLayout>