嗨,我想我的片段中的我的tabhost阴影。我的XML代码是如何在Android中给底部的阴影FragmentTabHost?
<?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="match_parent"
android:orientation="vertical"
android:layout_marginTop="60dip"
>
<android.support.v4.app.FragmentTabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0" />
</android.support.v4.app.FragmentTabHost>
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1" />
</LinearLayout>
我试过所有解决方案可用在stackoverflow但它不工作。请帮忙。
你是否尝试过FragmentTabHost背景中的层列表阴影? – Vinodh
没有。这个怎么做 ? – Mhandroid
你尝试过'android:elevation =“”'这个属性吗? – Shailesh