Yalmaz Hasan Butt
Yalmaz Hasan Butt

Reputation: 21

Horizontal Bar in Android

This is my first time when i am posting on a forum. Although i am using stackoverflow for a lone time and find it useful. My question is that i am developing a virtual chemist laboratory! and i have to make a horizontal bar upon which different apparatus can be placed like shown in the picture. Please tell me how to achieve that

enter image description here

Upvotes: 0

Views: 147

Answers (4)

Yalmaz Hasan Butt
Yalmaz Hasan Butt

Reputation: 21

Done with this problem using Linear Layout. and then using a customized border on the bottom side. Then just add horizontal scrollbar in it. Link : https://dl.dropboxusercontent.com/u/54327753/Screenshot%202015-01-02%2022.23.17.png

Upvotes: 0

Suhail Mehta
Suhail Mehta

Reputation: 5542

You can instead use horizontal list view. Its just a simple list view with same adapter support to form list in horizontal orientation.

Check the link for reference https://github.com/sephiroth74/HorizontalVariableListView

Upvotes: 0

Jaswinder
Jaswinder

Reputation: 2289

  • this can be done by FragmentActivity put horizontal button in main layout and replace fragment firstly create a fragment main layout which has two Items ur horizontal buttons and container for replace fargment then create fargments according to ur button if u have 4 button the create 4 child fragmentss * check my project

Upvotes: 0

Vilas
Vilas

Reputation: 1705

Use LinearLayout and set orientation to horizontal. Inside this layout add images as much as you wish. Use weightSum for linearlayout, also use layout_weight for all images.

Upvotes: 1

Related Questions