我正在创建操作栏导航选项卡,但是当操作栏堆叠时,选项卡不会获得整个宽度空间.我有一个照片来说明它.

在这种情况下,是否可以为每个标签提供50%的屏幕宽度?
谢谢
我正在编辑说它不是Sherlock Action Bar.我正在三星Galaxy Note 10.1和Nexus 7中工作.现在,在Nexus上测试它,我注意到它的行为是不同的.另一个截图:

我正在尝试在用户点击地图时添加标记.我正在使用SupportMapFragment内部ActionBarActivity.但是地图没有响应,此外,map.setMapType()操作无效.
这是我的代码:
private GoogleMap map;
private Marker marker;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ActionBarActivity activity = (ActionBarActivity) getActivity();
activity.getSupportActionBar().setTitle(R.string.select_location);
super.onCreateView(inflater, container, savedInstanceState);
return inflater.inflate(R.layout.map, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
Log.d("Map","On view created");
map = getMap();
map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
map.setOnMapClickListener(new OnMapClickListener() {
@Override
public void onMapClick(LatLng point) {
Log.d("Map","Map clicked");
marker.remove();
drawMarker(point);
}
});
...
Location location = locationManager.getLastKnownLocation(provider);
if(location!=null){
//PLACE THE INITIAL MARKER …Run Code Online (Sandbox Code Playgroud) 我希望其他人在我的apk上签名并上传到Google Play。我已经存储了密钥库,因此,只要在另一台计算机上使用相同的密钥库(相同的别名?),其他人就可以上传到Google Play吗?他说他得到签名错误。
我正在尝试使用Mapsforge在我的Android应用中绘制一种简单的方法,一种路线.我已经按照一个例子创建了单点OverlayItems.但是当我尝试画一条路线时,我在地图上看不到任何东西.有谁能够帮我?这是我的简单代码:
Paint wayPaint = new Paint();
wayPaint.setColor(color.Chocolate);
ArrayWayOverlay wayOverlay = new ArrayWayOverlay(wayPaint,wayPaint);
GeoPoint gp1 = new GeoPoint(41.38, 2.15);
GeoPoint gp2 = new GeoPoint(41.39, 2.15);
GeoPoint gp3 = new GeoPoint(41.40, 2.15);
GeoPoint gp4 = new GeoPoint(41.41, 2.15);
OverlayWay way = new OverlayWay(new GeoPoint[][] { { gp1, gp2, gp3, gp4 } });
wayOverlay.addWay(way);
mapView.getOverlays().add(wayOverlay);
Run Code Online (Sandbox Code Playgroud)
我不知道是否必须在某处放置标记......