All Projects → semsamot → Actionbarrtlizer

semsamot / Actionbarrtlizer

Do you want RTL ActionBar? So you've found a library that can RTLize android's "ActionBar"!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Actionbarrtlizer

Verilog
Repository for basic (and not so basic) Verilog blocks with high re-use potential
Stars: ✭ 296 (+393.33%)
Mutual labels:  rtl
Chipyard
An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more
Stars: ✭ 436 (+626.67%)
Mutual labels:  rtl
Perfect Chisel
Chisel artifacts developed under IBM's involvement with the DARPA PERFECT program
Stars: ✭ 20 (-66.67%)
Mutual labels:  rtl
Rtl Viewpager
ViewPager with RTL support 🔄
Stars: ✭ 323 (+438.33%)
Mutual labels:  rtl
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+6820%)
Mutual labels:  rtl
Salamandra
Salamandra is a tool to find spy microphones that use radio freq to transmit. It uses SDR.
Stars: ✭ 657 (+995%)
Mutual labels:  rtl
Openroad
OpenROAD's unified application implementing an RTL-to-GDS Flow
Stars: ✭ 270 (+350%)
Mutual labels:  rtl
Darkriscv
opensouce RISC-V cpu core implemented in Verilog from scratch in one night!
Stars: ✭ 1,062 (+1670%)
Mutual labels:  rtl
Bootstrap V4 Rtl
RTL edition of bootstrap v4 for rtl languages like Farsi and Arabic
Stars: ✭ 430 (+616.67%)
Mutual labels:  rtl
Riscv Boom
SonicBOOM: The Berkeley Out-of-Order Machine
Stars: ✭ 852 (+1320%)
Mutual labels:  rtl
Recycler View Divider
A library which configures a divider for a RecyclerView.
Stars: ✭ 338 (+463.33%)
Mutual labels:  rtl
Cores Swerv
SweRV EH1 core
Stars: ✭ 406 (+576.67%)
Mutual labels:  rtl
Spinalhdl
Scala based HDL
Stars: ✭ 696 (+1060%)
Mutual labels:  rtl
Awesome Arabic
A curated list of awesome projects and dev/design resources for supporting Arabic computational needs.
Stars: ✭ 309 (+415%)
Mutual labels:  rtl
Bootstrap Star Rating
A simple yet powerful JQuery star rating plugin with fractional rating support.
Stars: ✭ 985 (+1541.67%)
Mutual labels:  rtl
Openlane
OpenLANE is an automated RTL to GDSII flow based on several components including OpenROAD, Yosys, Magic, Netgen, Fault and custom methodology scripts for design exploration and optimization.
Stars: ✭ 293 (+388.33%)
Mutual labels:  rtl
Leku
🌍 Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
Stars: ✭ 612 (+920%)
Mutual labels:  rtl
Rggen
Code generation tool for configuration and status registers
Stars: ✭ 54 (-10%)
Mutual labels:  rtl
Veluxi Starter
Veluxi Vue.js Starter Project with Nuxt JS and Vuetify
Stars: ✭ 39 (-35%)
Mutual labels:  rtl
Postcss Start To End
PostCSS plugin that lets you control your layout (LTR or RTL) through logical rather than physical rules
Stars: ✭ 18 (-70%)
Mutual labels:  rtl

Maven Central

ActionBar RTLizer (ActionBar RTL Arranger)

A library that can RTLize android ActionBar!

It is not a custom ActionBar or anything else! Its only a piece of code that can re-arrange the android ActionBar in RTL direction.

Announcement

ActionBarRTLizer v2 has arrived!
Fully compatible with API Level 7+ and all issues has been solved!
Based on a new Amazaing Library Class -> Rtlize Everything!

Usage (only 3 simple steps)

1) Add this line to build.gradle file inside your app project folder:

dependencies {
    compile 'info.semsamot:actionbar-rtlizer:[email protected]'
}

2) Define a private variable of ActionBarRtlizer class in your activity class.

private ActionBarRtlizer rtlizer;

3) In onCreateOptionsMenu method of your activity, before return statement, add these lines:

rtlizer = new ActionBarRtlizer(this);
ViewGroup actionBarView = rtlizer.getActionBarView();
ViewGroup homeView = (ViewGroup)rtlizer.getHomeView();

rtlizer.flipActionBarUpIconIfAvailable(homeView);
RtlizeEverything.rtlize(actionBarView);
RtlizeEverything.rtlize(homeView);

If you are using Toolbar widget instead of ActionBar then you may change the first line to:

rtlizer = new ActionBarRtlizer(this, "toolbar"); // "toolbar" or -any other id- for your Toolbar widget.

Then compile your app and enjoy of this awesome RTLization!

Alternative features

You can retrieve ActionBarView, ActionMenuView and HomeView after RTLization has been completed. Fortunately you can listen for RTLization completed event.

An example of using these features is that you can animate ActionBar menu items after RTLization. it's so simple! (see the below sample)

** doesn't work on v2+ yet. **

rtlizer.setOnRtlizeFinishedListener(new ActionBarRtlizer.OnRtlizeFinishedListener() {
    @Override
    public void onRtlizeFinished()
    {
        Animation rotateAnim = AnimationUtils.loadAnimation(getBaseContext(), R.anim.rotate);
        View actionMenuItem = rtlizer.getActionMenuView().findViewById(
                R.id.action_item);
        actionMenuItem.setAnimation(rotateAnim);
    }
});

Provided methods for retrieving ActionBar view and its children:

// All return value types are of ViewGroup class.
getActionBarView()
getHomeViewContainer() // returns null on lower API versions than 17
getHomeView()
getActionMenuView()

Compatibility

This library is fully compatible with API Level 7+

Known issues

?

Apps using this library

If you have interested in using this library in your app, then you may send me your app name, so i can put that on the list and have proud that your app used this library.

Donate

With money? No

If you like this library, you can make a donation by clicking on the star in top of this page. Its so simple!

License

Copyright 2014 semsamot

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Tags: action bar rtl, rtl action bar, action bar in rtl, action bar rtl direction, android action bar rtl, action bar rtl arranger, action bar rtlizer, actionbar rtl, rtl actionbar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].