我写了一个后台设置,点开后popupWindow = new PopupWindow(view, 300, 200);显示这个窗口<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/dark"
android:orientation="vertical"
android:alpha="0.85"
android:gravity="top"
android:textColor="@drawable/white" >
<LinearLayout android:id="@+id/linearLayout1" android:layout_marginTop="10dip" android:orientation="vertical" android:gravity="center" android:layout_height="wrap_content" android:layout_width="match_parent">
<TextView android:text="选择" android:textSize="20dip" android:textColor="@drawable/white" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="200dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:paddingTop="10dip"
android:paddingBottom="10dip">
<RadioGroup android:id="@+id/radioGroup1" android:layout_marginLeft="-20dip" android:layout_marginTop="10dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
</RadioGroup>
</LinearLayout>
</ScrollView>
<View android:id="@+id/view1" android:layout_marginTop="10dip" android:layout_width="220dip" android:layout_height="1dip"
android:background="#666666"></View>
</LinearLayout> <TableLayout android:layout_width="match_parent" android:layout_marginTop="10dip" android:id="@+id/tableLayout1" android:layout_height="wrap_content">
<TableRow android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/tableRow1" android:gravity="center">
<TextView android:text="取 消" android:textSize="18dip" android:textColor="@drawable/white"
android:id="@+id/cancel" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<TextView android:text="确 认" android:textSize="18dip" android:layout_marginLeft="20dip"
android:textColor="@drawable/white" android:id="@+id/countersign"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
</TableRow>
</TableLayout>
</LinearLayout>下边的“取消”和“确认”按钮不显示 其他能显示。
但是在其他手机都正常显示。Android三星S4显示
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/dark"
android:orientation="vertical"
android:alpha="0.85"
android:gravity="top"
android:textColor="@drawable/white" >
<LinearLayout android:id="@+id/linearLayout1" android:layout_marginTop="10dip" android:orientation="vertical" android:gravity="center" android:layout_height="wrap_content" android:layout_width="match_parent">
<TextView android:text="选择" android:textSize="20dip" android:textColor="@drawable/white" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="200dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:paddingTop="10dip"
android:paddingBottom="10dip">
<RadioGroup android:id="@+id/radioGroup1" android:layout_marginLeft="-20dip" android:layout_marginTop="10dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
</RadioGroup>
</LinearLayout>
</ScrollView>
<View android:id="@+id/view1" android:layout_marginTop="10dip" android:layout_width="220dip" android:layout_height="1dip"
android:background="#666666"></View>
</LinearLayout> <TableLayout android:layout_width="match_parent" android:layout_marginTop="10dip" android:id="@+id/tableLayout1" android:layout_height="wrap_content">
<TableRow android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/tableRow1" android:gravity="center">
<TextView android:text="取 消" android:textSize="18dip" android:textColor="@drawable/white"
android:id="@+id/cancel" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<TextView android:text="确 认" android:textSize="18dip" android:layout_marginLeft="20dip"
android:textColor="@drawable/white" android:id="@+id/countersign"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
</TableRow>
</TableLayout>
</LinearLayout>下边的“取消”和“确认”按钮不显示 其他能显示。
但是在其他手机都正常显示。Android三星S4显示
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货