I created a custom dialog and tried to change the content of a TextView contained in the dialog using a function called from main and I receive a NullPointerException as I believe that the dialog has not yet been created. I would like to know if it is possible to do this and if so how I could implement the solution. Thanks in advance :)
Есть linearlayout horizontal, в нем лежит linearlayout vertical и Switch, как сделать так чтобы switch всегда оставался примерно на одном и том же месте. То есть ограничить максимально допустимую ширину linearlayout vertical'а.