如何更改标题栏中心的清单标签?

时间:2017-05-10 10:04:53

标签: android android-manifest

如何在中心更改清单文件标签。我尝试过以下方式,但我不是     获取输出我在清单文件中添加代码 android:gravity =" center     在样式文件中我添加中心     不行,所以给我一个其他好的解决方案......!

清单代码

$scope.changeYearFunction = function(){
  console.log($scope.selectedYear);
  chartService.getDataByMonth($scope.selectedYear).then(function(response){
    $scope.monthdata = response.data;
	$scope.$apply();
  })
}
$scope.monthChart = function(year){
  chartService.getDataByMonth('2016').then(function(response){
    $scope.monthdata = response.data;
	$scope.finishloading = true;
	console.log($scope.monthdata);
	$scope.amChartOptions = {
		data : $scope.monthdata,
		type: "serial",
		theme: "light",
		marginRight: 80, 
		balloon: {
		  cornerRadius: 6,
		  horizontalPadding: 15,
		  verticalPadding: 10
		},
		chartScrollbar: {
		  enabled: true,
		},
		valueAxes: [{
		  gridAlpha: 0.5,
		  gridColor: '#dddddd',
		}],
		graphs: [{
		  bullet: 'square',
		  bulletBorderAlpha: 1,
		  bulletBorderThickness: 1,
		  fillAlphas: 0.5,
		  //fillColorsField: 'lineColor',
		  legendValueText: '[[value]]',
		  //lineColorField: 'lineColor',
		  title: 'power',
		  valueField: 'power'
		}],
		chartCursor: {
		  //categoryBalloonDateFormat: 'MMM',
		   cursorAlpha: 0,
		   fullWidth: true
		},
		  //dataDateFormat: "MM",
		  categoryField: "month",
		export: {
		  enabled: true
		}		    
	  }
   })
 }();

样式代码

<div class="panel-heading"><span>Monthly Consumption</span>
	<select ng-model="selectedYear" ng-change="changeYearFunction()">
		<option ng-repeat="x in year" value={{x}}>{{x}}</option>
	</select>
</div>
<div class="panel-body">
	<div style="height: 450px; width: 100%;">
		<am-chart ng-if="finishloading" id="myAreaChart" options="amChartOptions"></am-chart>
	</div>
</div>

我应该在我的代码中添加一些东西......!

0 个答案:

没有答案