tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

activity_main.xml (9781B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <ScrollView
      3  xmlns:android="http://schemas.android.com/apk/res/android"
      4  xmlns:app="http://schemas.android.com/apk/res-auto"
      5  xmlns:tools="http://schemas.android.com/tools"
      6  android:id="@+id/scroll_view"
      7  android:layout_width="match_parent"
      8  android:layout_height="wrap_content"
      9  android:focusable="true"
     10  android:focusableInTouchMode="true"
     11  tools:context="org.webrtc.examples.androidvoip.MainActivity">
     12 
     13  <LinearLayout
     14    android:orientation="vertical"
     15    android:layout_width="match_parent"
     16    android:layout_height="match_parent"
     17    android:padding="8dp">
     18 
     19    <TextView
     20      android:layout_width="match_parent"
     21      android:layout_height="wrap_content"
     22      android:layout_marginBottom="15dp"
     23      android:layout_marginLeft="15dp"
     24      android:layout_marginTop="15dp"
     25      android:text="@string/local_endpoint_text_view"
     26      android:textSize="19dp"
     27      android:textStyle="bold"
     28      android:textColor="@color/almost_black" />
     29 
     30    <!--Local IP Adress-->
     31    <LinearLayout
     32      android:orientation="horizontal"
     33      android:layout_width="match_parent"
     34      android:layout_height="48dp"
     35      android:layout_gravity="center_vertical" >
     36 
     37      <TextView
     38        android:layout_width="wrap_content"
     39        android:layout_height="wrap_content"
     40        android:layout_marginTop="12dp"
     41        android:layout_marginLeft="15dp"
     42        android:layout_marginRight="15dp"
     43        android:text="@string/ip_address_text_view"
     44        android:textSize="16dp" />
     45 
     46      <TextView
     47        android:id="@+id/local_ip_address_text_view"
     48        android:layout_width="wrap_content"
     49        android:layout_height="wrap_content"
     50        android:layout_marginTop="12dp"
     51        android:layout_marginRight="15dp"
     52        android:textSize="16dp" />
     53 
     54    </LinearLayout>
     55 
     56    <!--Local Port Number-->
     57    <LinearLayout
     58      android:orientation="horizontal"
     59      android:layout_width="match_parent"
     60      android:layout_height="48dp"
     61      android:layout_gravity="center_vertical">
     62 
     63      <TextView
     64        android:layout_width="wrap_content"
     65        android:layout_height="wrap_content"
     66        android:layout_marginBottom="15dp"
     67        android:layout_marginLeft="15dp"
     68        android:layout_marginRight="15dp"
     69        android:text="@string/port_number_text_view"
     70        android:textSize="16dp" />
     71 
     72      <EditText
     73        android:id="@+id/local_port_number_edit_text"
     74        android:layout_width="0dp"
     75        android:layout_height="match_parent"
     76        android:layout_marginRight="15dp"
     77        android:layout_weight="1"
     78        android:text="10000"
     79        android:inputType="number"
     80        android:textSize="16dp" />
     81 
     82    </LinearLayout>
     83 
     84    <TextView
     85      android:layout_width="match_parent"
     86      android:layout_height="wrap_content"
     87      android:layout_marginBottom="15dp"
     88      android:layout_marginLeft="15dp"
     89      android:layout_marginTop="30dp"
     90      android:text="@string/remote_endpoint_text_view"
     91      android:textSize="19dp"
     92      android:textStyle="bold"
     93      android:textColor="@color/almost_black" />
     94 
     95    <!--Remote IP Adress-->
     96    <LinearLayout
     97      android:orientation="horizontal"
     98      android:layout_width="match_parent"
     99      android:layout_height="48dp"
    100      android:layout_gravity="center_vertical">
    101 
    102      <TextView
    103        android:layout_width="wrap_content"
    104        android:layout_height="wrap_content"
    105        android:layout_marginBottom="15dp"
    106        android:layout_marginLeft="15dp"
    107        android:layout_marginRight="15dp"
    108        android:text="@string/ip_address_text_view"
    109        android:textSize="16dp" />
    110 
    111      <EditText
    112        android:id="@+id/remote_ip_address_edit_text"
    113        android:layout_width="0dp"
    114        android:layout_height="wrap_content"
    115        android:layout_marginRight="15dp"
    116        android:layout_weight="1"
    117        android:inputType="number"
    118        android:digits="0123456789."
    119        android:textSize="16dp" />
    120 
    121    </LinearLayout>
    122 
    123    <!--Remote Port Number-->
    124    <LinearLayout
    125      android:orientation="horizontal"
    126      android:layout_width="match_parent"
    127      android:layout_height="48dp"
    128      android:layout_gravity="center_vertical">
    129 
    130      <TextView
    131        android:layout_width="wrap_content"
    132        android:layout_height="wrap_content"
    133        android:layout_marginBottom="15dp"
    134        android:layout_marginLeft="15dp"
    135        android:layout_marginRight="15dp"
    136        android:text="@string/port_number_text_view"
    137        android:textSize="16dp" />
    138 
    139      <EditText
    140        android:id="@+id/remote_port_number_edit_text"
    141        android:layout_width="0dp"
    142        android:layout_height="match_parent"
    143        android:layout_marginRight="15dp"
    144        android:layout_weight="1"
    145        android:text="10000"
    146        android:inputType="number"
    147        android:textSize="16dp" />
    148 
    149    </LinearLayout>
    150 
    151    <TextView
    152      android:layout_width="wrap_content"
    153      android:layout_height="wrap_content"
    154      android:layout_marginBottom="15dp"
    155      android:layout_marginLeft="15dp"
    156      android:layout_marginTop="30dp"
    157      android:text="@string/encoder_text_view"
    158      android:textSize="19dp"
    159      android:textStyle="bold"
    160      android:textColor="@color/almost_black" />
    161 
    162    <Spinner
    163      android:id="@+id/encoder_spinner"
    164      android:layout_width="wrap_content"
    165      android:layout_height="wrap_content"
    166      android:layout_marginBottom="15dp"
    167      android:layout_marginLeft="15dp"
    168      android:layout_marginTop="10dp"/>
    169 
    170    <LinearLayout
    171      android:orientation="horizontal"
    172      android:layout_width="match_parent"
    173      android:layout_height="48dp"
    174      android:layout_marginTop="20dp"
    175      android:layout_gravity="center_vertical">
    176 
    177      <TextView
    178        android:layout_width="wrap_content"
    179        android:layout_height="wrap_content"
    180        android:layout_marginBottom="15dp"
    181        android:layout_marginLeft="15dp"
    182        android:layout_marginRight="25dp"
    183        android:text="@string/decoder_text_view"
    184        android:textSize="19dp"
    185        android:textStyle="bold"
    186        android:textColor="@color/almost_black" />
    187 
    188      <Button
    189        android:id="@+id/decoder_selection_button"
    190        android:text="@string/decoder_selection_button"
    191        style="?android:attr/buttonBarButtonStyle"
    192        android:layout_width="0dp"
    193        android:layout_height="match_parent"
    194        android:layout_marginRight="15dp"
    195        android:layout_weight="1" />
    196 
    197    </LinearLayout>
    198 
    199 
    200    <TextView
    201      android:id="@+id/decoders_text_view"
    202      android:layout_width="wrap_content"
    203      android:layout_height="wrap_content"
    204      android:layout_marginTop="15dp"
    205      android:layout_marginBottom="30dp"
    206      android:layout_marginLeft="15dp"
    207      android:layout_marginRight="15dp"
    208      android:text="@string/decoders_text_view_default"
    209      android:textSize="16dp" />
    210 
    211 
    212    <RelativeLayout
    213      android:id="@+id/switch_layout"
    214      android:layout_width="fill_parent"
    215      android:layout_height="wrap_content"
    216      android:layout_marginTop="15dp"
    217      android:visibility="gone" >
    218 
    219      <View
    220        android:id="@+id/divider"
    221        android:layout_width="match_parent"
    222        android:layout_height="1dp"
    223        android:layout_marginLeft="15dp"
    224        android:layout_marginRight="15dp"
    225        android:layout_marginBottom="45dp"
    226        android:background="@color/light_gray" />
    227 
    228      <LinearLayout
    229        android:id="@+id/start_send_switch_layout"
    230        android:orientation="horizontal"
    231        android:layout_width="match_parent"
    232        android:layout_height="48dp"
    233        android:layout_gravity="center_vertical"
    234        android:layout_below="@id/divider" >
    235 
    236        <TextView
    237          android:layout_width="wrap_content"
    238          android:layout_height="match_parent"
    239          android:layout_marginLeft="15dp"
    240          android:gravity="left"
    241          android:layout_weight="1"
    242          android:text="@string/start_send_text_view"
    243          android:textSize="16dp" />
    244 
    245        <Switch
    246          android:id="@+id/start_send_switch"
    247          android:layout_width="wrap_content"
    248          android:layout_height="match_parent"
    249          android:layout_marginRight="15dp"
    250          android:gravity="right"
    251          android:layout_weight="1" />
    252 
    253      </LinearLayout>
    254 
    255      <LinearLayout
    256        android:orientation="horizontal"
    257        android:layout_width="match_parent"
    258        android:layout_height="48dp"
    259        android:layout_gravity="center_vertical"
    260        android:layout_below="@id/start_send_switch_layout">
    261 
    262        <TextView
    263          android:id="@+id/start_playout_text_view"
    264          android:layout_width="wrap_content"
    265          android:layout_height="match_parent"
    266          android:layout_marginLeft="15dp"
    267          android:gravity="left"
    268          android:layout_weight="1"
    269          android:text="@string/start_playout_text_view"
    270          android:textSize="16dp" />
    271 
    272        <Switch
    273          android:id="@+id/start_playout_switch"
    274          android:layout_width="wrap_content"
    275          android:layout_height="match_parent"
    276          android:layout_marginRight="15dp"
    277          android:gravity="right"
    278          android:layout_weight="1" />
    279 
    280      </LinearLayout>
    281 
    282    </RelativeLayout>
    283 
    284    <LinearLayout
    285      android:layout_width="match_parent"
    286      android:layout_height="match_parent"
    287      android:gravity="center"
    288      android:orientation="vertical" >
    289 
    290      <ToggleButton
    291        android:id="@+id/session_button"
    292        android:layout_width="wrap_content"
    293        android:layout_height="wrap_content"
    294        android:layout_margin="8dp"
    295        android:textOff="@string/session_button_text_off"
    296        android:textOn="@string/session_button_text_on"
    297        style="?android:attr/buttonStyle" />
    298 
    299    </LinearLayout>
    300 
    301  </LinearLayout>
    302 
    303 </ScrollView>