Archived
Improved interface in category dialog.
This commit is contained in:
1 parent
8d589b088d
commit
5f724e28d1
2 files changed
+3
-4
No files matched your search
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ListView android:id="@+id/choose_category_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
</ListView>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.studentersamfundet.app.ui;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
|
||||
import com.studentersamfundet.app.Event;
|
||||
import com.studentersamfundet.app.R;
|
||||
|
||||
import android.app.Dialog;
|
||||
@@ -45,7 +44,7 @@ public class ChooseCategoryDialog extends Dialog {
|
||||
}
|
||||
|
||||
private void populateList(Context context, final String[] categories) {
|
||||
ListView list = (ListView)findViewById(R.id.choose_category_list);
|
||||
ListView list = (ListView)findViewById(R.id.choose_category_list);
|
||||
list.setAdapter(new ArrayAdapter<String>(context, R.layout.choose_category_list_row, R.id.choose_category_list_row_text, categories));
|
||||
list.setOnItemClickListener(new OnItemClickListener() {
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position,
|
||||
|
||||
Reference in new issue
Block a user