Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setListAdapter(LocationList);
- int lv_list_cnt = LocationList.getCount();
- ListView al = findViewById(R.id.list);
- ViewGroup.LayoutParams params = al.getLayoutParams();
- params.height = 50 * lv_list_cnt;
- al.requestLayout();
Add Comment
Please, Sign In to add comment