Questions tagged «android-recyclerview»

30
ප්‍රතිචක්‍රීකරණ දර්ශනයට onItemClickListener () නොමැති ඇයි?
මම ගවේෂණය කරමින් සිටි RecyclerViewඅතර RecyclerViewඑය නොමැති බව දැක මම පුදුමයට පත් වීමි onItemClickListener(). මට ප්‍රශ්න දෙකක් තිබේ. ප්රධාන ප්රශ්නය ගූගල් ඉවත් කළේ ඇයිදැයි මට දැන ගැනීමට අවශ්‍යද onItemClickListener()? කාර්ය සාධන ගැටලුවක් හෝ වෙනත් දෙයක් තිබේද? ද්විතීයික ප්‍රශ්නය මම මගේ ගැටලුව ලිව්වේ onClickමගේ RecyclerView.Adapter: public static class ViewHolder extends RecyclerView.ViewHolder …

30
ප්‍රතිචක්‍රීකරණ දර්ශනයේ අයිතම අතර බෙදුම්කරුවන් සහ අවකාශයන් එකතු කරන්නේ කෙසේද?
බෙදුම්කරු සහ බෙදුම්කරු හයිට් පරාමිතීන් ListViewභාවිතා කරමින් පන්තියේදී මීට පෙර එය කළ හැකිව තිබූ බවට මෙය නිදසුනකි : <ListView android:id="@+id/activity_home_list_view" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="@android:color/transparent" android:dividerHeight="8dp"/> කෙසේ වෙතත්, RecyclerViewපන්තියේ එවැනි හැකියාවක් මා දකින්නේ නැත . <android.support.v7.widget.RecyclerView android:id="@+id/activity_home_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical"/> එවැනි අවස්ථාවක, ආන්තිකයන් නිර්වචනය කිරීම සහ / හෝ අභිරුචි බෙදුම්කරු දර්ශනයක් ලැයිස්තු …

20
බහුවිධ දර්ශන වර්ගයකින් ප්‍රතිචක්‍රීකරණ දර්ශනය නිර්මාණය කරන්නේ කෙසේද?
Https://developer.android.com/preview/material/ui-widgets.html වෙතින් අප නිර්මාණය කරන විට එය ඇඩැප්ටරය සමඟ බැඳී RecyclerView.Adapterඇති බව සඳහන් ViewHolderකළ යුතුය . public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> { private String[] mDataset; public MyAdapter(String[] myDataset) { mDataset = myDataset; } public static class ViewHolder extends RecyclerView.ViewHolder { public TextView mTextView; public ViewHolder(TextView v) { super(v); mTextView = …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.