public override View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View rowView = inflater.inflate(mResource, parent, false); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final com.opentok.android.Subscriber subscriber = mSubscribers.get(position); Subscriber subscriber = outerInstance.mSubscribers[position]; // Set name //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final android.widget.TextView name = (android.widget.TextView) rowView.findViewById(R.id.subscribername); TextView name = (TextView)rowView.findViewById(R.id.subscribername); name.Text = subscriber.Stream.Name; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final android.widget.ImageView picture = (android.widget.ImageView) rowView.findViewById(R.id.subscriberpicture); ImageView picture = (ImageView)rowView.findViewById(R.id.subscriberpicture); // Initialize meter view //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final com.opentok.android.demo.ui.MeterView meterView = (com.opentok.android.demo.ui.MeterView) rowView.findViewById(R.id.volume); MeterView meterView = (MeterView)rowView.findViewById(R.id.volume); meterView.setIcons(BitmapFactory.decodeResource(Resources, R.drawable.unmute_sub), BitmapFactory.decodeResource(Resources, R.drawable.mute_sub)); subscriber.AudioLevelListener = new AudioLevelListenerAnonymousInnerClassHelper(this, subscriber, meterView); meterView.setOnClickListener(new OnClickListenerAnonymousInnerClassHelper(this, subscriber, name, picture)); return(rowView); }
protected internal override void onCreate(Bundle savedInstanceState) { Log.i(LOGTAG, "ONCREATE"); base.onCreate(savedInstanceState); ContentView = R.layout.voice_only_layout; ListView listView = (ListView)findViewById(R.id.listview); listView.Adapter = mSubscriberAdapter; // Set meter view icons for publisher MeterView mv = (MeterView)findViewById(R.id.publishermeter); mv.setIcons(BitmapFactory.decodeResource(Resources, R.drawable.unmute_pub), BitmapFactory.decodeResource(Resources, R.drawable.mute_pub)); ActionBar actionBar = ActionBar; actionBar.HomeButtonEnabled = true; actionBar.DisplayHomeAsUpEnabled = true; mNotificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); sessionConnect(); }