خرید بک لینک

Vote count: 0

I am working on a Xamarin Android form application. I am using a FrameLayout with a button and text view such that the button is in the background and the textView should be in front of them. Now when I run my application on a Kitkat/Marshmallow version of android it works perfectly but on Lollipop the textView disappears (Goes in the background). The layout of my form is a Custom gridView with Each Entry as following:

<FrameLayout xmlns:p1="http://schemas.android.com/apk/res/android"
p1:minWidth="25px"
p1:minHeight="25px"
p1:layout_width="match_parent"
p1:layout_height="match_parent"
p1:background="#141414"
p1:clipChildren="true"
p1:id="@+id/frameLayout1">
<Button
  p1:layout_width="match_parent"
  p1:layout_height="100dp"
  p1:id="@+id/btnForeground"
  p1:background="@drawable/ButtonStyle" />
<TextView
  p1:text="Name"
  p1:textAppearance="?android:attr/textAppearanceMedium"
  p1:layout_gravity="center"
  p1:layout_width="wrap_content"
  p1:layout_height="wrap_content"
  p1:id="@+id/RegionName"
  p1:paddingTop="10dp"
  p1:paddingBottom="50dp" />
</FrameLayout> 

Here are images of the Output on the Android Player. Same results using a physical android device.

Result Using Kitkat

Result Using Lollipop

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 10 مرداد 1395 ساعت: 0:34

صفحه بندی