+ 8

The Widget or components (such as Rating Bar) from the Palette are not visible on the design view on the Android Studio

I am a beginner in android studio so this question may be stupid for others. You can see that I have already selected the Rating bar but it is neither visible on the Design view and nor on the blueprint.I am done with restarting the project but still nothing. You can view the image and get more imformation from the link given below https://stackoverflow.com/q/51002704/9848459

23rd Jun 2018, 5:36 PM
Vansh Wadhwa
Vansh Wadhwa - avatar
16 Respostas
+ 6
the screenshot of the code is given with the link on the stackoverflow.
24th Jun 2018, 7:48 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 6
KrOW but don't you think still it should show on the design view if it is showing on the emulator as I have to edit it's position
24th Jun 2018, 8:22 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 6
KrOW Yes but it not showing any component whether it is switch,text or anything else
24th Jun 2018, 8:35 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 5
KrOW but the TextView is not visible on the design view but it is visible on the emulator.
24th Jun 2018, 7:57 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 4
Abdur-Rahmaan Janhangeer yes on the emulator its working but not visible on the the design view or the blueprint
24th Jun 2018, 7:46 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 4
Actually i am new to android studio so i don't know how to change the layouts
24th Jun 2018, 7:47 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 3
Abdur-Rahmaan Janhangeer I am already using the the Android oreo or P
24th Jun 2018, 7:31 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 3
change visibility
24th Jun 2018, 7:33 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 3
Abdur-Rahmaan Janhangeer I changed the visibility too but still nothing happened
24th Jun 2018, 7:35 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 2
try choosing a higher api level
24th Jun 2018, 7:30 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
lol visibility none
24th Jun 2018, 7:33 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
have you tried adding images or using it or trying on emulator? or change layout?
24th Jun 2018, 7:40 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
Following your posted image on stackoverflow, you have clicked on "!" button (red circle with white color) just to left on top of attribute panel? This show you if there are errors can make you UI preview to not show correctly
24th Jun 2018, 7:51 AM
KrOW
KrOW - avatar
+ 1
android studio UI preview emulate itself the layout rendering then you can have problem in it and not in emulator/device... Read https://developer.android.com/studio/write/layout-editor in particular "Show layout warnings and errors" section
24th Jun 2018, 8:02 AM
KrOW
KrOW - avatar
+ 1
Vansh Wadhwa No if there are some problems with Android Studio (and there are for sure). Anyway you have clicked that button?
24th Jun 2018, 8:25 AM
KrOW
KrOW - avatar
+ 1
That button show you errors that encounter internal AS preview renderer (often like an Java stacktrace)... It dont show this message to you in click it?
24th Jun 2018, 9:12 AM
KrOW
KrOW - avatar