Getting height of LinearLayout
return -1.
Code :
LinearLayout layout = (LinearLayout)findViewById(R.id.create_trip_layout);
android.view.ViewGroup.LayoutParams param = layout.getLayoutParams();
Log.d("Layout height : ", param.height + "");
Getting height of LinearLayout
return -1.
Code :
LinearLayout layout = (LinearLayout)findViewById(R.id.create_trip_layout);
android.view.ViewGroup.LayoutParams param = layout.getLayoutParams();
Log.d("Layout height : ", param.height + "");