-1
In the edit text, the user should select whether what they type should be bold or italics or normal. In my case when a user selects bold the entire edit text changes to bold and if he again selects italics the entire edit text becomes italics. When the user selects bold types something, it should be bold and when he selects italics or normal the words that he types after that should be italics or normal, not the previous one which is bold. also when I print the input in edit text it is printed as normal even it is given as bold. I have my code at the bottom <EditText android:id="@+id/check_edittext" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="check" /> this is where I have set the edit text to...
1
$begingroup$
I am doing a project on ocean wave simulation and there is a formula I am trying to test. It is called the random coefficient scheme and it is meant to simulate a random time series. One part of the formula is S(f), the 'Energy Density Spectrum'. Here is a screenshot from my notes The definition I have found for the energy density spectrum is that it is the square of the amplitude of a Fourier transform of a function. That is fine, but I am aware of researchers the EDS to generate virtual waves, and I don't understand what they would use for the value of it there. I imagine it would be reverse-engineered somehow? I am also unsure if it is the same as Energy Spectral Density, a term which seems more common. I have been reading anything I can find about it but am still struggling to f...