I have an EditText in my application. I want to align the text in it to the right instead of the default left. I tried adding
android:layout_gravity=\"right
layout_gravity means that you are specifying the layouts attribute, not the element inside. In some conditions, such as layout_width and layout_height is wrap_content, layout specifications can give what you want about the element inisde your layout, since the boundries of the layout and the element (not elements) are the same..