Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeneser/ionic-super-bar
Transparent statusBar and awesome toolBar DEMO in ionic
https://github.com/jeneser/ionic-super-bar
android ionc2 ionic ionic-framework ionic3 toolbar-demo transparent-statusbar
Last synced: about 1 month ago
JSON representation
Transparent statusBar and awesome toolBar DEMO in ionic
- Host: GitHub
- URL: https://github.com/jeneser/ionic-super-bar
- Owner: jeneser
- License: mit
- Created: 2017-03-30T06:05:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T17:40:28.000Z (almost 6 years ago)
- Last Synced: 2024-09-30T23:21:29.849Z (about 2 months ago)
- Topics: android, ionc2, ionic, ionic-framework, ionic3, toolbar-demo, transparent-statusbar
- Language: TypeScript
- Homepage:
- Size: 5.61 MB
- Stars: 176
- Watchers: 7
- Forks: 42
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Support: support_info.png
Awesome Lists containing this project
README
Transparent statusBar and awesome toolBar DEMO in ionic.
## Get started
* Clone this repository: `[email protected]:jeneser/ionic-super-bar.git`
* Run `npm install` from the project root.
* Run `ionic serve` in a terminal from the project root.## Transparent statusBar for android
* Run `ionic cordova platform add android` in a terminal
* On `MainActivity.java` file on Android platform folder`platforms/android/src/../../MainActivity.java`, paste the following code after super.onCreate()```java
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
}
```* Remember to add these packages in MainActivity.java
```java
import android.os.Build;
import android.view.View;
```* Last set `StatusBarBackgroundColor` in `app.component.ts` from the project folder `src/app/app.component.ts`.
If you want use this option for Android and native status bar plugin for iOS devices on the same project. We advise you to do so. The code is harmless!```javascript
// #AARRGGBB where AA is an alpha value
if (this.platform.is('android')) {
this.statusBar.backgroundColorByHexString("#33000000");
}
```* In the same way. You can set `StatusBarBackgroundColor` in `config.xml` from the project root.
But, When you build an Ionic project for IOS platform. You may need to remove it. Pick one you like.```
```
## File Structure
```
.
├── config.xml
├── ionic.config.json
├── package.json
├── README.md
├── resources
├── src
│ ├── app
│ │ ├── app.component.ts
│ │ ├── app.html
│ │ ├── app.module.ts
│ │ ├── app.scss * transparent statusBar and SuperBar style
│ │ └── main.ts
│ ├── assets
│ │ ├── icon
│ │ └── img
│ ├── index.html
│ ├── manifest.json
│ ├── pages
│ │ ├── home * transparent statusBar and SuperBar page
│ │ │ ├── home.html
│ │ │ ├── home.scss
│ │ │ └── home.ts
│ │ ├── language-details * transparent statusBar and SuperBar page
│ │ │ ├── language-details.html
│ │ │ ├── language-details.scss
│ │ │ └── language-details.ts
│ │ └── list
│ │ ├── list.html
│ │ ├── list.scss
│ │ └── list.ts
│ ├── service-worker.js
│ └── theme
│ └── variables.scss
├── tsconfig.json
└── tslint.json
```## Environment
```
global packages:@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.4.2System:
Node : v6.10.3
OS : Linux 4.8
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
```## ChangeLog
- June 28, 2017:
- PR #14 Platform separately:
- Each platform does not affect each other
- Make code harmless
- June 25, 2017:
- Upgrade this project to Ionic 3 Fix issue#12
- Rename repertory: `ionic-super-bar`
- Move ionic2 version to branch `dev-ionic2-v1`
## ContributePlease make sure to read the [Contributing Guide](https://github.com/jeneser/ionic-super-bar/blob/master/CONTRIBUTING.md) before making a pull request.
```bash
# install dependencies
npm install# serve with hot reload
ionic serve```
## License
[MIT](https://github.com/jeneser/ionic-super-bar/blob/master/LICENSE) Copyright (c) 2017 Jeneser