All Projects → AdilSoomro → Raised Center Tab In Android

AdilSoomro / Raised Center Tab In Android

Licence: mit
Customized tabhost having raised center tab.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Raised Center Tab In Android

Arkit Unity3d
Access ARKit features like world-tracking, live video rendering, plane estimation and updates, hit-testing API, ambient light estimation, and raw point cloud data.
Stars: ✭ 124 (-21.52%)
Mutual labels:  iphone
Cs193p Fall 2017
These are the lectures, slides, reading assignments, and problem sets for the Developing Apps for iOS 11 with Swift 4 CS193p course offered at the Stanford School of Engineering and available on iTunes U.
Stars: ✭ 141 (-10.76%)
Mutual labels:  iphone
Pagerslidingtabstrip
一款android指示器TabLayout、PagerSlidingTabStrip,仿Boss直聘,带有红点未读提示
Stars: ✭ 152 (-3.8%)
Mutual labels:  tablayout
Navigator
Android Multi-module navigator, trying to find a way to navigate into a modularized android project
Stars: ✭ 131 (-17.09%)
Mutual labels:  fragment
Mobile Web Favorites
This is a favorites, with a mobile web tips.
Stars: ✭ 1,724 (+991.14%)
Mutual labels:  iphone
Inappviewdebugger
A UIView debugger (like Reveal or Xcode) that can be embedded in an app for on-device view debugging
Stars: ✭ 1,805 (+1042.41%)
Mutual labels:  iphone
Sdkmonitor
App to display and monitor the targetSDK from installed apps.
Stars: ✭ 122 (-22.78%)
Mutual labels:  fragment
Texture Compressor
CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.
Stars: ✭ 156 (-1.27%)
Mutual labels:  iphone
Bender
Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.
Stars: ✭ 1,728 (+993.67%)
Mutual labels:  iphone
Filesystem
FileSystem is an application that allows you to browse the content of your iPhone disk, displaying file and folders, files contents, and detailed informations about file and folder permissions.
Stars: ✭ 148 (-6.33%)
Mutual labels:  iphone
Rxlifecycle
Rx binding of stock Android Activities & Fragment Lifecycle, avoiding memory leak
Stars: ✭ 131 (-17.09%)
Mutual labels:  fragment
Ioctocat
iOctocat v1 - GitHub for iOS (works on the iPhone, iPad, and iPod Touch)
Stars: ✭ 1,665 (+953.8%)
Mutual labels:  iphone
Unwrap
Learn Swift interactively on your iPhone.
Stars: ✭ 1,992 (+1160.76%)
Mutual labels:  iphone
Relay Example
[READONLY] 💝 Examples of common Relay patterns used in real-world applications. This repository is automatically exported from https://github.com/adeira/universe via Shipit
Stars: ✭ 126 (-20.25%)
Mutual labels:  fragment
Android Video Listing Mvp
Android video listing with swipe view tabs based on mvp design pattern with complete functionalities like search and sort
Stars: ✭ 151 (-4.43%)
Mutual labels:  tablayout
Flowr
FlowR is a wrapper class around the Fragment Manager.
Stars: ✭ 123 (-22.15%)
Mutual labels:  fragment
Fragivity
Use Fragment like Activity
Stars: ✭ 143 (-9.49%)
Mutual labels:  fragment
Pulley
A library to imitate the iOS 10 Maps UI.
Stars: ✭ 1,928 (+1120.25%)
Mutual labels:  iphone
Ios Landing Page
Landing page template for iOS apps
Stars: ✭ 155 (-1.9%)
Mutual labels:  iphone
Apple Device Model List
All Apple devices model name list. 通过内部编号判断 iOS 设备型号。
Stars: ✭ 149 (-5.7%)
Mutual labels:  iphone

Android Tabs at Bottom and Raised Center

This repository contains sample of setting android TabLayout at bottom and showing Fragment embedded in ViewPager. The trick is to add 5 Fragments to the ViewPager and 5 icons to tab layout. The center tab ie 3rd tab will serve a fake Fragment, it can be empty. We've a ImageButton on top of TabLayout aligned center and the bottom. That's button which will serve as raised center button. The magic happens very simply. You need to arrange them properly to stick tabs at bottom.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/main_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">
    <android.support.design.widget.TabLayout
        android:id="@+id/tab_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@drawable/tab_background"/>
    <android.support.v4.view.ViewPager
        android:id="@+id/main_tab_content"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_alignParentTop="true"
        android:layout_above="@id/tab_layout"
        android:background="@android:color/white" />
    <!-- Center and Bottom Aligned Button Acting as Raised Center Tab Item -->
    <ImageButton
        android:layout_width="80dp"
        android:layout_height="60dp"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:background="@drawable/center_tab_indicator"
        android:onClick="openCameraActivity"
        android:src="@drawable/camera" />
</RelativeLayout>

Screenshot

nexus 5 sample here

Licence

The MIT License (MIT)

Copyright (c) 2017 Adil Soomro

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Happy Coding!

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].