I was going through sample code for media effects in Android samples for API level 23 and found an unusual value (0.93) being assigned to layout_weight for one of the views contained in a LinearLayout.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<android.opengl.GLSurfaceView
android:id="@+id/effectsview"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="0.93"/>
Since the layout is not having any other childviews other than android.opengl.GLSurfaceView , does this value (or android:layout_weight itself) has any significance? I tried to change this value randomly and as expected it did not have any impact on layout.
Edit : Added sample code link