这是我的标签导航栏,这也与我的其他子页面重叠
<ion-header>
<ion-navbar hideBackButton="true">
<span class="hdr-clr">Winkrr</span>
<ion-buttons start>
<button ion-button icon-only>
<ion-icon style="color:#ed145b;" name="ios-search"></ion-icon>
</button>
</ion-buttons>
<ion-buttons end>
<button ion-button icon-only>
<ion-icon style="color:#ed145b;" name="ios-notifications-outline"></ion-icon>
</button>
</ion-buttons>
<ion-buttons end>
<button ion-button icon-only>
<ion-icon style="color:#ed145b;" name="ios-contact-outline"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-tabs tabsPlacement="top" tabsHideOnSubPages="true" primary>
<ion-tab tabIcon="md-globe" [root]="tab1Root"></ion-tab>
<ion-tab tabIcon="stats" [root]="tab2Root"></ion-tab>
</ion-tabs>
这是我的子页面导航栏
<ion-header>
<ion-navbar hide-tabs>
<ion-title>personal-chat</ion-title>
</ion-navbar>
</ion-header>
这就是我导航的方式
onContact(){
this.navCtrl.push(PersonalChatPage);
}
我在离子2中使用了单页标签。我已经将离子导航栏用于标签页,这对于两个标签很常见。 但是相同的导航栏出现在子页面
上
答案 0 :(得分:1)
您可以尝试在app.module.ts中设置配置,如下所示:
ArrayList<Integer> points = new ArrayList<>();
public Line(String filePath) {
points = readFile(filePath);
}
public void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
if(points!= null && points.size()>=4) {
g2d.drawLine(points.get(0), points.get(1), points.get(2), points.get(3));
}
}
public ArrayList<Integer> readFile(String filePath){
BufferedReader br = null;
FileReader fr = null;
ArrayList<Integer> list = new ArrayList();
try {
//br = new BufferedReader(new FileReader(FILENAME));
fr = new FileReader(filePath);
br = new BufferedReader(fr);
String sCurrentLine;
while ((sCurrentLine = br.readLine()) != null) {
String[] splitted = sCurrentLine.split(",");
for (int i = 0; i < splitted.length; i++) {
try {
list.add(Integer.parseInt(splitted[i].trim()));
}
catch (Exception ex){
System.out.println(splitted[i] + " is not a valid number/integer");
}
}
}
System.out.println(list);
}
catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null)
br.close();
if (fr != null)
fr.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}
return list;
}