Skip to content

Commit

Permalink
update mock suggestion list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreang Rathanak committed Dec 20, 2023
1 parent f93a630 commit ef79351
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageButton
import android.widget.ListView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.google.android.flexbox.FlexboxLayout
import com.rathanak.khmerroman.R

Expand Down Expand Up @@ -36,8 +38,8 @@ class SpellSuggestionAdapter(private val context: Context, private val suggestio
}

val wordsSuggestionList = convertView.findViewById(R.id.wordsSuggestionList) as FlexboxLayout
// suggestionsList[position].wordsSuggestion
// wordsSuggestionList.addView();
// wordsSuggestionList.addView()

return convertView
}
}
7 changes: 4 additions & 3 deletions app/src/main/res/layout/spell_suggestion_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@
app:alignItems="stretch"
app:alignContent="stretch"
android:id="@+id/wordsSuggestionList">
<Button
android:text="Hello"
<Button android:text=""
android:id="@+id/btnWordSuggestion"
style="@style/ButtonSpellSuggestion"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" />
</com.google.android.flexbox.FlexboxLayout>
</LinearLayout>
</LinearLayout>
Expand Down

0 comments on commit ef79351

Please sign in to comment.