Questions tagged [graphical-layout-editor]

The Android Graphical Layout Editor is a tool used to visually design and build an Android user interface.

75 questions
40
votes
2 answers

Can you set graphical layout preview-only text on a TextView?

I have a styled TextView whose real text is populated dynamically at runtime. The Graphical Layout view is very useful for getting a feel on how this component works with others in terms of look and feel, etc. There is no sensible default to this…
Chris Knight
  • 24,333
  • 24
  • 88
  • 134
28
votes
3 answers

What's tools:layout in fragment xml file?

I started a new Android Application based on master/detail flow template using ADT Eclipse. This template creates two activities, a master fragment and a detail fragment in order to fit small and larger screens. I noticed the activity_item_list.xml…
11
votes
1 answer

Android Studio Layout Editor ConstraintLayout: pack vs chain

In the Android Studio Layout Editor I see the words "pack" and "chain" with respect to a ConstraintLayout. I know they both have something to do with multiple views being connected to each other in a line, but their difference is not clear to me. …
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
11
votes
3 answers

I can't find the toolbar in the layout editor in Android Studio

I'm trying to do the Android Developer Tutorial. They refer to the toolbar in the layout editor, in the tutorial picture it looks like this: But this is what I see . The toolbar with the eye is missing. As you see, there is a "Toolbar"-Icon in…
Medusa
  • 593
  • 2
  • 5
  • 18
11
votes
3 answers

Custom text for spinner preview in Android graphical layout editor

By default if I create a Spinner in the graphical layout editor (using the Spinner Item preview layout, i.e android.R.layout.simple_spinner_item) the displayed text is Item 1 Is there any way to change this preview text ?
sdabet
  • 18,360
  • 11
  • 89
  • 158
8
votes
1 answer

Can I preview the Action Bar in the graphical layout editor?

I've noticed that all of the ApiDemos construct the Action Bar programmatically at runtime. I'd love to be able to see the Action Bar with icons and even tabs from within the graphical layout editor. Is it possible to preview the Action Bar in…
6
votes
2 answers

Layout editor: How to show layout in framelayout container?

I have a layout defined in XML as root ConstraintLayout that contains 4 empty frameLayouts for dynamically inflating fragments. In order to have a better design experience in the layout editor (Android Studio), is there a way to show/mimic the…
6
votes
1 answer

Use layout editor effectively on layouts with non-static fragments

With all the Android development tools greatness, especially as of version 21, the graphical layout editor is a powerful tool to have visual control over a layout with fragments for every configuration and locale. I'm aware that a typical Activity's…
5
votes
4 answers

Eclipse is missing Graphical Layout and Source tabs when editing Android XML files

When I edit XML files in Eclipse using Android Common XML Editor I am only able to use the graphical layout editor. I see in pictures online how there are supposed to be tabs at the bottom for Graphical and Source but I have none. How do I get…
J1NKL3
  • 53
  • 1
  • 4
4
votes
3 answers

Why am i getting a class cast exception when adding a button in android studio?

I'm on Android Studio 3.4, and using Material Design. When I add a button to the layout i'm getting a java.lang.ClassCastException@11378fc8 and i can't use anymore the layout editor until I remove the button. I have already tried to…
4
votes
0 answers

Show a Fragment in FrameLayout without element in layout editor?

I know that tools:layout can be used to show a fragment in elements in the Android Studio's layout editor. However, I want to add a fragment in a FrameLayout at runtime (so that I can change the fragment). Similar questions found in SO…
Naetmul
  • 14,544
  • 8
  • 57
  • 81
3
votes
2 answers

How to preview contents of TabWidget in graphical designer

I am developing an application for Android (2.2) in Eclipse. My App has a TabWidget, within this 5 tabs. TabHost: (tab1) (tab2) (tab3) (tab4) (tab5) Beneath the Tabs is the content of the tabs (just simple elements, like Buttons, texts and so…
3
votes
1 answer

How to emulate immersive mode in layout editor

I'd like to view my layouts in full screen in the layout editor. I'm using the eclipse plugin. I've already hidden the ActionBar by selecting a *NoActionBar theme in the combo, but the navigation bar is a different story. AFAIK it can only be hidden…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
3
votes
1 answer

Showing multiple screen types simultaneously in ADT graphical editor?

I seem to remember seeing a way to use ADT's graphical layout editor to preview multiple display types (i.e., 10in tablet portrait, 4in phone landscape, etc.) simultaneously. Is there an automated way to do this, or was it probably just someone…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
1
2 3 4 5