![]() The only way I can fix this is by hardcoding a maxWidth, but obviously I need this to work for a variety of screen dimensions. I can't get this to work though - the text always continues to the end of the layout and the image is not displayed, i.e.: Which will add "." if the text would spill outside of the parent view.īut for the second view, I would like to always leave space so that the image is always displayed, and in such a way that the image is anchored to the end of the info text without a gap (i.e. I can successfully use the combination below: android:layout_width="wrap_content" The difficulty comes when I attempt to truncate the info sections when they are too large for the screens. ![]() Each row has a label (static text) for the first column, then dynamic info text displayed afterwards.Īdditionally, the second row will have a small image (same height/width as per the text size) which should be appended to the end of the info text. I am attempting to implement the layout shown below: Add a Back arrow in app-bar Create New Activity in Android Studio Call Another Activity in Android Studio Pass data between two activities in Android Studio.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |