CopyPastor

Detecting plagiarism made easy.

Score: 0.9250679672413258; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2014-06-18
by Ramkailash

Original Post

Original - Posted on 2010-03-05
by CommonsWare



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The size of a Spinner set have android:layout_width="wrap_content" is determined by its content. If you want things ellipsized, that's up to you in your SpinnerAdapter, when you create your row Views.
Or, hard-wire an android:layout_width that is fixed in size.
Or, instead of using LinearLayout, use RelativeLayout and structure your rules such that the Spinner takes up the remaining space on the row, by anchoring it to the left side of the screen and to the left side of the first EditText. Though I'm not 100% certain what then happens if the content is too big -- it probably just gets truncated.
The size of a `Spinner` set have `android:layout_width="wrap_content"` is determined by its content. If you want things ellipsized, that's up to you in your `SpinnerAdapter`, when you create your row Views.
Or, hard-wire an `android:layout_width` that is fixed in size.
Or, instead of using `LinearLayout`, use `RelativeLayout` and structure your rules such that the `Spinner` takes up the remaining space on the row, by anchoring it to the left side of the screen and to the left side of the first `EditText`. Though I'm not 100% certain what then happens if the content is too big -- it probably just gets truncated.

        
Present in both answers; Present only in the new answer; Present only in the old answer;