Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objects visibility

I've done a lot of search but can't find the difference between tools:visibility = "visible" and android:visibility = "visible" ? Which situation I must use tools or android?

like image 636
Gunay Abdullayeva Avatar asked Aug 17 '16 09:08

Gunay Abdullayeva


People also ask

What is object visibility?

Objects on the interface can be conditionally hidden based on the value of a model variable. This allows you to customize the user experience based on the state of the model in response to prior decisions, the run number of the simulation or the role in a multiplayer game.

How do I make objects visible in blender?

If your object is hidden, the first icon — the eye icon — appears closed. Left-clicking the eye icon unhides it. The camera icon on the far right controls whether your object is visible when rendering.


2 Answers

Here is the Simple Explanantion:

tools:visibility = "visible" is used to manipulate view visibility on the IDE.It wont affect the view in the real time.It just used for Designing purpose in Android Studio

while

android:visibility = "visible" is the actual code which will be executed in run-time and will make changes to your views

Ref: http://tools.android.com/tips/layout-designtime-attributes

like image 159
Burhanuddin Rashid Avatar answered Sep 19 '22 03:09

Burhanuddin Rashid


tools: attributes only contribute to design time preview while editing layouts while

android: actually affects how it will be displayed on actual device.

You can find further information here and here.

like image 40
Arnav M. Avatar answered Sep 19 '22 03:09

Arnav M.