Giter Site home page Giter Site logo

Comments (6)

quick6black avatar quick6black commented on September 26, 2024

import flash.display.GradientType;
import mx.core.mx_internal;

use namespace mx_internal;

override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
{
super.drawBackground(unscaledWidth, unscaledHeight);

	colorMatrix.createGradientBox(unscaledWidth, unscaledHeight, Math.PI /2,0,0);
	graphics.beginGradientFill(GradientType.LINEAR, [0x120CCA,0xBB00D1], [1,1],[0, 255],colorMatrix);
	graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
	graphics.endFill();
}

from flex-android-material-skins.

quick6black avatar quick6black commented on September 26, 2024

the old actionbar component used a gradient color, which is very similar to what you were looking for. The old tabbedViewNavigator component used images for the buttons.

https://github.com/apache/flex-sdk/blob/master/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarFirstTabSkin.as

you could look at that for a start.

from flex-android-material-skins.

leossmith avatar leossmith commented on September 26, 2024

Can you help me with changing the size of the tab bar? Is there a way to set the ButtonBarSkin height in

measuredWidth = dataGroup.measuredWidth; measuredHeight = dataGroup.measuredHeight;
via CSS or another way? If I hardcode it it works, but I don't think this is the best option.

The left is what I currently have. The right is what I am trying to achieve

image

I need some help to understand how to change the size the overall size of tabbar and icons.

Thank you.

from flex-android-material-skins.

quick6black avatar quick6black commented on September 26, 2024

I had actually worked on this a while ago and never merged it in, see if this will work.

I added in tabbedViewNavigatorSkin, here is the link to the .as file
https://github.com/quick6black/flex-Android-Material-Skins/blob/master/src/spark/skins/android5/TabbedViewNavigatorSkin.as

there is also one addition to the CSS file. In the skin file you can change the height of the tab bar and the button heights will update to match. Let me know if you have any issues

from flex-android-material-skins.

leossmith avatar leossmith commented on September 26, 2024

I will try it and let you know. I am building an awesome new app and your skins make flex really shine.

from flex-android-material-skins.

quick6black avatar quick6black commented on September 26, 2024

awesome, looking forward to seeing some screenshots of the UI

from flex-android-material-skins.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.