Click here to Skip to main content
15,913,106 members
Home / Discussions / Android
   

Android

 
AnswerRe: problem whith warp photo in android Pin
mr ar30-Oct-16 21:18
mr ar30-Oct-16 21:18 
QuestionRe: problem whith warp photo in android Pin
David Crow31-Oct-16 2:34
David Crow31-Oct-16 2:34 
AnswerRe: problem whith warp photo in android Pin
mr ar31-Oct-16 2:42
mr ar31-Oct-16 2:42 
QuestionRe: problem whith warp photo in android Pin
David Crow31-Oct-16 2:58
David Crow31-Oct-16 2:58 
AnswerRe: problem whith warp photo in android Pin
DanielMarkus4-Nov-16 6:41
DanielMarkus4-Nov-16 6:41 
AnswerRe: problem whith warp photo in android Pin
DanielMarkus4-Nov-16 6:42
DanielMarkus4-Nov-16 6:42 
QuestionPlot Isobar n Google Map Api v2 Pin
lakhwinder12jan26-Oct-16 21:01
lakhwinder12jan26-Oct-16 21:01 
AnswerRe: Plot Isobar n Google Map Api v2 Pin
Richard MacCutchan26-Oct-16 21:56
mveRichard MacCutchan26-Oct-16 21:56 
GeneralRe: Plot Isobar n Google Map Api v2 Pin
David Crow27-Oct-16 4:53
David Crow27-Oct-16 4:53 
GeneralRe: Plot Isobar n Google Map Api v2 Pin
Richard MacCutchan27-Oct-16 4:58
mveRichard MacCutchan27-Oct-16 4:58 
QuestionRe: Plot Isobar n Google Map Api v2 Pin
David Crow27-Oct-16 4:57
David Crow27-Oct-16 4:57 
AnswerRe: Plot Isobar n Google Map Api v2 Pin
Richard MacCutchan27-Oct-16 4:59
mveRichard MacCutchan27-Oct-16 4:59 
GeneralRe: Plot Isobar n Google Map Api v2 Pin
David Crow27-Oct-16 5:01
David Crow27-Oct-16 5:01 
AnswerRe: Plot Isobar n Google Map Api v2 Pin
ZurdoDev27-Oct-16 6:00
professionalZurdoDev27-Oct-16 6:00 
GeneralRe: Plot Isobar n Google Map Api v2 Pin
lakhwinder12jan27-Oct-16 21:36
lakhwinder12jan27-Oct-16 21:36 
GeneralRe: Plot Isobar n Google Map Api v2 Pin
ZurdoDev28-Oct-16 0:45
professionalZurdoDev28-Oct-16 0:45 
Questioncode android multiple table with insert, delete, update Pin
Member 1279832617-Oct-16 6:47
Member 1279832617-Oct-16 6:47 
AnswerRe: code android multiple table with insert, delete, update Pin
Richard MacCutchan17-Oct-16 7:54
mveRichard MacCutchan17-Oct-16 7:54 
AnswerRe: code android multiple table with insert, delete, update Pin
David Crow17-Oct-16 10:21
David Crow17-Oct-16 10:21 
GeneralOT Pin
Eytukan2-Dec-16 0:37
Eytukan2-Dec-16 0:37 
GeneralRe: OT Pin
David Crow2-Dec-16 5:52
David Crow2-Dec-16 5:52 
GeneralRe: OT Pin
Eytukan3-Dec-16 16:46
Eytukan3-Dec-16 16:46 
QuestionError Collection is of a fixed size Pin
Member 1129526527-Sep-16 16:13
Member 1129526527-Sep-16 16:13 
AnswerRe: Error Collection is of a fixed size Pin
Richard MacCutchan27-Sep-16 21:36
mveRichard MacCutchan27-Sep-16 21:36 
AnswerRe: Error Collection is of a fixed size Pin
Richard Deeming28-Sep-16 2:40
mveRichard Deeming28-Sep-16 2:40 
The MiLista parameter is a fixed size list - most likely an array.

You'll need to convert the parameter to a standard list. You can either do that unconditionally:
C#
public ListaCriteriosAdapter(Context context, IEnumerable<Criterio> MiLista)
{
    this.activity = context;
    ListaCriterios = new List<Criterio>(MiLista);
    MiInflanter = (LayoutInflater)activity.GetSystemService(Context.LayoutInflaterService);
}

Or, you can test the parameter to see if you need to convert it:
C#
private static bool IsReadOnlyOrFixedSize<T>(IList<T> list)
{
    if (list.IsReadOnly) return true;
    
    var nonGenericList = list as System.Collections.IList;
    return nonGenericList != null && nonGenericList.IsFixedSize;
}

public ListaCriteriosAdapter(Context context, IList<Criterio> MiLista)
{
    if (IsReadOnlyOrFixedSize(MiLista))
    {
        MyLista = new List<Criterio>(MyLista);
    }
    
    this.activity = context;
    ListaCriterios = MiLista; 
    MiInflanter = (LayoutInflater)activity.GetSystemService(Context.LayoutInflaterService);
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.