tor-browser

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

activity_main.xml (5927B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      7    xmlns:tools="http://schemas.android.com/tools"
      8    android:layout_width="match_parent"
      9    android:layout_height="match_parent"
     10    android:orientation="vertical"
     11    android:id="@+id/container"
     12    tools:context=".MainActivity">
     13 
     14    <ScrollView
     15        tools:ignore="UselessParent"
     16        android:layout_width="wrap_content"
     17        android:layout_height="wrap_content">
     18 
     19        <RelativeLayout
     20            android:id="@+id/stuff"
     21            android:layout_width="fill_parent"
     22            android:layout_height="wrap_content">
     23 
     24            <Button
     25                android:id="@+id/buttonSignIn"
     26                android:layout_width="wrap_content"
     27                android:layout_height="wrap_content"
     28                android:text="@string/sign_in"
     29                android:textAlignment="center" />
     30 
     31            <Button
     32                android:id="@+id/buttonSync"
     33                android:layout_width="wrap_content"
     34                android:layout_height="wrap_content"
     35                android:layout_below="@id/buttonSignIn"
     36                android:text="@string/sync"
     37                android:textAlignment="center" />
     38 
     39            <Button
     40                android:id="@+id/refreshDevice"
     41                android:layout_width="wrap_content"
     42                android:layout_height="wrap_content"
     43                android:layout_below="@id/buttonSync"
     44                android:text="@string/refresh_device"
     45                android:textAlignment="center" />
     46 
     47            <Button
     48                android:id="@+id/sendTab"
     49                android:layout_width="wrap_content"
     50                android:layout_height="wrap_content"
     51                android:layout_below="@id/refreshDevice"
     52                android:text="@string/send_tab"
     53                android:textAlignment="center" />
     54 
     55            <Button
     56                android:id="@+id/buttonLogout"
     57                android:layout_width="wrap_content"
     58                android:layout_height="wrap_content"
     59                android:layout_below="@id/sendTab"
     60                android:text="@string/log_out"
     61                android:textAlignment="center" />
     62 
     63            <TextView
     64                android:id="@+id/fxaStatusView"
     65                android:layout_width="wrap_content"
     66                android:layout_height="wrap_content"
     67                android:layout_gravity="start"
     68                android:layout_below="@id/buttonLogout"
     69                android:text="" />
     70 
     71            <TextView
     72                android:id="@+id/syncStatus"
     73                android:layout_width="wrap_content"
     74                android:layout_height="wrap_content"
     75                android:layout_gravity="start"
     76                android:layout_below="@id/fxaStatusView"
     77                android:text="" />
     78 
     79            <TextView
     80                android:id="@+id/historySyncResult"
     81                android:layout_width="wrap_content"
     82                android:layout_height="wrap_content"
     83                android:layout_gravity="start"
     84                android:layout_below="@id/syncStatus"
     85                android:text="" />
     86 
     87            <TextView
     88                android:id="@+id/bookmarksSyncResult"
     89                android:layout_width="wrap_content"
     90                android:layout_height="wrap_content"
     91                android:layout_gravity="start"
     92                android:layout_below="@id/historySyncResult"
     93                android:text="" />
     94 
     95            <TextView
     96                android:id="@+id/currentDeviceLabel"
     97                android:layout_width="wrap_content"
     98                android:layout_height="wrap_content"
     99                android:layout_gravity="start"
    100                android:layout_below="@id/bookmarksSyncResult"
    101                style="?android:attr/listSeparatorTextViewStyle"
    102                android:text="@string/current_device" />
    103 
    104            <TextView
    105                android:id="@+id/currentDevice"
    106                android:layout_width="wrap_content"
    107                android:layout_height="wrap_content"
    108                android:layout_gravity="start"
    109                android:layout_below="@id/currentDeviceLabel"
    110                android:text="" />
    111 
    112            <TextView
    113                android:id="@+id/latestTabsLabel"
    114                android:layout_width="wrap_content"
    115                android:layout_height="wrap_content"
    116                android:layout_gravity="start"
    117                android:layout_below="@id/currentDevice"
    118                style="?android:attr/listSeparatorTextViewStyle"
    119                android:text="@string/latest_tabs" />
    120 
    121            <TextView
    122                android:id="@+id/latestTabs"
    123                android:layout_width="wrap_content"
    124                android:layout_height="wrap_content"
    125                android:layout_gravity="start"
    126                android:layout_below="@id/latestTabsLabel"
    127                android:text="" />
    128 
    129            <TextView
    130                android:id="@+id/devicesLabel"
    131                android:layout_width="wrap_content"
    132                android:layout_height="wrap_content"
    133                android:layout_gravity="start"
    134                android:layout_below="@id/latestTabs"
    135                style="?android:attr/listSeparatorTextViewStyle"
    136                android:text="@string/devices" />
    137 
    138            <androidx.fragment.app.FragmentContainerView android:name="org.mozilla.samples.sync.DeviceFragment"
    139                android:id="@+id/devices_fragment"
    140                android:layout_width="match_parent"
    141                android:layout_height="wrap_content"
    142                android:layout_below="@id/devicesLabel" />
    143        </RelativeLayout>
    144    </ScrollView>
    145 
    146 </RelativeLayout>