how to make this custom android tab layout? - java

I want to achieve this tab layout but i can't. I have already searched github but didn't find any help.
This is screenshot of the tabs

You can use Tablayout from support library. It has support for customViews. Checkout this link for reference https://www.androidhive.info/2015/09/android-material-design-working-with-tabs/

Use a ViewPager with a PagerTabStrip.

Have a vertical linear layout for the root layout.
Inside have a horizontal linear layout for the tabs, and another layout beneath it for each of the tab pages. When a tab is clicked, set the tab page's visibility to visible and all other tab pages to visibility gone

Related

How to make a Bottom Navigation bar with ImageView instead of Menu Items?

How can I make a working bottom navigation bar with ImageViews in a LinearLayout(Horizontal) With fragments ? instead of menu items.
if already exist then please share the source code. Please help quickly :)
Or the Question could be this :
https://github.com/qhutch/BottomSheetLayout/issues/12#issue-576279364
Oh, I found my solution not exactly but this is what I want...
I add that Bottom Navigation View in a LinearLayout(horizontal) and I delete all default Styles from BottomNavigationView. So now this is not looking like a card view. After this, I add an ImageView in the LinearLayout with a weight of a ratio of 1:3 (for 4 icons ). Now I can use effects and designs on my LinearLayout. And it is looking like how I wish. 😌
[Note: For horizontally rotated screen LinearLayout, ImageView, BottomNavigationView 's width:match-parent]

Android - Toolbar popup custom layout

Was wondering how you would go about implementing a custom layout for a toolbar popup, the one you get when you press on the settings button.
I need to increase the padding on the top and bottom of the popup, and also add in a custom font here. The only way I can think to do it would be to basically inflate a custom layout here but I'm not sure how it can be done. Most of the documentation I find online about it is just about styling it instead of adding in a new layout.
I thought maybe doing something like:
app:actionLayout="#layout/menu_settings_popup"
Would work, but unfortunately it doesn't. Also trying to set the layout and background in styles didn't
Would appreciate any help with this. Thanks
I think this would be what you need:
https://scriptedpapers.com/2015/02/12/android-action-bar-and-overflow-menu-customization-with-theme-appcompat/

Set initial size for collapsing toolbar, expand or collapse

I'm using android support design library to create a collapsing toolbar. It works great, my view collapses when I scroll and expands when I scroll back.
But I wonder, I would like to have a profile in this toolbar, but half the profile would be hidden at first. So for example at first you only see the users profile picture in the toolbar. If you scroll down the list the toolbar collapses and everything gets hidden. But if you scroll the other way, to the top of the list and kind of beyond, the toolbar will expand even more and show you both profile picture and more information like name, description and so on..
Is this possible? To set the toolbar like "half collapsed" or something similar.
After a lot of trying and searching for information about the collapsing toolbar I ended up using another library instead.
https://github.com/umano/AndroidSlidingUpPanel
With this I got the customisation I wanted by setting anchor points. Though I didn't get, or atleast I don't know how to get, the function of the toolbar expanding and changing from toolbar color to an image for example. But for my case, the customisation was the main function and thus more important.

navigation in actionbar sherlock

I would like to implement the navigation with options like left and right button that are displayed in following URL. I found the Tab Option for android is possible via Action Bar and Tab Host Control. But I can not find the option with those two button actions.
Navigation in a UItoolbar in iOS
I also tried this by using Linear Layout and horizontal Scrollview concepts but the UI are not comfort as i wish . So If you find Anything Kindly do the needful.
If you want useing SlideNavigation use this library as i used this in my app for create Navigation SlideNavigaiton
and if you want Navigation Ontab you can use scrollable tab as you can see in sherlock actionbar sample and on other way you can Hide actionBar and create custom layout with scrollable contetn for your aim
hope to be usefull :)

scroll view issue Android

I am adding layouts programmatically.I have added a scrollview as a parent layout and a combination of horizontal and vertical linearlayouts when I add a list view in the scrollview I am getting an issue that my UI is not taking full screen although the listview height is set to fill parent .There is a blank space added at the bottom and the height of the listview gets very small .I haven't find the reason why it's happening, is it a bug in android for scrollview ?
fill_parent won't work. Try setting android:fillViewport="true".
Without any code, I'd have to take a guess and say that your ScrollView is not set to fill_parent.
Try using layout editor in Eclipse or the hierachyviewer that ships with the Android SDK to examine your layout in the emulator and see which view is not filling the screen.

Categories