Return Custom Dropdownlist with default value based on Spinner
1: <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2: xmlns:app="http://schemas.android.com/apk/res-auto"
3: android:id="@+id/main"
4: android:layout_width="match_parent"
5: android:layout_height="match_parent">
6:
7: <ScrollView
8: android:id="@+id/settingsScrollView"
9: android:layout_width="0dp"
10: android:layout_height="0dp"
11: app:layout_constraintBottom_toTopOf="@+id/tabLayout"
12: app:layout_constraintEnd_toEndOf="parent"
13: app:layout_constraintStart_toStartOf="parent"
14: app:layout_constraintTop_toTopOf="parent">
15:
16:
17: <LinearLayout
18: android:id="@+id/settingsLayout"
19: android:layout_width="match_parent"
20: android:layout_height="wrap_content"
21: android:orientation="vertical"
22: android:padding="16dp">
23:
24: <!-- Account Section -->
25: <TextView
26: style="@style/SectionTitle"
27: android:layout_width="match_parent"
28: android:layout_height="wrap_content"
29: android:text=" Account: " />
30:
31: <LinearLayout
32: android:layout_width="match_parent"
33: android:layout_height="wrap_content"
34: android:orientation="horizontal">
35:
36: <TextView
37: style="@style/SettingLabel"
38: android:layout_width="0dp"
39: android:layout_height="wrap_content"
40: android:layout_weight="1"
41: android:text="OutboundProxy" />
42:
43: <EditText
44: android:id="@+id/outboundProxyEditText"
45: style="@style/SettingInput"
46: android:layout_width="0dp"
47: android:layout_height="wrap_content"
48: android:layout_weight="1"
49: android:hint="Enter Outbound Proxy"
50: android:inputType="text" />
51:
52: </LinearLayout>
53:
54: <LinearLayout
55: android:layout_width="match_parent"
56: android:layout_height="wrap_content"
57: android:orientation="horizontal">
58:
59: <TextView
60: style="@style/SettingLabel"
61: android:layout_width="0dp"
62: android:layout_height="wrap_content"
63: android:layout_weight="1"
64: android:text="AuthName" />
65:
66: <EditText
67: android:id="@+id/authNameEditText"
68: style="@style/SettingInput"
69: android:layout_width="0dp"
70: android:layout_height="wrap_content"
71: android:layout_weight="1"
72: android:hint="Enter Auth Name"
73: android:inputType="text" />
74: </LinearLayout>
75:
76: <!-- Transport Protocol Section -->
77: <TextView
78: style="@style/SectionTitle"
79: android:layout_width="match_parent"
80: android:layout_height="wrap_content"
81: android:text=" Transport Protocol: " />
82:
83: <LinearLayout
84: android:layout_width="match_parent"
85: android:layout_height="wrap_content"
86: android:orientation="horizontal">
87:
88: <TextView
89: style="@style/SettingLabel"
90: android:layout_width="0dp"
91: android:layout_height="wrap_content"
92: android:layout_weight="1"
93: android:text="UDP" />
94:
95: <CheckBox
96: android:id="@+id/udpCheckBox"
97: style="@style/SettingInput"
98: android:layout_width="0dp"
99: android:layout_height="wrap_content"
100: android:layout_weight="1"
101: android:checked="true" />
102: </LinearLayout>
103:
104: <LinearLayout
105: android:layout_width="match_parent"
106: android:layout_height="wrap_content"
107: android:orientation="horizontal">
108:
109: <TextView
110: style="@style/SettingLabel"
111: android:layout_width="0dp"
112: android:layout_height="wrap_content"
113: android:layout_weight="1"
114: android:text="TCP" />
115:
116: <CheckBox
117: android:id="@+id/tcpCheckBox"
118: style="@style/SettingInput"
119: android:layout_width="0dp"
120: android:layout_height="wrap_content"
121: android:layout_weight="1" />
122: </LinearLayout>
123:
124: <LinearLayout
125: android:layout_width="match_parent"
126: android:layout_height="wrap_content"
127: android:orientation="horizontal">
128:
129: <TextView
130: style="@style/SettingLabel"
131: android:layout_width="0dp"
132: android:layout_height="wrap_content"
133: android:layout_weight="1"
134: android:text="TLS" />
135:
136: <CheckBox
137: android:id="@+id/tlsCheckBox"
138: style="@style/SettingInput"
139: android:layout_width="0dp"
140: android:layout_height="wrap_content"
141: android:layout_weight="1" />
142: </LinearLayout>
143:
144: <!-- Other Sections (Add more sections here) -->
145: <TextView
146: style="@style/SectionTitle"
147: android:layout_width="match_parent"
148: android:layout_height="wrap_content"
149: android:text=" TLS Certificate Management: " />
150:
151: <LinearLayout
152: android:layout_width="match_parent"
153: android:layout_height="wrap_content"
154: android:orientation="horizontal">
155:
156: <TextView
157: style="@style/SettingLabel"
158: android:layout_width="0dp"
159: android:layout_height="wrap_content"
160: android:layout_weight="1"
161: android:text="VerifyCertificates" />
162:
163: <CheckBox
164: android:id="@+id/verifyCertificatesCheckBox"
165: style="@style/SettingInput"
166: android:layout_width="0dp"
167: android:layout_height="wrap_content"
168: android:layout_weight="1" />
169: </LinearLayout>
170:
171: <TextView
172: style="@style/SectionTitle"
173: android:layout_width="match_parent"
174: android:layout_height="wrap_content"
175: android:text=" STUN: " />
176:
177: <LinearLayout
178: android:layout_width="match_parent"
179: android:layout_height="wrap_content"
180: android:orientation="horizontal">
181:
182: <TextView
183: style="@style/SettingLabel"
184: android:layout_width="0dp"
185: android:layout_height="wrap_content"
186: android:layout_weight="1"
187: android:text="EnableSTUN" />
188:
189: <CheckBox
190: android:id="@+id/enableStunCheckBox"
191: style="@style/SettingInput"
192: android:layout_width="0dp"
193: android:layout_height="wrap_content"
194: android:layout_weight="1" />
195: </LinearLayout>
196:
197: <LinearLayout
198: android:layout_width="match_parent"
199: android:layout_height="wrap_content"
200: android:orientation="horizontal">
201:
202: <TextView
203: style="@style/SettingLabel"
204: android:layout_width="0dp"
205: android:layout_height="wrap_content"
206: android:layout_weight="1"
207: android:text="Server" />
208:
209: <EditText
210: android:id="@+id/stunServerEditText"
211: style="@style/SettingInput"
212: android:layout_width="0dp"
213: android:layout_height="wrap_content"
214: android:layout_weight="1"
215: android:hint="Enter STUN Server"
216: android:inputType="text" />
217: </LinearLayout>
218:
219: <LinearLayout
220: android:layout_width="match_parent"
221: android:layout_height="wrap_content"
222: android:orientation="horizontal">
223:
224: <TextView
225: style="@style/SettingLabel"
226: android:layout_width="0dp"
227: android:layout_height="wrap_content"
228: android:layout_weight="1"
229: android:text="Port" />
230:
231: <EditText
232: android:id="@+id/stunPortEditText"
233: style="@style/SettingInput"
234: android:layout_width="0dp"
235: android:layout_height="wrap_content"
236: android:layout_weight="1"
237: android:hint="Enter STUN Port"
238: android:inputType="number" />
239: </LinearLayout>
240:
241: <TextView
242: style="@style/SectionTitle"
243: android:layout_width="match_parent"
244: android:layout_height="wrap_content"
245: android:text=" Mobile network: " />
246:
247: <LinearLayout
248: android:layout_width="match_parent"
249: android:layout_height="wrap_content"
250: android:orientation="horizontal">
251:
252: <TextView
253: style="@style/SettingLabel"
254: android:layout_width="0dp"
255: android:layout_height="wrap_content"
256: android:layout_weight="1"
257: android:text="Enable even Wi-Fi disabled" />
258:
259: <CheckBox
260: android:id="@+id/enableMobileDataCheckBox"
261: style="@style/SettingInput"
262: android:layout_width="0dp"
263: android:layout_height="wrap_content"
264: android:layout_weight="1"
265: android:checked="true" />
266: </LinearLayout>
267:
268: <TextView
269: style="@style/SectionTitle"
270: android:layout_width="match_parent"
271: android:layout_height="wrap_content"
272: android:text=" Audio Codecs: " />
273: <!-- Audio Codecs Section -->
274: <TextView
275: style="@style/SectionTitle"
276: android:layout_width="match_parent"
277: android:layout_height="wrap_content"
278: android:text="------------- Audio Codecs: -------------" />
279:
280: <LinearLayout
281: android:layout_width="match_parent"
282: android:layout_height="wrap_content"
283: android:orientation="horizontal">
284:
285: <TextView
286: style="@style/SettingLabel"
287: android:layout_width="0dp"
288: android:layout_height="wrap_content"
289: android:layout_weight="1"
290: android:text="G.729" />
291:
292: <CheckBox
293: android:id="@+id/g729CheckBox"
294: style="@style/SettingInput"
295: android:layout_width="0dp"
296: android:layout_height="wrap_content"
297: android:layout_weight="1"
298: android:checked="true" />
299: </LinearLayout>
300:
301: <LinearLayout
302: android:layout_width="match_parent"
303: android:layout_height="wrap_content"
304: android:orientation="horizontal">
305:
306: <TextView
307: style="@style/SettingLabel"
308: android:layout_width="0dp"
309: android:layout_height="wrap_content"
310: android:layout_weight="1"
311: android:text="PCMA" />
312:
313: <CheckBox
314: android:id="@+id/pcmaCheckBox"
315: style="@style/SettingInput"
316: android:layout_width="0dp"
317: android:layout_height="wrap_content"
318: android:layout_weight="1"
319: android:checked="true" />
320: </LinearLayout>
321:
322: <LinearLayout
323: android:layout_width="match_parent"
324: android:layout_height="wrap_content"
325: android:orientation="horizontal">
326:
327: <TextView
328: style="@style/SettingLabel"
329: android:layout_width="0dp"
330: android:layout_height="wrap_content"
331: android:layout_weight="1"
332: android:text="PCMU" />
333:
334: <CheckBox
335: android:id="@+id/pcmuCheckBox"
336: style="@style/SettingInput"
337: android:layout_width="0dp"
338: android:layout_height="wrap_content"
339: android:layout_weight="1"
340: android:checked="true" />
341: </LinearLayout>
342:
343: <LinearLayout
344: android:layout_width="match_parent"
345: android:layout_height="wrap_content"
346: android:orientation="horizontal">
347:
348: <TextView
349: style="@style/SettingLabel"
350: android:layout_width="0dp"
351: android:layout_height="wrap_content"
352: android:layout_weight="1"
353: android:text="GSM" />
354:
355: <CheckBox
356: android:id="@+id/gsmCheckBox"
357: style="@style/SettingInput"
358: android:layout_width="0dp"
359: android:layout_height="wrap_content"
360: android:layout_weight="1" />
361: </LinearLayout>
362:
363: <LinearLayout
364: android:layout_width="match_parent"
365: android:layout_height="wrap_content"
366: android:orientation="horizontal">
367:
368: <TextView
369: style="@style/SettingLabel"
370: android:layout_width="0dp"
371: android:layout_height="wrap_content"
372: android:layout_weight="1"
373: android:text="G.722" />
374:
375: <CheckBox
376: android:id="@+id/g722CheckBox"
377: style="@style/SettingInput"
378: android:layout_width="0dp"
379: android:layout_height="wrap_content"
380: android:layout_weight="1" />
381: </LinearLayout>
382:
383: <LinearLayout
384: android:layout_width="match_parent"
385: android:layout_height="wrap_content"
386: android:orientation="horizontal">
387:
388: <TextView
389: style="@style/SettingLabel"
390: android:layout_width="0dp"
391: android:layout_height="wrap_content"
392: android:layout_weight="1"
393: android:text="iLBC" />
394:
395: <CheckBox
396: android:id="@+id/ilbcCheckBox"
397: style="@style/SettingInput"
398: android:layout_width="0dp"
399: android:layout_height="wrap_content"
400: android:layout_weight="1" />
401: </LinearLayout>
402:
403: <LinearLayout
404: android:layout_width="match_parent"
405: android:layout_height="wrap_content"
406: android:orientation="horizontal">
407:
408: <TextView
409: style="@style/SettingLabel"
410: android:layout_width="0dp"
411: android:layout_height="wrap_content"
412: android:layout_weight="1"
413: android:text="AMR" />
414:
415: <CheckBox
416: android:id="@+id/amrCheckBox"
417: style="@style/SettingInput"
418: android:layout_width="0dp"
419: android:layout_height="wrap_content"
420: android:layout_weight="1" />
421: </LinearLayout>
422:
423: <LinearLayout
424: android:layout_width="match_parent"
425: android:layout_height="wrap_content"
426: android:orientation="horizontal">
427:
428: <TextView
429: style="@style/SettingLabel"
430: android:layout_width="0dp"
431: android:layout_height="wrap_content"
432: android:layout_weight="1"
433: android:text="AMR-WB" />
434:
435: <CheckBox
436: android:id="@+id/amrWbCheckBox"
437: style="@style/SettingInput"
438: android:layout_width="0dp"
439: android:layout_height="wrap_content"
440: android:layout_weight="1" />
441: </LinearLayout>
442:
443: <LinearLayout
444: android:layout_width="match_parent"
445: android:layout_height="wrap_content"
446: android:orientation="horizontal">
447:
448: <TextView
449: style="@style/SettingLabel"
450: android:layout_width="0dp"
451: android:layout_height="wrap_content"
452: android:layout_weight="1"
453: android:text="Speex" />
454:
455: <CheckBox
456: android:id="@+id/speexCheckBox"
457: style="@style/SettingInput"
458: android:layout_width="0dp"
459: android:layout_height="wrap_content"
460: android:layout_weight="1" />
461: </LinearLayout>
462:
463: <LinearLayout
464: android:layout_width="match_parent"
465: android:layout_height="wrap_content"
466: android:orientation="horizontal">
467:
468: <TextView
469: style="@style/SettingLabel"
470: android:layout_width="0dp"
471: android:layout_height="wrap_content"
472: android:layout_weight="1"
473: android:text="SpeexWB" />
474:
475: <CheckBox
476: android:id="@+id/speexWbCheckBox"
477: style="@style/SettingInput"
478: android:layout_width="0dp"
479: android:layout_height="wrap_content"
480: android:layout_weight="1" />
481: </LinearLayout>
482:
483: <LinearLayout
484: android:layout_width="match_parent"
485: android:layout_height="wrap_content"
486: android:orientation="horizontal">
487:
488: <TextView
489: style="@style/SettingLabel"
490: android:layout_width="0dp"
491: android:layout_height="wrap_content"
492: android:layout_weight="1"
493: android:text="Opus" />
494:
495: <CheckBox
496: android:id="@+id/opusCheckBox"
497: style="@style/SettingInput"
498: android:layout_width="0dp"
499: android:layout_height="wrap_content"
500: android:layout_weight="1"
501: android:checked="true" />
502: </LinearLayout>
503:
504: <TextView
505: style="@style/SectionTitle"
506: android:layout_width="match_parent"
507: android:layout_height="wrap_content"
508: android:text=" Video Codecs: " />
509:
510: <LinearLayout
511: android:layout_width="match_parent"
512: android:layout_height="wrap_content"
513: android:orientation="horizontal">
514:
515: <TextView
516: style="@style/SettingLabel"
517: android:layout_width="0dp"
518: android:layout_height="wrap_content"
519: android:layout_weight="1"
520: android:text="H.264" />
521:
522: <CheckBox
523: android:id="@+id/h264CheckBox"
524: style="@style/SettingInput"
525: android:layout_width="0dp"
526: android:layout_height="wrap_content"
527: android:layout_weight="1"
528: android:checked="true" />
529: </LinearLayout>
530:
531: <LinearLayout
532: android:layout_width="match_parent"
533: android:layout_height="wrap_content"
534: android:orientation="horizontal">
535:
536: <TextView
537: style="@style/SettingLabel"
538: android:layout_width="0dp"
539: android:layout_height="wrap_content"
540: android:layout_weight="1"
541: android:text="VP8" />
542:
543: <CheckBox
544: android:id="@+id/vp8CheckBox"
545: style="@style/SettingInput"
546: android:layout_width="0dp"
547: android:layout_height="wrap_content"
548: android:layout_weight="1"
549: android:checked="true" />
550: </LinearLayout>
551:
552: <LinearLayout
553: android:layout_width="match_parent"
554: android:layout_height="wrap_content"
555: android:orientation="horizontal">
556:
557: <TextView
558: style="@style/SettingLabel"
559: android:layout_width="0dp"
560: android:layout_height="wrap_content"
561: android:layout_weight="1"
562: android:text="VP9" />
563:
564: <CheckBox
565: android:id="@+id/vp9CheckBox"
566: style="@style/SettingInput"
567: android:layout_width="0dp"
568: android:layout_height="wrap_content"
569: android:layout_weight="1"
570: android:checked="true" />
571: </LinearLayout>
572:
573: <TextView
574: style="@style/SectionTitle"
575: android:layout_width="match_parent"
576: android:layout_height="wrap_content"
577: android:text=" Audio options: " />
578:
579: <LinearLayout
580: android:layout_width="match_parent"
581: android:layout_height="wrap_content"
582: android:orientation="horizontal">
583:
584: <TextView
585: style="@style/SettingLabel"
586: android:layout_width="0dp"
587: android:layout_height="wrap_content"
588: android:layout_weight="1"
589: android:text="StartPortForRTP" />
590:
591: <EditText
592: android:id="@+id/startPortForRtpEditText"
593: style="@style/SettingInput"
594: android:layout_width="0dp"
595: android:layout_height="wrap_content"
596: android:layout_weight="1"
597: android:hint="Enter Start Port for RTP"
598: android:inputType="number" />
599: </LinearLayout>
600:
601: <LinearLayout
602: android:layout_width="match_parent"
603: android:layout_height="wrap_content"
604: android:orientation="horizontal">
605:
606: <TextView
607: style="@style/SettingLabel"
608: android:layout_width="0dp"
609: android:layout_height="wrap_content"
610: android:layout_weight="1"
611: android:text="EchoCancellation" />
612:
613: <CheckBox
614: android:id="@+id/echoCancellationCheckBox"
615: style="@style/SettingInput"
616: android:layout_width="0dp"
617: android:layout_height="wrap_content"
618: android:layout_weight="1"
619: android:checked="true" />
620: </LinearLayout>
621:
622: <LinearLayout
623: android:layout_width="match_parent"
624: android:layout_height="wrap_content"
625: android:orientation="horizontal">
626:
627: <TextView
628: style="@style/SettingLabel"
629: android:layout_width="0dp"
630: android:layout_height="wrap_content"
631: android:layout_weight="1"
632: android:text="SilenceDetection" />
633:
634: <CheckBox
635: android:id="@+id/silenceDetectionCheckBox"
636: style="@style/SettingInput"
637: android:layout_width="0dp"
638: android:layout_height="wrap_content"
639: android:layout_weight="1"
640: android:checked="true" />
641: </LinearLayout>
642:
643: <LinearLayout
644: android:layout_width="match_parent"
645: android:layout_height="wrap_content"
646: android:orientation="horizontal">
647:
648: <TextView
649: style="@style/SettingLabel"
650: android:layout_width="0dp"
651: android:layout_height="wrap_content"
652: android:layout_weight="1"
653: android:text="NoiseCancellation" />
654:
655: <CheckBox
656: android:id="@+id/noiseCancellationCheckBox"
657: style="@style/SettingInput"
658: android:layout_width="0dp"
659: android:layout_height="wrap_content"
660: android:layout_weight="1"
661: android:checked="true" />
662: </LinearLayout>
663:
664: <LinearLayout
665: android:layout_width="match_parent"
666: android:layout_height="wrap_content"
667: android:orientation="horizontal">
668:
669: <TextView
670: style="@style/SettingLabel"
671: android:layout_width="0dp"
672: android:layout_height="wrap_content"
673: android:layout_weight="1"
674: android:text="ComfortNoise" />
675:
676: <CheckBox
677: android:id="@+id/comfortNoiseCheckBox"
678: style="@style/SettingInput"
679: android:layout_width="0dp"
680: android:layout_height="wrap_content"
681: android:layout_weight="1"
682: android:checked="true" />
683: </LinearLayout>
684:
685: <LinearLayout
686: android:layout_width="match_parent"
687: android:layout_height="wrap_content"
688: android:orientation="horizontal">
689:
690: <TextView
691: style="@style/SettingLabel"
692: android:layout_width="0dp"
693: android:layout_height="wrap_content"
694: android:layout_weight="1"
695: android:text="AutomaticGainControl" />
696:
697: <CheckBox
698: android:id="@+id/automaticGainControlCheckBox"
699: style="@style/SettingInput"
700: android:layout_width="0dp"
701: android:layout_height="wrap_content"
702: android:layout_weight="1"
703: android:checked="true" />
704: </LinearLayout>
705:
706: <!-- Audio control Section -->
707: <TextView
708: style="@style/SectionTitle"
709: android:layout_width="match_parent"
710: android:layout_height="wrap_content"
711: android:text=" Audio control: " />
712:
713:
714: <LinearLayout
715: android:layout_width="match_parent"
716: android:layout_height="wrap_content"
717: android:gravity="center_vertical"
718: android:orientation="horizontal">
719:
720: <TextView
721: style="@style/SettingLabel"
722: android:layout_width="0dp"
723: android:layout_height="wrap_content"
724: android:layout_weight="1"
725: android:text="Microphone" />
726:
727: <SeekBar
728: android:id="@+id/microphoneSeekBar"
729: style="@style/SettingInput"
730: android:layout_width="0dp"
731: android:layout_height="wrap_content"
732: android:layout_weight="1"
733: android:max="100" />
734: </LinearLayout>
735:
736: <LinearLayout
737: android:layout_width="match_parent"
738: android:layout_height="wrap_content"
739: android:gravity="center_vertical"
740: android:orientation="horizontal">
741:
742: <TextView
743: style="@style/SettingLabel"
744: android:layout_width="0dp"
745: android:layout_height="wrap_content"
746: android:layout_weight="1"
747: android:text="Speaker" />
748:
749: <SeekBar
750: android:id="@+id/speakerSeekBar"
751: style="@style/SettingInput"
752: android:layout_width="0dp"
753: android:layout_height="wrap_content"
754: android:layout_weight="1"
755: android:max="100" />
756: </LinearLayout>
757:
758: <TextView
759: style="@style/SectionTitle"
760: android:layout_width="match_parent"
761: android:layout_height="wrap_content"
762: android:text=" Video Options: " />
763:
764: <LinearLayout
765: android:layout_width="match_parent"
766: android:layout_height="wrap_content"
767: android:gravity="center_vertical"
768: android:orientation="horizontal">
769:
770: <TextView
771: style="@style/SettingLabel"
772: android:layout_width="0dp"
773: android:layout_height="wrap_content"
774: android:layout_weight="1"
775: android:text="Resolution" />
776:
777: <com.voipplus.mmsclient.customControls.SpinnerOpen
778: android:id="@+id/resolutionSpinner"
779: style="@style/SettingInput"
780: android:layout_width="0dp"
781: android:layout_height="wrap_content"
782: android:layout_weight="1"
783: app:defaultSelection="CIF (352x288)" />
784: </LinearLayout>
785:
786: <LinearLayout
787: android:layout_width="match_parent"
788: android:layout_height="wrap_content"
789: android:gravity="center_vertical"
790: android:orientation="horizontal">
791:
792: <TextView
793: style="@style/SettingLabel"
794: android:layout_width="0dp"
795: android:layout_height="wrap_content"
796: android:layout_weight="1"
797: android:text="Framerate" />
798:
799: <com.voipplus.mmsclient.customControls.SpinnerOpen
800: android:id="@+id/framerateSpinner"
801: style="@style/SettingInput"
802: android:layout_width="0dp"
803: android:layout_height="wrap_content"
804: android:layout_weight="1"
805: app:defaultSelection="20 FPS" />
806: </LinearLayout>
807:
808:
809: <LinearLayout
810: android:layout_width="match_parent"
811: android:layout_height="wrap_content"
812: android:gravity="center_vertical"
813: android:orientation="horizontal">
814:
815: <TextView
816: style="@style/SettingLabel"
817: android:layout_width="0dp"
818: android:layout_height="wrap_content"
819: android:layout_weight="1"
820: android:text="BitStream" />
821:
822: <com.voipplus.mmsclient.customControls.SpinnerOpen
823: android:id="@+id/bitstreamSpinner"
824: style="@style/SettingInput"
825: android:layout_width="0dp"
826: android:layout_height="wrap_content"
827: android:layout_weight="1"
828: app:defaultSelection="1024 Kbps" />
829: </LinearLayout>
830:
831: <LinearLayout
832: android:layout_width="match_parent"
833: android:layout_height="wrap_content"
834: android:gravity="center_vertical"
835: android:orientation="horizontal">
836:
837: <TextView
838: style="@style/SettingLabel"
839: android:layout_width="0dp"
840: android:layout_height="wrap_content"
841: android:layout_weight="1"
842: android:text="NACK RFC4585" />
843:
844: <Switch
845: android:id="@+id/nackRfc4585Switch"
846: style="@style/SettingInput"
847: android:layout_width="wrap_content"
848: android:layout_height="wrap_content"
849: android:checked="true" />
850: </LinearLayout>
851:
852: <LinearLayout
853: android:layout_width="match_parent"
854: android:layout_height="wrap_content"
855: android:gravity="center_vertical"
856: android:orientation="horizontal">
857:
858: <TextView
859: style="@style/SettingLabel"
860: android:layout_width="0dp"
861: android:layout_height="wrap_content"
862: android:layout_weight="1"
863: android:text="Enable Hardware Accelerate" />
864:
865: <Switch
866: android:id="@+id/EnableHardwareAccelerate"
867: style="@style/SettingInput"
868: android:layout_width="wrap_content"
869: android:layout_height="wrap_content"
870: android:checked="true" />
871: </LinearLayout>
872:
873:
874: <TextView
875: style="@style/SectionTitle"
876: android:layout_width="match_parent"
877: android:layout_height="wrap_content"
878: android:text=" Encryption SRTP: " />
879:
880: <LinearLayout
881: android:layout_width="match_parent"
882: android:layout_height="wrap_content"
883: android:gravity="center_vertical"
884: android:orientation="horizontal">
885:
886: <TextView
887: style="@style/SettingLabel"
888: android:layout_width="0dp"
889: android:layout_height="wrap_content"
890: android:layout_weight="1"
891: android:text="Encryption SRTP" />
892:
893: <com.voipplus.mmsclient.customControls.SpinnerOpen
894: android:id="@+id/encryptionSrtpSpinner"
895: style="@style/SettingInput"
896: android:layout_width="0dp"
897: android:layout_height="wrap_content"
898: android:layout_weight="1"
899: app:defaultSelection="20 FPS" />
900: </LinearLayout>
901:
902: <TextView
903: style="@style/SectionTitle"
904: android:layout_width="match_parent"
905: android:layout_height="wrap_content"
906: android:text=" DTMF: " />
907:
908: <LinearLayout
909: android:layout_width="match_parent"
910: android:layout_height="wrap_content"
911: android:gravity="center_vertical"
912: android:orientation="horizontal">
913:
914: <TextView
915: style="@style/SettingLabel"
916: android:layout_width="0dp"
917: android:layout_height="wrap_content"
918: android:layout_weight="1"
919: android:text="DTMF Type" />
920:
921: <com.voipplus.mmsclient.customControls.SpinnerOpen
922: android:id="@+id/dtmfTypeSpinner"
923: style="@style/SettingInput"
924: android:layout_width="0dp"
925: android:layout_height="wrap_content"
926: android:layout_weight="1"
927: app:defaultSelection="RFC 2833" />
928: </LinearLayout>
929:
930: <LinearLayout
931: android:layout_width="match_parent"
932: android:layout_height="wrap_content"
933: android:gravity="center_vertical"
934: android:orientation="horizontal">
935:
936: <TextView
937: style="@style/SettingLabel"
938: android:layout_width="0dp"
939: android:layout_height="wrap_content"
940: android:layout_weight="1"
941: android:text="Playback DTMF Tone" />
942:
943: <Switch
944: android:id="@+id/playbackDTMFToneSwitch"
945: style="@style/SettingInput"
946: android:layout_width="wrap_content"
947: android:layout_height="wrap_content"
948: android:checked="true" />
949: </LinearLayout>
950:
951: <TextView
952: style="@style/SectionTitle"
953: android:layout_width="match_parent"
954: android:layout_height="wrap_content"
955: android:text=" Inbound caller name: " />
956:
957: <LinearLayout
958: android:layout_width="match_parent"
959: android:layout_height="wrap_content"
960: android:gravity="center_vertical"
961: android:orientation="horizontal">
962:
963: <TextView
964: style="@style/SettingLabel"
965: android:layout_width="0dp"
966: android:layout_height="wrap_content"
967: android:layout_weight="1"
968: android:text="Caller Name For Inbound Call" />
969:
970: <com.voipplus.mmsclient.customControls.SpinnerOpen
971: android:id="@+id/callerNameSpinner"
972: style="@style/SettingInput"
973: android:layout_width="0dp"
974: android:layout_height="wrap_content"
975: android:layout_weight="1"
976: app:defaultSelection="Remote-Local-From" />
977: </LinearLayout>
978:
979: <LinearLayout
980: android:layout_width="match_parent"
981: android:layout_height="wrap_content"
982: android:gravity="center_vertical"
983: android:orientation="horizontal">
984:
985: <TextView
986: style="@style/SettingLabel"
987: android:layout_width="0dp"
988: android:layout_height="wrap_content"
989: android:layout_weight="1"
990: android:text="Time Synchronization Remote Minutes" />
991:
992: <EditText
993: android:id="@+id/timeSynchronizationRemoteMinutesEditText"
994: style="@style/SettingInput"
995: android:layout_width="wrap_content"
996: android:layout_height="wrap_content"
997: android:inputType="number"
998: android:text="15" />
999: </LinearLayout>
1000:
1001: <LinearLayout
1002: android:layout_width="match_parent"
1003: android:layout_height="wrap_content"
1004: android:gravity="center_vertical"
1005: android:orientation="horizontal">
1006:
1007: <TextView
1008: style="@style/SettingLabel"
1009: android:layout_width="0dp"
1010: android:layout_height="wrap_content"
1011: android:layout_weight="1"
1012: android:text="Do Not Match" />
1013:
1014: <Switch
1015: android:id="@+id/doNotMatchSwitch"
1016: style="@style/SettingInput"
1017: android:layout_width="wrap_content"
1018: android:layout_height="wrap_content" />
1019: </LinearLayout>
1020:
1021: <LinearLayout
1022: android:layout_width="match_parent"
1023: android:layout_height="wrap_content"
1024: android:gravity="center_vertical"
1025: android:orientation="horizontal">
1026:
1027: <TextView
1028: style="@style/SettingLabel"
1029: android:layout_width="0dp"
1030: android:layout_height="wrap_content"
1031: android:layout_weight="1"
1032: android:text="Match Exactly" />
1033:
1034: <Switch
1035: android:id="@+id/matchExactlySwitch"
1036: style="@style/SettingInput"
1037: android:layout_width="wrap_content"
1038: android:layout_height="wrap_content"
1039: android:checked="true" />
1040: </LinearLayout>
1041:
1042: <LinearLayout
1043: android:layout_width="match_parent"
1044: android:layout_height="wrap_content"
1045: android:gravity="center_vertical"
1046: android:orientation="horizontal">
1047:
1048: <TextView
1049: style="@style/SettingLabel"
1050: android:layout_width="0dp"
1051: android:layout_height="wrap_content"
1052: android:layout_weight="1"
1053: android:text="Match Suffix" />
1054:
1055: <Switch
1056: android:id="@+id/matchSuffixSwitch"
1057: style="@style/SettingInput"
1058: android:layout_width="wrap_content"
1059: android:layout_height="wrap_content" />
1060: </LinearLayout>
1061:
1062: <LinearLayout
1063: android:layout_width="match_parent"
1064: android:layout_height="wrap_content"
1065: android:gravity="center_vertical"
1066: android:orientation="horizontal">
1067:
1068: <TextView
1069: style="@style/SettingLabel"
1070: android:layout_width="0dp"
1071: android:layout_height="wrap_content"
1072: android:layout_weight="1"
1073: android:text="Match At Least Chars" />
1074:
1075: <EditText
1076: android:id="@+id/matchAtLeastCharsEditText"
1077: style="@style/SettingInput"
1078: android:layout_width="wrap_content"
1079: android:layout_height="wrap_content"
1080: android:inputType="number"
1081: android:text="2" />
1082: </LinearLayout>
1083:
1084: <TextView
1085: style="@style/SectionTitle"
1086: android:layout_width="match_parent"
1087: android:layout_height="wrap_content"
1088: android:text=" SIP Miscellaneous: " />
1089:
1090: <LinearLayout
1091: android:layout_width="match_parent"
1092: android:layout_height="wrap_content"
1093: android:gravity="center_vertical"
1094: android:orientation="horizontal">
1095:
1096: <TextView
1097: style="@style/SettingLabel"
1098: android:layout_width="0dp"
1099: android:layout_height="wrap_content"
1100: android:layout_weight="1"
1101: android:text="Enable PRACK" />
1102:
1103: <Switch
1104: android:id="@+id/enablePRACKSwitch"
1105: style="@style/SettingInput"
1106: android:layout_width="wrap_content"
1107: android:layout_height="wrap_content" />
1108: </LinearLayout>
1109:
1110: <LinearLayout
1111: android:layout_width="match_parent"
1112: android:layout_height="wrap_content"
1113: android:gravity="center_vertical"
1114: android:orientation="horizontal">
1115:
1116: <TextView
1117: style="@style/SettingLabel"
1118: android:layout_width="0dp"
1119: android:layout_height="wrap_content"
1120: android:layout_weight="1"
1121: android:text="Enable Early Media" />
1122:
1123: <Switch
1124: android:id="@+id/enableEarlyMediaSwitch"
1125: style="@style/SettingInput"
1126: android:layout_width="wrap_content"
1127: android:layout_height="wrap_content" />
1128: </LinearLayout>
1129:
1130: <LinearLayout
1131: android:layout_width="match_parent"
1132: android:layout_height="wrap_content"
1133: android:gravity="center_vertical"
1134: android:orientation="horizontal">
1135:
1136: <TextView
1137: style="@style/SettingLabel"
1138: android:layout_width="0dp"
1139: android:layout_height="wrap_content"
1140: android:layout_weight="1"
1141: android:text="Enable IMS" />
1142:
1143: <Switch
1144: android:id="@+id/enableIMSSwitch"
1145: style="@style/SettingInput"
1146: android:layout_width="wrap_content"
1147: android:layout_height="wrap_content" />
1148: </LinearLayout>
1149:
1150: <LinearLayout
1151: android:layout_width="match_parent"
1152: android:layout_height="wrap_content"
1153: android:gravity="center_vertical"
1154: android:orientation="horizontal">
1155:
1156: <TextView
1157: style="@style/SettingLabel"
1158: android:layout_width="0dp"
1159: android:layout_height="wrap_content"
1160: android:layout_weight="1"
1161: android:text="Passive Session Timer" />
1162:
1163: <Switch
1164: android:id="@+id/passiveSessionTimerSwitch"
1165: style="@style/SettingInput"
1166: android:layout_width="wrap_content"
1167: android:layout_height="wrap_content" />
1168: </LinearLayout>
1169:
1170: <LinearLayout
1171: android:layout_width="match_parent"
1172: android:layout_height="wrap_content"
1173: android:gravity="center_vertical"
1174: android:orientation="horizontal">
1175:
1176: <TextView
1177: style="@style/SettingLabel"
1178: android:layout_width="0dp"
1179: android:layout_height="wrap_content"
1180: android:layout_weight="1"
1181: android:text="Register Time Sec" />
1182:
1183: <EditText
1184: android:id="@+id/registerTimeSecEditText"
1185: style="@style/SettingInput"
1186: android:layout_width="wrap_content"
1187: android:layout_height="wrap_content"
1188: android:inputType="number"
1189: android:text="300" />
1190: </LinearLayout>
1191:
1192: <LinearLayout
1193: android:layout_width="match_parent"
1194: android:layout_height="wrap_content"
1195: android:gravity="center_vertical"
1196: android:orientation="horizontal">
1197:
1198: <TextView
1199: style="@style/SettingLabel"
1200: android:layout_width="0dp"
1201: android:layout_height="wrap_content"
1202: android:layout_weight="1"
1203: android:text="Enable Intercom" />
1204:
1205: <Switch
1206: android:id="@+id/enableIntercomSwitch"
1207: style="@style/SettingInput"
1208: android:layout_width="wrap_content"
1209: android:layout_height="wrap_content" />
1210: </LinearLayout>
1211:
1212: <TextView
1213: style="@style/SectionTitle"
1214: android:layout_width="match_parent"
1215: android:layout_height="wrap_content"
1216: android:text=" Auto Call recording: " />
1217:
1218: <LinearLayout
1219: android:layout_width="match_parent"
1220: android:layout_height="wrap_content"
1221: android:gravity="center_vertical"
1222: android:orientation="horizontal">
1223:
1224: <TextView
1225: style="@style/SettingLabel"
1226: android:layout_width="0dp"
1227: android:layout_height="wrap_content"
1228: android:layout_weight="1"
1229: android:text="Automatic Call Recording" />
1230:
1231: <Switch
1232: android:id="@+id/automaticCallRecordingSwitch"
1233: style="@style/SettingInput"
1234: android:layout_width="wrap_content"
1235: android:layout_height="wrap_content" />
1236: </LinearLayout>
1237:
1238: <LinearLayout
1239: android:layout_width="match_parent"
1240: android:layout_height="wrap_content"
1241: android:gravity="center_vertical"
1242: android:orientation="horizontal">
1243:
1244: <TextView
1245: style="@style/SettingLabel"
1246: android:layout_width="0dp"
1247: android:layout_height="wrap_content"
1248: android:layout_weight="1"
1249: android:text="Recording File Express Time" />
1250:
1251: <com.voipplus.mmsclient.customControls.SpinnerOpen
1252: android:id="@+id/recordingFileExpressTimeSpinner"
1253: style="@style/SettingInput"
1254: android:layout_width="0dp"
1255: android:layout_height="wrap_content"
1256: android:layout_weight="1"
1257: app:defaultSelection="Never" />
1258: </LinearLayout>
1259:
1260: <TextView
1261: style="@style/SectionTitle"
1262: android:layout_width="match_parent"
1263: android:layout_height="wrap_content"
1264: android:text=" Notification: " />
1265:
1266: <LinearLayout
1267: android:layout_width="match_parent"
1268: android:layout_height="wrap_content"
1269: android:gravity="center_vertical"
1270: android:orientation="horizontal">
1271:
1272: <TextView
1273: style="@style/SettingLabel"
1274: android:layout_width="0dp"
1275: android:layout_height="wrap_content"
1276: android:layout_weight="1"
1277: android:text="System For Incoming Call" />
1278:
1279: <Button
1280: android:id="@+id/systemForIncomingCallButton"
1281: style="@style/SettingInput"
1282: android:layout_width="wrap_content"
1283: android:layout_height="wrap_content"
1284: android:text="Select" />
1285: </LinearLayout>
1286:
1287: <LinearLayout
1288: android:layout_width="match_parent"
1289: android:layout_height="wrap_content"
1290: android:gravity="center_vertical"
1291: android:orientation="horizontal">
1292:
1293: <TextView
1294: style="@style/SettingLabel"
1295: android:layout_width="0dp"
1296: android:layout_height="wrap_content"
1297: android:layout_weight="1"
1298: android:text="System Notification For New Message" />
1299:
1300: <TextView
1301: android:id="@+id/systemNotificationForNewMessageTextView"
1302: style="@style/SettingInput"
1303: android:layout_width="wrap_content"
1304: android:layout_height="wrap_content"
1305: android:text="Default" />
1306: </LinearLayout>
1307:
1308: <LinearLayout
1309: android:layout_width="match_parent"
1310: android:layout_height="wrap_content"
1311: android:gravity="center_vertical"
1312: android:orientation="horizontal">
1313:
1314: <TextView
1315: style="@style/SettingLabel"
1316: android:layout_width="0dp"
1317: android:layout_height="wrap_content"
1318: android:layout_weight="1"
1319: android:text="Enable Notification When Apps Is In Foreground" />
1320:
1321: <Switch
1322: android:id="@+id/enableNotificationWhenAppsIsInForegroundSwitch"
1323: style="@style/SettingInput"
1324: android:layout_width="wrap_content"
1325: android:layout_height="wrap_content" />
1326: </LinearLayout>
1327:
1328: <LinearLayout
1329: android:layout_width="match_parent"
1330: android:layout_height="wrap_content"
1331: android:gravity="center_vertical"
1332: android:orientation="horizontal">
1333:
1334: <TextView
1335: style="@style/SettingLabel"
1336: android:layout_width="0dp"
1337: android:layout_height="wrap_content"
1338: android:layout_weight="1"
1339: android:text="Enable Vibration In Foreground" />
1340:
1341: <Switch
1342: android:id="@+id/enableVibrationInForegroundSwitch"
1343: style="@style/SettingInput"
1344: android:layout_width="wrap_content"
1345: android:layout_height="wrap_content" />
1346: </LinearLayout>
1347:
1348: <TextView
1349: style="@style/SectionTitle"
1350: android:layout_width="match_parent"
1351: android:layout_height="wrap_content"
1352: android:text=" Other: " />
1353:
1354: <LinearLayout
1355: android:layout_width="match_parent"
1356: android:layout_height="wrap_content"
1357: android:gravity="center_vertical"
1358: android:orientation="horizontal">
1359:
1360: <TextView
1361: style="@style/SettingLabel"
1362: android:layout_width="0dp"
1363: android:layout_height="wrap_content"
1364: android:layout_weight="1"
1365: android:text="Battery Usage" />
1366:
1367: <Button
1368: android:id="@+id/batteryUsageButton"
1369: style="@style/SettingInput"
1370: android:layout_width="wrap_content"
1371: android:layout_height="wrap_content"
1372: android:text="Open" />
1373: </LinearLayout>
1374:
1375: </LinearLayout>
1376:
1377: </ScrollView>
1378:
1379: <com.google.android.material.tabs.TabLayout
1380: android:id="@+id/tabLayout"
1381: android:layout_width="0dp"
1382: android:layout_height="wrap_content"
1383: android:background="@color/material_dynamic_neutral90"
1384: app:layout_constraintBottom_toBottomOf="parent"
1385: app:layout_constraintEnd_toEndOf="parent"
1386: app:layout_constraintStart_toStartOf="parent" />
1387:
1388: </androidx.constraintlayout.widget.ConstraintLayout>
Return
AndroidMosaic context:
Comments (
)
)
Link to this page:
http://www.vb-net.com/AndroidMosaic/Layout.htm
|
|