<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CustomTheme">
<item name="android:windowNoTitle">true</item>
<item name="windowFrame">@drawable/screen_frame</item>
<item name="windowBackground">@drawable/screen_background_white</item>
<item name="panelForegroundColor">#FF000000</item>
<item name="panelBackgroundColor">#FFFFFFFF</item>
<item name="panelTextColor">?panelForegroundColor</item>
<item name="panelTextSize">14</item>
<item name="menuItemTextColor">?panelTextColor</item>
<item name="menuItemTextSize">?panelTextSize</item>
</style>
</resources>
/**
* 长按按钮弹出的菜单 里面选择 不同菜单 显示的不同的方法
*
* 即 长按菜单的单击事件
*/
public boolean onContextItemSelected(MenuItem item) {
//设置 长按 显示文本的 一个常量
String Temp = "";
AdapterView.AdapterContextMenuInfo menuInfo;
menuInfo = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
int listId = (int) menuInfo.id;
CheckBox ckBox = (CheckBox)menuInfo.targetView.findViewById(R.id.user_check);
String userIdString= ckBox.getTag().toString();
switch (item.getItemId()) {
case 0:
break;
default:
break;
}
return super.onContextItemSelected(item);
}
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="SpecialText" parent="@style/Text">
<item name="android:textSize">18sp</item>
<item name="android:textColor">#008</item>
</style>
</resources>