Android Facebook Like Button not appearing properly -



Android Facebook Like Button not appearing properly -

this may sound trivial having difficulty in display of likebutton. not intended.

it supposed this. https://s3.amazonaws.com/uploads.hipchat.com/20645/978150/pm1gbfbvvhpmjvu/screen%20shot%202014-10-24%20at%2010.25.15%20am.png

instead looks following: https://s3.amazonaws.com/uploads.hipchat.com/20645/978150/jeuu1ceq3dvmzjj/screen%20shot%202014-10-24%20at%2010.27.56%20am.png

notice long bluish space beingness stretched , "like" text beingness extremely little in sec pic.

here code layout file:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutfacebooklike" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:screenorientation="sensorlandscape" > <textview android:id="@+id/textfacebookincentivetext" style="@style/huge" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="center" android:padding="48dp" android:text="@string/txt_facebook_incentive_default" android:textcolor="@android:color/white" /> <relativelayout android:id="@+id/layoutfacebooklikecontainer" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#40000000" android:layout_gravity="center" android:gravity="center_horizontal"> <button android:id="@+id/btncontinue" style="?android:attr/borderlessbuttonstyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="32dp" android:paddingbottom="16dp" android:paddingleft="2dp" android:paddingright="2dp" android:paddingtop="16dp" android:text="@string/btn_continue" android:layout_alignparentleft="false" android:textappearance="?android:attr/textappearancelarge" android:textcolor="@android:color/white" android:layout_centerinparent="true" /> <com.facebook.widget.likeview android:id="@+id/likeview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_margin="64dp" android:layout_centerinparent="true" android:textalignment="gravity" android:layout_alignparentbottom="false" android:layout_alignparentleft="false" /> </relativelayout> </linearlayout> </linearlayout>

the code in activity using follows:

likeview mlikebutton = (likeview) findviewbyid(r.id.likeview1); mlikebutton.setobjectid("121083561691"); mlikebutton.setlikeviewstyle(likeview.style.standard); mlikebutton.setauxiliaryviewposition(likeview.auxiliaryviewposition.inline); mlikebutton.sethorizontalalignment(likeview.horizontalalignment.center); mlikebutton.setforegroundcolor(color.white);

please allow me know how can right it.

this issue arises when have themes , styling set activity interferes design of likebutton. if set default values, button appears normal.

android facebook android-layout facebook-like

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -