How can I create this type of layout [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How can I create this type of layout [closed]



enter image description here



How can I create this layout in Android? I need a layout with autocomplete edit text and dynamic text.



Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.




3 Answers
3



For this, you have to add custom textview and auto complete edit text on any layout at run time(dynamic time).



You can use Chips with LinearLayout



Check this link for explanation of Chips


Chips



I think you need this:



Filter Chip
Use filter chips containing tags or descriptive words to filter a collection.



This style usually contains an optional chip icon, an optional close icon, and is always checkable.


<com.google.android.material.chip.Chip
style="@style/Widget.MaterialComponents.Chip.Filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>



and Handling Clicks by using this:


Chip chip = (Chip) findViewById(R.id.chip);

chip.setOnClickListener(new OnClickListener()
@Override
public void onClick(View view)
// Handle the click.

);

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS